Page 1 of 1

value of rfxmeter counter

Posted: Saturday 01 February 2025 10:52
by pierrotori
Hi,
i have a problem for the value counter when i try dz.devices("xxx").counterToday next 0:0 , i have the value of the before day and not the init value of the next day
normaly for the new day the counter is reset to zero, is it correct ?
Pierrotori

Re: value of rfxmeter counter

Posted: Saturday 01 February 2025 11:54
by waltervl
It should be around time 0:00 but you better try at 0:01 to go around some timing issues with other Domoticz events. Domoticz is doing a lot on 0:00.

Re: value of rfxmeter counter

Posted: Monday 03 February 2025 8:43
by pierrotori
i found the problem
if the counter is updated every min then the counter is updated à 0 for the new day.
but if the counter is equal to 349 for exemple and you arrive in the new day , it's the last update at 3:am will update the counter to 0
during the period 0:0 am to 3:0 am the counterToday is equal to 349
is it normal for you ?
perhaps a solution at 0:00 is to force the counter : dz.devices(counter_water).updateCounter(dz.devices(counter_water).counter*1000)
Pierrotori