value of rfxmeter counter

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
User avatar
pierrotori
Posts: 118
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

value of rfxmeter counter

Post 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
Last edited by pierrotori on Saturday 01 February 2025 19:25, edited 1 time in total.
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
waltervl
Posts: 5852
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: value of rfxmeter counter

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
pierrotori
Posts: 118
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: value of rfxmeter counter

Post 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
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest