DzVents doesn't run scripts  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

StefanWouters
Posts: 14
Joined: Tuesday 18 June 2019 17:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

DzVents doesn't run scripts

Post by StefanWouters »

i have made a script that run's for several days en then stops running. When ik make another simpel script it won't run either.
When i start an blockly script that works.
In de log file you can see DzVents in writing the file, but nothing more
a reboot off te raspberry has no effect
Attachments
Knipsel.JPG
Knipsel.JPG (55.74 KiB) Viewed 4523 times
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: DzVents doesn't run scripts

Post by emme »

coul dyou try to name it without the # ? maybe.....
The most dangerous phrase in any language is:
"We always done this way"
StefanWouters
Posts: 14
Joined: Tuesday 18 June 2019 17:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DzVents doesn't run scripts

Post by StefanWouters »

No effect, it won't run any script
is their a possibility (is use persistent data) that a buffer or what so ever runs out of capacitety?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: DzVents doesn't run scripts

Post by waaren »

StefanWouters wrote: Wednesday 26 June 2019 16:50 i have made a script that run's for several days en then stops running. When ik make another simpel script it won't run either.
When i start a blockly script that works.
In the log file you can see DzVents in writing the file, but nothing more
Did you change anything to your system other than the new simple script between the moment your script was running and the time the script stopped ?
Can you please share the script. Might be that the trigger condition is not met.
Did you double check that the eventSystem and dzVents are both still activated in the settings ?
Can you please share the relevant loglines from around the moment you expect that the script would be triggered ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: DzVents doesn't run scripts

Post by waaren »

StefanWouters wrote: Wednesday 26 June 2019 17:24 Is their a possibility (is use persistent data) that a buffer or what so ever runs out of capacity?
Possible but not likely to be the cause of your problem here. It will either lead to a complete crash of domoticz and at the very least will flood your logfile with messages.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
StefanWouters
Posts: 14
Joined: Tuesday 18 June 2019 17:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DzVents doesn't run scripts

Post by StefanWouters »

nothing changed
where can i check that the evenSystem en DzVent are both still activated?
Attachments
Script.txt
(4.64 KiB) Downloaded 80 times
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: DzVents doesn't run scripts

Post by waaren »

StefanWouters wrote: Wednesday 26 June 2019 18:39 nothing changed
where can i check that the evenSystem en DzVent are both still activated?
[Setup] [system] [other]
Enabled
Enabled
enabled.png (21.63 KiB) Viewed 4496 times
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
StefanWouters
Posts: 14
Joined: Tuesday 18 June 2019 17:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DzVents doesn't run scripts

Post by StefanWouters »

DzVents was not enabled.....??? After turning it on, the script runs again (off course)
When DzVents crashes, will the crash disable DzVEnts??
Also activated the logging, so see wat happens the next 24 hours
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: DzVents doesn't run scripts

Post by waaren »

StefanWouters wrote:DzVents was not enabled.....??? After turning it on, the script runs again (off course)
When DzVents crashes, will the crash disable DzVEnts??
Also activated the logging, so see wat happens the next 24 hours
No, dzVents itself does not have access to this setting. In the past I did see some posts that this setting toggled from on to off between domoticz upgrades but not recently.

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
StefanWouters
Posts: 14
Joined: Tuesday 18 June 2019 17:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DzVents doesn't run scripts

Post by StefanWouters »

Hello Waaren,

DZvents stopt running after a fault. (see log)
in enabled DZVents again and the script runs again.
Attachments
Fout LOG.JPG
Fout LOG.JPG (151.78 KiB) Viewed 4430 times
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: DzVents doesn't run scripts

Post by waaren »

StefanWouters wrote: Tuesday 02 July 2019 16:32 Hello Waaren,

DZvents stopt running after a fault. (see log)
in enabled DZVents again and the script runs again.
Please share your code / logs not as an image but between code tags </> Thanks
I don't see anything here that would lead me to a dzVents issue. Still see the problem with a camera snapshot and I also see some stuff about nibe from which I tought it is not working and supported since 2018.
Can you deactivate that one in cron or is it still functional for you ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
StefanWouters
Posts: 14
Joined: Tuesday 18 June 2019 17:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DzVents doesn't run scripts

Post by StefanWouters »

There are no camera's connected at the raspberry. Nibe is still functional.....
After the camera error, DZVents was disabled
Danfas
Posts: 2
Joined: Tuesday 09 July 2019 9:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DzVents doesn't run scripts

Post by Danfas »

