haomnilogic-local
haomnilogic-local copied to clipboard
Set lighting effect in automation
Would be great to be able to set the lighting effect when turning it on from an automation. Seems to frequently default to the last setting (?) but not consistent for me. Maybe there is a way to do this that I'm overlooking?
Also would like to figure out how to set a default for this when the light is turned on. Mine always seems to revert back to voodoo lounge.
This is supported as part of the light.turn_on service. You can do it like this:
action: light.turn_on
target:
entity_id: light.omnilogic_pool_color_lights
data:
effect: COOL_CABARET
Just change the entity_id to be whatever your colorlogic light is. You should see the light turn on full white for 15 seconds (this is built into the OmniLogic, no way around it) and then it will change to whatever effect you specified in the action data.
Got it. Brilliant. Thank you! Fyi I was able to implement this through the UI/editor without using yaml directly (if that makes sense).
Got it. Brilliant. Thank you! Fyi I was able to implement this through the UI/editor without using yaml directly (if that makes sense).
makes perfect sense! I actually generated that by going to the Developer Tools > Actions UI, filling it out, and then viewing it in YAML.