Need help with rule to only execute on manual button press of device

It is challenging to be sure. The DP should give you some ideas. At a high level it sets a flag that is normally set to one value (i.e. MANUAL) but when a Rule executes it temporarily sets it to “RULE” (i.e. when you turn on/off the light from the motion sensor). When the Light changes state and the flag is set to MANUAL you know that the Light was manually triggered and you can set an override flag. If the flag is RULE you know the light changed because of the motion sensor and you would not set the override flag.

The above does depend on your switch reporting when it is toggled manually to OH or else there is no way for OH to know the light actually changed state.

1 Like