Page 1 of 1

Blockly script not runing

Posted: Tuesday 08 August 2017 17:39
by R0yk3
Rasp pi 3
Domoticz 3. 8258

I have this (i thougt) very simple script;
Image
https://prnt.sc/g5xcuo

3 switches, all the switches work, they go on an of as planned. I use 'zononder' (sundown) as a switch because i want it to respond 30 minutes before sundown.
This means when al the criteria is met, i want to turn on my livingroom light.
It looks very simple, but it does not work. i tried it by writing a log message that does not work either :?:
I have respond to all triggers active.
no error in the log. :( either.
I somebody can make in in dzvents i do not mind :P
but this should just work.. ??

Re: Blockly script not runing

Posted: Tuesday 08 August 2017 19:27
by StanHD
Have you checked that the "Event active" is checked for the Blockly? (I agree, it should work).

Sent from my SM-T820 using Tapatalk

Re: Blockly script not runing

Posted: Tuesday 08 August 2017 22:46
by Domosapiens
Use the IF constructor without the blue star,
in case there is no Else branch

Re: Blockly script not runing

Posted: Tuesday 08 August 2017 22:53
by dressie
Domosapiens wrote:Use the IF constructor without the blue star,
in case there is no Else branch
Yep, that's the problem in your blocky script!

Re: Blockly script not runing

Posted: Wednesday 09 August 2017 8:43
by R0yk3
StanHD, yes the event is active,

I will try it without the blue star.
I had this option because the script was longer with several if events (dimming the light at certain times) but did not work ether so i stripped it down. But i wil try this.
thank you.

Re: Blockly script not runing

Posted: Thursday 10 August 2017 7:52
by R0yk3
This was it. Thank you guys!!