I have searched the forum and didn't find a easy solution for this:
You know this things: teleruptors you connect a (group off) lamps on it and a (bunch off )switches. Then you push on the button the lamp goes "ON", push again lamp goes "OFF"
Problem is that it is not easy to implement this ( for non-guru as i

But then comes in blockly: you can read in "events" and do same graphical configuration/programmation to make a "teleruptor"
For the example i use:
-two "on buttons" (ONBUTTON & ONBUTTON2 )
-one LED/light switch (10_LED_16)
- A register "user Variable" type integer (REGISTER_10_16)
You can see that there are two "strange" things in the script:
>>First the off action off the buttons. i tested this with mysensor hw and the button(s) stays one without this, cuasing race conditions,
>>second the "Register value" this is completly redundant as you could use the 10_LED_16 state. Unfortunatly the script does not work without this User variable.
Hope it helps someone
Regards,
Stefan.