Re: dzVents 2.0 just got integrated into Domoticz (beta v3.8023)
Posted: Sunday 02 July 2017 12:05
Maybe it's specific hardware(interface). It might help when people having problems list their hardware so we can compare.
Mark
Mark
Open source Home Automation System
https://forum.domoticz.com/
Good catch. Fixed that. I thought I converted them all but forgot about this template.randytsuch wrote:One comment.
If you use the domoticz events editor (which is very convenient), the example still uses [] for definitions instead of the new convention ()
Randy
No problems here with events- and dzVents 2.0 active since 8034. CPU < 5% on my RPI3heggink wrote:Some people appear to have issues (high cpu) with 8027 on rpi3. Anyone without these problems on rpi3?
see the picture for dzVents enable in my Domoticz : not good !waaren wrote:No problems here with events- and dzVents 2.0 active since 8034. CPU < 5% on my RPI3heggink wrote:Some people appear to have issues (high cpu) with 8027 on rpi3. Anyone without these problems on rpi3?
I do have 127.0.0.1 in dzVents_settings.lua, and no script at all in dzVents folders (neither via web editor, nor put manually in some folder), but when I activate dzVents, domoticz start using 100% of my CPU... I have to stop domoticz and restart and then I have a few seconds to disable dzVents.Doler wrote:I can confirm that: upgrading from 3.8015 to 3.8027 made my CPU usage (RPI3) go up from average 2% to average 5%. So still low and maybe this is the new normal.
Am I right that people who use dzVents have NO problem whilst others may have. Just a hunch: do people with problems have 127.0.0.1 in their Local Network settings (required for dzVents)?
Mark
Well, domoticz is gathering a bit more information than before when it starts the event handlers so maybe that causes a bit more cpu. But just a couple of percents shouldn't be a problem. After all, it's a computer that needs to DO stuff for usDoler wrote:I can confirm that: upgrading from 3.8015 to 3.8027 made my CPU usage (RPI3) go up from average 2% to average 5%. So still low and maybe this is the new normal.
Am I right that people who use dzVents have NO problem whilst others may have. Just a hunch: do people with problems have 127.0.0.1 in their Local Network settings (required for dzVents)?
Mark
I tried to disable hardwares one by one to see the impact on CPU usage: I cannot really conclude anything.dannybloe wrote:jeanclic, is it possible for you to see which hardware may cause this for you? Can you make a copy of your entire setup (or just the database) and perhaps remove some hardware of scripts to see when the cpu load drops to normal levels?
It's so hard to debug this if you cannot reproduce it yourself.
Your help is greatly appreciated in this. We have to nail this bugger!
You should not use dzVents_settings.lua at all. That's prior to 2.0! The 127.0.0.1 setting is for some commands that don't have 'native' Lua support in Domoticz. Some device types need to call a json/api command. But unlike earlier, this ip address is not used for getting settings anymore.jeanclic wrote:I tried to disable hardwares one by one to see the impact on CPU usage: I cannot really conclude anything.dannybloe wrote:jeanclic, is it possible for you to see which hardware may cause this for you? Can you make a copy of your entire setup (or just the database) and perhaps remove some hardware of scripts to see when the cpu load drops to normal levels?
It's so hard to debug this if you cannot reproduce it yourself.
Your help is greatly appreciated in this. We have to nail this bugger!
I wrote a basic dzVents script via web interface (to write a log message every minute), just to see if with a script to execute dzVents is happier ? -> no.
I changed 127.0.0.1 to 127.0.0.2 to "loose" dzVents: not better. (btw, is it not possible to include config in the web interface and forget about this dzVents_settings.lua ? -> I do not understand well if this file is overriding the log level or if it is the web setup ?)
-> each time I activate dzVents, CPU usage reaches 100% in seconds.
When I tested enabling dzVents, I of course put the logs to "silent", but it is overloading my RPI for all levels.dannybloe wrote:You should not use dzVents_settings.lua at all. That's prior to 2.0! The 127.0.0.1 setting is for some commands that don't have 'native' Lua support in Domoticz. Some device types need to call a json/api command. But unlike earlier, this ip address is not used for getting settings anymore.jeanclic wrote:I tried to disable hardwares one by one to see the impact on CPU usage: I cannot really conclude anything.dannybloe wrote:jeanclic, is it possible for you to see which hardware may cause this for you? Can you make a copy of your entire setup (or just the database) and perhaps remove some hardware of scripts to see when the cpu load drops to normal levels?
It's so hard to debug this if you cannot reproduce it yourself.
Your help is greatly appreciated in this. We have to nail this bugger!
I wrote a basic dzVents script via web interface (to write a log message every minute), just to see if with a script to execute dzVents is happier ? -> no.
I changed 127.0.0.1 to 127.0.0.2 to "loose" dzVents: not better. (btw, is it not possible to include config in the web interface and forget about this dzVents_settings.lua ? -> I do not understand well if this file is overriding the log level or if it is the web setup ?)
-> each time I activate dzVents, CPU usage reaches 100% in seconds.
Make sure that you don't have debug-logging enabled in the settings for dzVents coz that might slow things down quite a bit. Just enable that for special cases and tracking down problems.
I don't now. I assume you have dzVents 1.1.1 running as well on this system? 1.1.x is running in /path/to/domoticz/scripts/lua/dzVents while with 2.0 it runs from another directory in the domoticz codebase: /path/to/domoticz/scripts/dzVents. Theoretically they can co-exists. For 1.1.x you do need dzVents_settings.lua. 2.0 doesn't use that at all. At least, it shouldn't.jeanclic wrote:When I tested enabling dzVents, I of course put the logs to "silent", but it is overloading my RPI for all levels.dannybloe wrote:You should not use dzVents_settings.lua at all. That's prior to 2.0! The 127.0.0.1 setting is for some commands that don't have 'native' Lua support in Domoticz. Some device types need to call a json/api command. But unlike earlier, this ip address is not used for getting settings anymore.jeanclic wrote: I tried to disable hardwares one by one to see the impact on CPU usage: I cannot really conclude anything.
I wrote a basic dzVents script via web interface (to write a log message every minute), just to see if with a script to execute dzVents is happier ? -> no.
I changed 127.0.0.1 to 127.0.0.2 to "loose" dzVents: not better. (btw, is it not possible to include config in the web interface and forget about this dzVents_settings.lua ? -> I do not understand well if this file is overriding the log level or if it is the web setup ?)
-> each time I activate dzVents, CPU usage reaches 100% in seconds.
Make sure that you don't have debug-logging enabled in the settings for dzVents coz that might slow things down quite a bit. Just enable that for special cases and tracking down problems.
You say I should not have to modify dzVents_settings.lua ? because I tried to enable dzVents on a Debian I use to test stuffs on domoticz and it worked only after I changed the adress from 10.0.0.8 to 127.0.0.1. (btw on this debian, dzVents is working very well, but I have almost no hardware and I also have absolutely no script except one "web" dzVent for testing)
I changed also the log level in this file to 0, and the logs disapeared as expected.
Maybe I have set something up in a bad way ?