Page 1 of 2

DzVents doesn't run scripts

Posted: Wednesday 26 June 2019 16:50
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

Re: DzVents doesn't run scripts

Posted: Wednesday 26 June 2019 17:03
by emme
coul dyou try to name it without the # ? maybe.....

Re: DzVents doesn't run scripts

Posted: Wednesday 26 June 2019 17:24
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?

Re: DzVents doesn't run scripts

Posted: Wednesday 26 June 2019 17:32
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 ?

Re: DzVents doesn't run scripts

Posted: Wednesday 26 June 2019 17:36
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.

Re: DzVents doesn't run scripts

Posted: Wednesday 26 June 2019 18:39
by StefanWouters
nothing changed
where can i check that the evenSystem en DzVent are both still activated?

Re: DzVents doesn't run scripts

Posted: Wednesday 26 June 2019 19:21
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 4505 times

Re: DzVents doesn't run scripts

Posted: Wednesday 26 June 2019 19:40
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

Re: DzVents doesn't run scripts

Posted: Wednesday 26 June 2019 19:57
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


Re: DzVents doesn't run scripts

Posted: Tuesday 02 July 2019 16:32
by StefanWouters
Hello Waaren,

DZvents stopt running after a fault. (see log)
in enabled DZVents again and the script runs again.

Re: DzVents doesn't run scripts

Posted: Wednesday 03 July 2019 0:49
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 ?

Re: DzVents doesn't run scripts

Posted: Wednesday 03 July 2019 16:56
by StefanWouters
There are no camera's connected at the raspberry. Nibe is still functional.....
After the camera error, DZVents was disabled

Re: DzVents doesn't run scripts

Posted: Tuesday 09 July 2019 18:25
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.

Re: DzVents doesn't run scripts

Posted: Tuesday 09 July 2019 23:31
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 ?

Re: DzVents doesn't run scripts

Posted: Wednesday 10 July 2019 14:48
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.

Re: DzVents doesn't run scripts

Posted: Wednesday 10 July 2019 17:03
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

Re: DzVents doesn't run scripts

Posted: Wednesday 24 July 2019 10:05
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.

Re: DzVents doesn't run scripts

Posted: Wednesday 24 July 2019 17:38
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 ?

Re: DzVents doesn't run scripts

Posted: Wednesday 24 July 2019 23:11
by pgielen
I am also having the same problem. Dzvents just turns off randomly, it seems.

Version: 4.11024
Platform: Rpi

Re: DzVents doesn't run scripts  [Solved]

Posted: Thursday 25 July 2019 9:17
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.