add disco, white effects

This commit is contained in:
happyleaves committed 2015-11-02 18:08:17 -05:00
1 parent c6b5a04312
commit 3cd89f8474
2 files changed
+19 -3

No files matched your search

@@ -96,6 +96,7 @@ FLASH_LONG = "long"
# Apply an effect to the light, can be EFFECT_COLORLOOP
ATTR_EFFECT = "effect"
EFFECT_COLORLOOP = "colorloop"
EFFECT_WHITE = "white"
LIGHT_PROFILES_FILE = "light_profiles.csv"
@@ -282,6 +283,8 @@ def setup(hass, config):
if ATTR_EFFECT in dat:
if dat[ATTR_EFFECT] == EFFECT_COLORLOOP:
params[ATTR_EFFECT] = EFFECT_COLORLOOP
if dat[ATTR_EFFECT] == EFFECT_WHITE:
params[ATTR_EFFECT] = EFFECT_WHITE
for light in target_lights:
light.turn_on(**params)