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.
New Blockly scripts not trigering
Moderator: leecollings
-
- Posts: 8
- Joined: Friday 11 May 2018 6:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
New Blockly scripts not trigering
- Attachments
-
- Test Blockly.JPG (40.86 KiB) Viewed 473 times
-
- Posts: 170
- Joined: Monday 22 January 2018 21:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: New Blockly scripts not trigering
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.
Zwave, Zigate, RFlink etc.
-
- Posts: 8
- Joined: Friday 11 May 2018 6:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: New Blockly scripts not trigering
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.
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
- Sensor status.JPG (11.28 KiB) Viewed 454 times
Re: New Blockly scripts not trigering
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).
-
- Posts: 170
- Joined: Monday 22 January 2018 21:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: New Blockly scripts not trigering
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.
Zwave, Zigate, RFlink etc.
-
- Posts: 8
- Joined: Friday 11 May 2018 6:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: New Blockly scripts not trigering
That's it. That worked.
Thanks guys.

Who is online
Users browsing this forum: No registered users and 1 guest