I am seeing this in the log, it may have been there for awhile but I just noticed it several weeks ago, - "Error: EventSystem: Warning!, lua script /home/pi/domoticz/scripts/dzVents/runtime/dzVents.lua has been running for more than 10 seconds". I've been running dzvents scripts for several months. After several weeks of trying to nail down the offending script I've narrowed it down to 3 of the scripts (I currently have 7). Whenever any one of these scripts or combination of the three scripts is on, I get the error. The offending scripts are very innocuous is code. Here is one of them:
Code: Select all
return {
active = true ,
on = {
devices = {'Gas Flow'}
},
execute = function(domoticz)
local therm = domoticz.devices('Gas Flow').flow * 0.0353146667
domoticz.log(tostring(therm),domoticz.LOG_INFO)
domoticz.log(domoticz.time.secondsSinceMidnight/60,domoticz.LOG_INFO) --for testing the secondsSinceMdnight function
-- update the dummy sensor
domoticz.devices('cuFt Flow').updateCustomSensor(therm)
end
}
As far as I can tell what the other two scripts have in common with this one and each other, is they do some math and update a dummy sensor of some type. If I disable all of these scripts the errors go away. What I want to do next is disable the dummy sensor update function to see if the errors go away. But first I wanted to check to see if I am on the right path. The device "cuFt Flow" was created as a custom sensor. Any suggestions?
Also I'm running the latest beta version of Domoticz on a rpi3 with some zwave and MySensors devices.