Copy Component
The copy component can be used to copy an existing component (like a sensor, switch, etc.)
and create a duplicate mirroring the source’s state and forwarding actions such as turning on to the source.
For each of the supported platforms, the configuration consists of the required configuration
variable source_id, which is used to indicate the source of the object being mirorred.
Copy Binary Sensor
Section titled “Copy Binary Sensor”# Example configuration entrybinary_sensor: - platform: copy source_id: source_binary_sensor name: "Copy of source_binary_sensor"Configuration variables
Section titled “Configuration variables”- source_id (Required, ID): The binary sensor that should be mirrored.
- All other options from Binary Sensor.
Copy Button
Section titled “Copy Button”# Example configuration entrybutton: - platform: copy source_id: source_button name: "Copy of source_button"Configuration variables
Section titled “Configuration variables”Copy Cover
Section titled “Copy Cover”# Example configuration entrycover: - platform: copy source_id: source_cover name: "Copy of source_cover"Configuration variables
Section titled “Configuration variables”Copy Fan
Section titled “Copy Fan”# Example configuration entryfan: - platform: copy source_id: source_fan name: "Copy of source_fan"Configuration variables
Section titled “Configuration variables”Copy Lock
Section titled “Copy Lock”# Example configuration entrylock: - platform: copy source_id: source_lock name: "Copy of source_lock"Configuration variables
Section titled “Configuration variables”Copy Number
Section titled “Copy Number”# Example configuration entrynumber: - platform: copy source_id: source_number name: "Copy of source_number"Configuration variables
Section titled “Configuration variables”Copy Select
Section titled “Copy Select”# Example configuration entryselect: - platform: copy source_id: source_select name: "Copy of source_select"Configuration variables
Section titled “Configuration variables”Copy Sensor
Section titled “Copy Sensor”# Example configuration entrysensor: - platform: copy source_id: source_sensor name: "Copy of source_sensor"Configuration variables
Section titled “Configuration variables”Copy Switch
Section titled “Copy Switch”# Example configuration entryswitch: - platform: copy source_id: source_switch name: "Copy of source_switch"Configuration variables
Section titled “Configuration variables”Copy Text Sensor
Section titled “Copy Text Sensor”# Example configuration entrytext_sensor: - platform: copy source_id: source_text_sensor name: "Copy of source_text_sensor"Configuration variables
Section titled “Configuration variables”- source_id (Required, ID): The text sensor that should be mirrored.
- All other options from Text Sensor.
Copy Text
Section titled “Copy Text”# Example configuration entrytext: - platform: copy source_id: source_text name: "Copy of source_text"