A Zigbee switch in this context is a device connected to one of the digital output pins on a Zigbee module. It can simply be switched on and off. By default, a switch is considered
on when the Zigbee device’s digital output is held
high and considered
off when it is held
low. This behavior can be inverted by setting the
on_state configuration variable to
To configure a digital output pin as switch, add the following to your
switch: - name: Pond Fountain platform: zigbee pin: 0 address: 0013A20040791FA2 on_state: low
(string)(Required)The name you would like to give the switch in Home Assistant.
(integer)(Required)The number identifying which pin to use.
(string)(Optional)The long 64-bit address of the remote Zigbee device whose digital output pin you would like to switch. Do not include this variable if you want to switch the local Zigbee device’s pins.
low, depicting whether the digital output pin is pulled
lowwhen the switch is turned on.
Default value: high