I want to use "x.counterToday" in dzvents to display the actual daily runtime of a device in an external system.
Code: Select all
return {
on = {
timer = {
'every minute',
}
},
logging = {
level = domoticz.LOG_INFO,
marker = "TMR"
},
execute = function(domoticz, timer)
domoticz.log('CL dosierung (TMR): '..domoticz.devices('$Pool CL dosierung (TMR)').counterToday, domoticz.LOG_INFO)
end
}
In the Webinterface and the Json output display the Value "0" but dzvents diplays the last value from yesterday until a new value is set. Does someone know where the bug is ?