Last active
August 21, 2024 21:07
-
-
Save niro1987/4e49117075cd4b66975e0ecfe3ad72b5 to your computer and use it in GitHub Desktop.
Home Assistant - Blueprint - ZHA - IKEA TRADFRI - 2 Button Remote - OnOff and Brightness
Good idea, will try it out. Thanks!
I combined your 2 button script and motion sensor and getting funny behaviour: so if he tells every time automation is triggered without buttons, that Error: In 'template' condition: UndefinedError: 'dict object' has no attribute 'event'
. BUT if you click on a button, then he finds event data and everything is fine. At the end everything works anyway.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@al13nus You could create a helper
input_boolean
that you turn on/off together with the light, but only if the remote is the trigger. If the motion sensor is the trigger, you add a condition checking that the helper is off, and only turn the light off if the helper is off. That way, if the helper is on, the motion sensor will not turn the light off.It does mean that the 'overwrite' is only valid for a turned on light, if the light is off, it will always be turned on by the motion sensor.