I have created two virtual switches: Tester1 and Tester2.
The blockly event is executed (device) as soon as I switch on Tester1.
The weird result is however that I see both lines: "Tester2 = On" and "Tester2 = Off" in the log (in this order) happening in the same millisecond.
This is my blockly script:

Any ideas?