Weird result from Blockly if/else construct

Moderator: leecollings

Post Reply
forkboy
Posts: 13
Joined: Saturday 20 January 2018 13:12
Target OS: -
Domoticz version:
Contact:

Weird result from Blockly if/else construct

Post by forkboy »

I have a very simple blockly script to illustrate some weird behavior.
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:
Image

Any ideas?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Weird result from Blockly if/else construct

Post by waaren »

forkboy wrote: Sunday 29 September 2019 15:24 I have a very simple blockly script to illustrate some weird behavior.
Any ideas?
Check this or any of the other posts on this subject warning for the use of nested IF blocks in domoticz Blockly
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest