#Do I control this light with two automations or a single complex automation? Zone+Theater lighting

1 messages · Page 1 of 1 (latest)

candid ore
#

This is more of a high-level question instead of one on implementation details.

I am trying to set up an automation which controls the lighting on my bar which is next to my home theater. The LEDs wrap around the inner and outer parts of the bar and it's segmented in WLED.

At the moment there are two automations and I need to reconcile the effects of each. The first automation is for movie watching and sets the bar lights based on presets I've made in WLED. The second automation turns on the inner bar lights when someone enters the configured zone.

The problem is that I want the inner-bar lights not to change when the movie is paused, stopped, resumed, etc. and while someone occupies the zone. Only when the zone becomes unoccupied should the inner-bar lights reflect the state of the movie. At the moment, the lighting will become out of sync if the movie is started or paused and someone is in the bar zone. In other words, scene.create and/or scene.activate need to be smarter by not simply restoring the state of the inner-bar lights of when someone entered the zone.

When someone walks into the inner-bar zone I want the inner-bar lights to turn on to a certain brightness and color, depending on the movie's state. If the state of the movie changes while someone is in the inner-bar zone, the inner-bar lights should remain the same. When the zone is unoccupied, the lights change to x state where x = the movie's state.

Where would all of the pieces need to live to accomplish this?

Bonus Q - With a multi-segmented strip, how should my segments, presets, etc. be set up in WLED? (I know I will likely need to go to the WLED discord to figure this out)

lament lotus
#

So to condense the above:

  1. If someone enters an area, some lights in that area should do something depending on the state of the movie being played
  2. If the state of the movie changes, the lights in the area should not change if it is unoccupied, and change if it is empty
#

If that's correct:
Automation with 2 triggers: presence detection in the area with an id of "presence", and movie state change with an id of "movie"

Actions has a choose based on trigger id
if "presence" -> set the lights to what you want them to be
if "movie" and presence sensor is off -> set the lights to what you want them to be

This way, if the movie state changes while the area is occupied it doesn't do any action

candid ore
#

That's correct.

Ah I missed an important aspect. The lights on the outside of the bar should change with the state of the movie, regardless of the occupancy.

This is where I run into trouble because I think the only way to cleanly do this is to create a wled preset for each combination of occupancy + movie

lament lotus
#

yeah, if they can't be controlled independently then you will need a different preset for each combination