Add zigbee components.
This commit is contained in:
parent
85ebd0ab59
commit
dda4f84150
7 changed files with 403 additions and 0 deletions
19
homeassistant/components/switch/zigbee.py
Normal file
19
homeassistant/components/switch/zigbee.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
"""
|
||||
homeassistant.components.switch.zigbee
|
||||
|
||||
Contains functionality to use a ZigBee device as a switch.
|
||||
"""
|
||||
from homeassistant.components.zigbee import (
|
||||
ZigBeeDigitalOut, ZigBeeDigitalOutConfig)
|
||||
|
||||
|
||||
DEPENDENCIES = ["zigbee"]
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""
|
||||
Create and add an entity based on the configuration.
|
||||
"""
|
||||
add_entities([
|
||||
ZigBeeDigitalOut(hass, ZigBeeDigitalOutConfig(config))
|
||||
])
|
Loading…
Add table
Add a link
Reference in a new issue