Page 1 of 1

One switch causing Blockly script to loop

Posted: Thursday 03 August 2017 18:27
by Lemme
Version: Domoticz v3.8153
Platform: Pi Zero
Plugin/Hardware: MySensors 2.1.1
Description: One switch causing Blockly script to loop

I have this strange issue, where one of my Blockly scripts go into a loop. But it is only one particular switch that causes the problem. For trouble shooting purposes, I tested with another switch, and that switch does not cause the loop. Activating each individual switch works fine.
The problem started after a major upgrade a few days ago, now using Mysensor 2.1.1 and Domoticz v3.8153.

This Blockly causes the loop:
Fails.jpg
Fails.jpg (32.66 KiB) Viewed 1134 times
Log:
Error.jpg
Error.jpg (77.63 KiB) Viewed 1134 times
This Blockly is OK:
OK.jpg
OK.jpg (33.1 KiB) Viewed 1134 times
Any idea what could be causing this?

Br
Lemme

Re: One switch causing Blockly script to loop

Posted: Saturday 05 August 2017 16:06
by Lemme
I have played around a lot, and made a lot of changes. The solution was to implement a delay of 1 second.

In the end, the Blockly turned out differently, but it works now.
OK.jpg
OK.jpg (20.38 KiB) Viewed 1107 times
Br
Lemme