Page 1 of 1

New Blockly scripts not trigering

Posted: Tuesday 29 October 2019 5:17
by viriathus
Hello,

I have several Blockly scripts that have been and continue to work perfectly, but of late I am finding that I can't get my newly created scripts to trigger at all. See the attached image.

It's fairly simple and it's enabled, so not sure why it's not being triggered. I have checked that the condition is the right value, but I have tried several difference statuses and it doesn't seem to make a difference.

Is there a way to debug Blockly scripts?

Looking in the logs, there is nothing in there to suggest I made a mistake somewhere. It's like it doesn't exist.

Any assistance would be greatly appreciated. Thank you.

Re: New Blockly scripts not trigering

Posted: Tuesday 29 October 2019 22:25
by Geitje
Could it be you have as trigger "time"? Try if it works if you set it to "all" or "device"? (Pulldown menu right upper corner). There is no "time"-like object in your blocky, so maybe that is why it is not triggering.

Re: New Blockly scripts not trigering

Posted: Tuesday 29 October 2019 23:55
by viriathus
Thanks Geitje,

Good point. I had tried "All" already and made no difference. Just tried "Device" and still seems to have the same issue.

I can also confirm that the "Garage Door" device is set to "Closed" which should trigger this.

Cheers.

Re: New Blockly scripts not trigering

Posted: Wednesday 30 October 2019 18:53
by mrf68
And after you open and then close the door, nothing is in the log? The blockly ahould work when the status of the door changes to “closed” (or at least receives the signal of being closed).

Re: New Blockly scripts not trigering

Posted: Wednesday 30 October 2019 21:48
by Geitje
Yeah, that's what I thought, the state of the device has to change to trigger the script. It won't trigger when garagedoor is already closed if you enable the script.

Re: New Blockly scripts not trigering

Posted: Thursday 31 October 2019 21:00
by viriathus
That's it. That worked. :-) Thanks guys.