New Blockly scripts not trigering

Moderator: leecollings

Post Reply
viriathus
Posts: 8
Joined: Friday 11 May 2018 6:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

New Blockly scripts not trigering

Post 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.
Attachments
Test Blockly.JPG
Test Blockly.JPG (40.86 KiB) Viewed 473 times
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Blockly scripts not trigering

Post 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.
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
viriathus
Posts: 8
Joined: Friday 11 May 2018 6:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Blockly scripts not trigering

Post 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.
Attachments
Garage Door status
Garage Door status
Sensor status.JPG (11.28 KiB) Viewed 454 times
mrf68

Re: New Blockly scripts not trigering

Post 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).
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Blockly scripts not trigering

Post 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.
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
viriathus
Posts: 8
Joined: Friday 11 May 2018 6:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Blockly scripts not trigering

Post by viriathus »

That's it. That worked. :-) Thanks guys.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest