I am reading values from several Tuya SPM02V2 control via MQTT | Zigbee2MQTT via ZigBee2MQTT. The “energy” sensor is of class “total increasing”.
I now had to swap out one of those because it kept dropping out of the ZigBee mesh. In ZigBee2MQTT, I renamed the replacement so that it has the same name as the old one. This had the desired effect (measurements available again under the old name in HomeAssistant), but there’s one snag: the accumulated energy dropped from 294 kWh to what the replacement device is currently reporting, 0.04 kWh.
When I look at weekly consumption in the energy dashboard, I see a value for the device which seems sane. Is the dashboard smart enough to deal with values that should be monotonically increasing (class “total increasing”) but in reality did decrease?
Is there a way to fix the values?