adaptive-lighting icon indicating copy to clipboard operation
adaptive-lighting copied to clipboard

"only_once" not respected by "Sleep switch".

Open maxi1134 opened this issue 1 year ago • 6 comments

When lights are already on, they seem to turn to the sleep settings when the sleep mode switch is turned on.

I would expect lights to stay in their current state and only go to sleep mode after being turned off and on again.

Is this achievable in any way?

maxi1134 avatar Aug 10 '23 16:08 maxi1134

This is actually by design.

Setting these all have the same effect:

  • turning light on and off
  • turning the adaptive lighting switch on and off
  • turning sleep mode switch on and off

It would be much more difficult to implement tracking only_once in all cases.

basnijholt avatar Aug 11 '23 21:08 basnijholt

Would there not be a way for the "to sleep settings" action call on the bulbs check that they are not on?

maxi1134 avatar Aug 11 '23 22:08 maxi1134

Yes, that is possible, however, I would need to implement it in a way that it is configurable because I do not want to change the current behavior (which people rely on).

Currently, I do not find it worth the trouble given the exploding number of configuration options.

What is your use-case if I might ask? 😄

basnijholt avatar Aug 11 '23 22:08 basnijholt

My use-case is very specific, so probably won't apply to much, but here I go;

I host events very regularly in my house, events where the lights have saturated colors.

I would like to enable the "Sleep mode" when the main users or the house are asleep ( Partners and Squatters ), while keeping the lights that are still on in their original color until that room is emptied by the remaining guests, turning to a "sleep mode" color when motion is re-detected ( This will incentivize the guests to remain in the already occupied rooms and slowly make more and more rooms darker. )

My goal will all of this is to automate the programmed death of the party, where people are cordially pushed out by automated means.

maxi1134 avatar Aug 11 '23 22:08 maxi1134

Sounds like a cool use case.

I might be able to implement only_once differently where it marks a light as manually_control. Then I could provide an option where one selects how manually control is reset. However, it might be a while until I find the time for this.

basnijholt avatar Aug 18 '23 03:08 basnijholt

Sounds like a cool use case.

I might be able to implement only_once differently where it marks a light as manually_control. Then I could provide an option where one selects how manually control is reset. However, it might be a while until I find the time for this.

I'm a patient person!

maxi1134 avatar Aug 20 '23 23:08 maxi1134