Is there a way to force re-activation of scene states?

I have 433 MHz light switches and dimmer switches (with assumed state = true), and scenes with varying states and brightness.
If I activate scene #1 and then manually turn on or off one of the lights (either with stand-alone pushbutton, or via HA), and then again activate scene #1, home assistant does not send a signal to the light I manually changed.

However, if I activate scene #1 and then manually turn on or off one light, and then activate scene #2, the correct states are sent from home assistant to the lights. From there I can activate scene #1.

It seems that HA assumes scene #1 already being active, and does not need to send signals to the lights if scene #1 is activated again. Is this the expected behavior? I want HA to always send the signals, regardless of the last activated scene.

I assume this is not a problem for switches with known state.

You may be seeing a side effect of HA not restoring a state if the it thinks that the entity already is in that state.

From reproduce_state.py

# Return if we are already at the right state.
if cur_state.state == state.state:
    return

My workaround in automations is to add a wait_for_trigger action to wait for HA to update to the correct state and then continue to apply the scene. Or, you can use a script as well.

1 Like