Hi All,
I have been using domoticz for years and with very few problems. Unfortunately since last week my blockly scripts stopped working. I have absolutely no clue how to solve this. I have reinstalled domoticz, but this didn't help. When I make a blockly script in a clean installed enviroment, it works. After importing my own database the scripts stop working. I have done the integrity test of the database, but there where no errors foung. Looks like I need to start all over again with my database, but that would be an absolute pain. Is there something else I can do?
The scripts are activated in the settings, so this is not the problem.
Blockly scripts stopped working
Moderator: leecollings
- waltervl
- Posts: 5890
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Blockly scripts stopped working
Hi, do you still have this issue?
The rest of Domoticz is working?You can switch switches, sensors are registering values?
What happened last week. Did you update your system?
What does the log file (Setup - Log) say about scripts?
The rest of Domoticz is working?You can switch switches, sensors are registering values?
What happened last week. Did you update your system?
What does the log file (Setup - Log) say about scripts?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Re: Blockly scripts stopped working
Hi,
Thanks for your replay, the issue is still there. What I see is that the blockly scripts sometimes seem to work. The lua scripts which are triggered with "devicechanged" statements also don't work every time, so it looks like the trigger for executing the scripts seem to be the problem. I went back to an older database of domoticz, but this didn't help. I will look into node-red, maybe this is causing any problems.
After a restart of domoticz the scripts start working for a while.
Thanks for your replay, the issue is still there. What I see is that the blockly scripts sometimes seem to work. The lua scripts which are triggered with "devicechanged" statements also don't work every time, so it looks like the trigger for executing the scripts seem to be the problem. I went back to an older database of domoticz, but this didn't help. I will look into node-red, maybe this is causing any problems.
After a restart of domoticz the scripts start working for a while.
- waltervl
- Posts: 5890
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Blockly scripts stopped working
Did you set the trigger of the Blockly correctly? Top right corner, see also wiki page https://www.domoticz.com/wiki/Blockly#Triggers
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Re: Blockly scripts stopped working
Yes, the triggers are set correctly. The strange thing is that the scripts sometimes work and after a while stop working. I haven't found the problem yet.
Re: Blockly scripts stopped working
Ok. I found the problem. I have two lua scripts which are causing the problems. I am not sure what is wrong with the scripts, but if I leave the scripts off the blockly scripts have no problems. I found this by trial and error. I made two dummy switches and two blockly scripts, which set the dummy switches on and off continously. After that I turned off all lua scripts while running the blockly scripts. I turned on the lua scripts one by one untill the blockly scripts stopped. So now I found two scripts which interfere with blockly. Now I will try to find out what is wrong with the Lua scripts or I will make an alternative for them.
Who is online
Users browsing this forum: No registered users and 1 guest