How can I reset the energy measurements for a smart plug so I can use it for a new purpose?
I have a Zigbee smart plug named Teddys Lab that I am now using to monitor my mushroom dryer. However, I used it a year ago to measure a heating element, and now, after reconnecting it and renaming it, it starts with a value of -9 kWh.
I’ve checked in Developer Tools → Statistics, but I don’t see any option to delete the history or reset the readings. The ramp button let’s me see “outliers” but they are a) numerous, b) fairly small (<0.3kwh) and c) can’t be deleted, only “adjusted” (with unclear effects). Manually click through hundreds of these “outlier” entries can not be the intended path.
So, what’s the correct way to reset the energy data to start fresh?
If using zigbee2mqtt, go to the web frontend, click on the device and select the device settings (specific). There it has energy offsets and accuracy decimal stuff. You can offset the energy so it reports 0.
In the following screenshots, it says the offset is percentage, so I’m assuming the value would be 100 (+ 100%).
The other option is to create a template sensor and add +9 to the value.
Usually it’s the zigbee plug reporting the energy usage itself, not hass. If so, all you can do is offset it or use a template to offset it within hass.
I have a few zigbee plugs that monitor power, the energy reported survives factory resets and is one of the reasons there are offset corrections directly in z2m.