Hello,
I have a 433Mhz (radio button), which I would like to take as a switch for a lamp to turn on and off.
I have created a status variable ($taster-state) which stores the status (on or off) of the lamp.
Then I have two rules to switch on and off created:
Rule lamp on:
When presence of taster = present and $taster-state = "off" then switch lamp on and set $taster-state to "on"
Rule lamp off:
When presence of taster = present and $taster-state = "on" then switch lamp off and set $taster-state to "off"
Unfortunately, this does not work because the lamp is now flashing. Where could my error lie?
Edit: I had forgotten, want to switch a Yeelight lamp.