Added Insteon Support
This commit is contained in:
parent
0acce86596
commit
d59b98ee2b
6 changed files with 122 additions and 1 deletions
16
homeassistant/components/light/insteon.py
Normal file
16
homeassistant/components/light/insteon.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
"""
|
||||
homeassistant.components.light.insteon
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Support for Insteon Hub lights.
|
||||
"""
|
||||
|
||||
from homeassistant.components.insteon import (INSTEON, InsteonToggleDevice)
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
""" Sets up the Insteon Hub light platform. """
|
||||
devs = []
|
||||
for device in INSTEON.devices:
|
||||
if device.DeviceCategory == "Switched Lighting Control":
|
||||
devs.append(InsteonToggleDevice(device))
|
||||
add_devices(devs)
|
Loading…
Add table
Add a link
Reference in a new issue