haomnilogic-local icon indicating copy to clipboard operation
haomnilogic-local copied to clipboard

Set lighting effect in automation

Open kr088 opened this issue 1 year ago • 1 comments
trafficstars

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?

kr088 avatar Aug 02 '24 03:08 kr088

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.

nick2687 avatar Aug 23 '24 12:08 nick2687

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.

cryptk avatar Jan 08 '25 23:01 cryptk

Got it. Brilliant. Thank you! Fyi I was able to implement this through the UI/editor without using yaml directly (if that makes sense).

kr088 avatar Jan 08 '25 23:01 kr088

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.

cryptk avatar Jan 08 '25 23:01 cryptk