home-assistant.io/source/_components/switch.zigbee.markdown
WofWca d7aef10b75 Fix mixed up description (#6530)
The original description has been replaced by a wrong one in #6514.
2018-10-05 13:12:59 +02:00

1.5 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_release, ha_iot_class
layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class
page ZigBee Switch Instructions on how to set up ZigBee switches within Home Assistant. 2016-01-28 11:52 true false true true zigbee.png Switch 0.12 Local Polling

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 low.

To configure a digital output pin as switch, add the following to your configuration.yaml file:

switch:
  - name: Pond Fountain
    platform: zigbee
    pin: 0
    address: 0013A20040791FA2
    on_state: low

{% configuration %} name: description: The name you would like to give the switch in Home Assistant. required: true type: string pin: description: The number identifying which pin to use. required: true type: integer address: description: 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. required: false type: string on_state: description: Either high or low, depicting whether the digital output pin is pulled high or low when the switch is turned on. required: false default: high type: string {% endconfiguration %}