Scene.turn_on - How to turn on a Light via Scene, without first flashing the last State of the Light?

When a Light is off and i use scene.turn_on, the Light first loads their last State, before the Scene is applied.
That leads to nasty flickering. E.g. The light was on with max Brightness before turned off. If next Time i call scene.turn_on, and the scene has a minimal Brightness, it first flashes (last State of the Light), and then goes to Minimum.

If i use light.turn_on with Brightness/Color-Settings, it directly turns on with those Values.

How can i turn on a Light with Scene, without having it first flashing the last State of the Light?

Master of creepy workarounds here.
You could turn it on with lowest brightness then turn_on the scene.
I know it is crap but it works around your issue.
Maybe someone with a better idea will pass by and say hello.

2 Likes

Hahaha Nice one :smiley:
That would maybe solve some Situations (what about e.g. Colored Lights?) I will give it a shot, but - I can’t imagine i am the first who wants to use Scenes and stumbled across that Behavior.
Therefore, still hoping for a technically cleaner Solution :slight_smile:
Thanks anyway!

PS:

By the way, i highly doubt you can claim that title easily :wink:

Probably not, but some people don’t care.
I can imagine that I am not the only one competing for the title.

That’s how the firmware of most color lights is designed to behave. Upon
turning on, it immediately applies its previous characteristics. Then it applies whatever new characteristics may have been supplied.

One way to avoid the momentary transition, from previous to new, is to use the light’s native scene (not Home Assistant’s scene). For example, Philips Hue lights (and other brands of ZigBee lights) can have numerous scenes programmed into the light itself. When you activate a light’s native scene, the light instantly uses the scene’s characteristics (i.e. no momentary transition from previous to new).

Another alternative is provided by LIFX lights. They allow you to set the light’s characteristics while it’s off (lifx.set_state). So when the light turns on it instantly applies the characteristics that were set when it was off.

1 Like

Hi @smartin have you found a solution? I’m also not happy with this behavior when turning on the lights with HA scenes.

At the moment I’m trying to do it with scenes directly from Z2M, but there is another unpleasant behavior:

Hello. Any solution for the issue?

I’m looking for a solution for this too.