Sonoff S60ZBTPF daily/yesterday/month kWh counters
Posted: Tuesday 30 September 2025 14:11
Hi I recently bought Sonoff S60ZBTPF Zigbee wall plugs. These plugs have daily/yesterday/month kWh counters which reset to 0 after a while (daily/monthly). (I would like to ignore yesterday and month).
I have Zigbee2MQTT running which posts into Mosquitto and have Home Assistant and Domoticz read Zigbee2MQTT in Mosquitto.
In general this works perfectly fine.
Unfortunately I'm not sure how to let Domoticz cope with the resetting kWh counters. When I set the kWh counter to "read from device", when the next day starts it says "-x kWh", where "x" is the kWh from the other day. During the day -x kWh increases but it doesn't depict the real kWh from this day though. This doesn't work.
Now I've tried to set the "kWh Today" device to "computed", which seem to work a bit better however it is less accurate unfortunately.
Zigbee2MQTT reports "0.01kWh" for instance, while Domoticz reports "0,048kWh".
This seems to be a little bit although this is for just half a day, what would be the difference for a complete year and or for devices that consume much more?!
Is there another way to "read from device" but increase the counter continuously (on a daily basis) as a work around?
And/or can we have a permanent easy feature build in Domoticz where there'll be an extra option: "read from device (daily counter)" / "read from device (total counter)" / "computed"
I have Zigbee2MQTT running which posts into Mosquitto and have Home Assistant and Domoticz read Zigbee2MQTT in Mosquitto.
In general this works perfectly fine.
Unfortunately I'm not sure how to let Domoticz cope with the resetting kWh counters. When I set the kWh counter to "read from device", when the next day starts it says "-x kWh", where "x" is the kWh from the other day. During the day -x kWh increases but it doesn't depict the real kWh from this day though. This doesn't work.
Now I've tried to set the "kWh Today" device to "computed", which seem to work a bit better however it is less accurate unfortunately.
Zigbee2MQTT reports "0.01kWh" for instance, while Domoticz reports "0,048kWh".
This seems to be a little bit although this is for just half a day, what would be the difference for a complete year and or for devices that consume much more?!
Is there another way to "read from device" but increase the counter continuously (on a daily basis) as a work around?
And/or can we have a permanent easy feature build in Domoticz where there'll be an extra option: "read from device (daily counter)" / "read from device (total counter)" / "computed"