Switch Binary Sensor¶
The Switch Binary Sensor platform allows you to view the state of any switch component as a read-only binary sensor.
# Example configuration entry
binary_sensor:
- platform: switch
name: "Output state"
source_id: relay1
switch:
- platform: gpio
id: relay1
pin: GPIOXX
Configuration variables:¶
source_id (Required, ID): The source switch to observe.
All other options from Binary Sensor.