hugobloem / stateful_scenes

Stateful Scenes in Home Assistant (Home Kit scene compatible)
MIT License
39 stars 6 forks source link

State of "Lights off"-scene not represented accurately #102

Open jschonenberg opened 1 week ago

jschonenberg commented 1 week ago

I have a setup with two scenes: 'Lights on' and 'Lights off'. The 'Lights on'-scene contains 4 light entities, whcih are turned on to various brightness levels. The 'Lights off'-scene contains 6 light entities, including the ones from the 'Lights on'-scene, and has all the lights turned off.

The stateful scene for 'Lights on' is working correctly, but the stateful scene for the 'Lights off'-scene isn't. I can use the 'Lights off' stateful scene to turn off the lights, but the stateful scene switch will never be 'on'.

Interestingly the 'Lights off' stateful scene does work correctly if I remove the 2 light entities that are not included in the 'Lights on'-scene from the 'Lights off' scene.

jschonenberg commented 1 week ago

If I create an additional scene ("Other Lights On") and include in it the 2 lights that are not included in the regular "Lights On"-scene, then the "Lights Off" stateful scene will work correctly.

So in summary stateful scenes for scenes that have specific lights turned off only seem to work correctly when those lights are also included into another scene as being turned on.