Hi !
At first, I am French, and I beg your pardon for my poor English language
I have the same problem.
For a long time (more than 1 year), I have a program with dzVents, which works very well. I didn’t make any change in it.
Since 2 or 3 months, I also have the parameter ‘Enabled dzVents’ which changes itself.
I also had some problem with a camera (‘error executing uvccapture command return 32512’), although I don’t have any camera.
So, I went to the management of the camera (Setup/More options/camera) and deleted the camera. But Domoticz defines automatically a new camera.
So, I deactivated the camera, and defined a dummy ‘Device/Scene [Light/Switch]’, always on ‘OFF’, to avoid to use the camera.
Since this action, I have no problem with the camera.
But there is always a problem with the parameter ‘Enabled dzVents’ which comes on ‘OFF’.
I think there is an error in Domoticz.
Now I’m looking for a solution. I’m looking for two ways :
- Make a copy of the data base ‘domoticz.db’, and regularly, restore the base
- Have a little program in SQL, executed with ‘CRON’, for updating the base
The parameter to modify is in the table ‘preference’, element ‘DisableDzVentsSystem’ : value 0  ‘Enabled dzVents’ is ‘ON’.

But if somebody has a better solution, I’ll take it, of course.
It seems to me that the best will be having ‘Enabled dzVents’ always on ‘ON’, without any chance to change it. After, we decide if we use dzVents or not.
But if the designer of domoticz created this parameter, I suppose there is a good reason.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: DzVents doesn't run scripts

Post by waaren »

Danfas wrote: Tuesday 09 July 2019 18:25 For a long time (more than 1 year), I have a program with dzVents, which works very well. I didn’t make any change in it.
Since 2 or 3 months, I also have the parameter ‘Enabled dzVents’ which changes itself.
I also had some problem with a camera (‘error executing uvccapture command return 32512’), although I don’t have any camera.
So, I went to the management of the camera (Setup/More options/camera) and deleted the camera. But Domoticz defines automatically a new camera.
This is strange. As far as I know there is no standard function in domoticz to (re)create a camera (apart from the GUI). I expect that a script or program to recreate the camera.
If your domoticz system cannot be accessed from the internet there must be a script / program in your system / lan that issues the addcamera JSON command.
Maybe a good start to go and look for that one ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Danfas
Posts: 2
Joined: Tuesday 09 July 2019 9:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DzVents doesn't run scripts

Post by Danfas »

Thanks for your answer. My domoticz system is accessed by internet, and I don’t think having a JSON command. But I’m looking forwards.
However, my big problem is ‘Enabled dzVents’ which comes on ‘OFF’ at any time, and prevents scripts dzVents to work correctly.
I don’t understand why, because this problem arrived there is 2 or 3 months, without any intervention of myself. I wonder if this has not happened with a domoticz update.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: DzVents doesn't run scripts

Post by waaren »

Danfas wrote: Wednesday 10 July 2019 14:48 Thanks for your answer. My domoticz system is accessed by internet, and I don’t think having a JSON command. But I’m looking forwards.
However, my big problem is ‘Enabled dzVents’ which comes on ‘OFF’ at any time, and prevents scripts dzVents to work correctly.
I don’t understand why, because this problem arrived there is 2 or 3 months, without any intervention of myself. I wonder if this has not happened with a domoticz update.
Please have a look at this
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
wendan
Posts: 2
Joined: Thursday 18 July 2019 9:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DzVents doesn't run scripts

Post by wendan »

i have also the same problem.
DZVENTS is switching off randomly ... started when i did an update to
dzVents Version: 2.4.19

If i enable it, it will run for hours and than........... switch off.
I am running on a Raspb Py

Version: 4.10717
Build Hash: b38b49e5
Compile Date: 2019-05-09 13:04:08
dzVents Version: 2.4.19
Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]

I wonder if i am the only one with this problem.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: DzVents doesn't run scripts

Post by waaren »

wendan wrote: Wednesday 24 July 2019 10:05 i have also the same problem.
If i enable it, it will run for hours and than........... switch off.
Others who experience the same did see an error in the log referring to a none existing camera. From what I got from these reports is seems that these systems were intruded in some way or form.

Can you share the domoticz log from just before the moment dzVents became disabled ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
pgielen
Posts: 91
Joined: Monday 18 February 2019 14:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Boxmeer
Contact:

Re: DzVents doesn't run scripts

Post by pgielen »

I am also having the same problem. Dzvents just turns off randomly, it seems.

Version: 4.11024
Platform: Rpi
https://robothuis.nl, RPi4B, RFXCOM XL, Aeotec Z-Stick, ESP Easy, Weatherstation, several switches and sensors, Ikea Trädfri, Philips Hue, Foscam, Reolink, Lyric T6, Ring
wendan
Posts: 2
Joined: Thursday 18 July 2019 9:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DzVents doesn't run scripts  [Solved]

Post by wendan »

Hmmmmmm strange....... switching off seems related to this message: ´Error executing uvccapture command. returned: 32512´
When I look in setup-more option-camera there is a camera defined. UVCCAMERA and a file uvccapture. I pointed this to an existing IP. So now I don´t have the error anymore.

I also renamed the file. Now it works for 24 hours.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest