Utility_meter glitch

Using utility_meter to follow up home energy usage monthly. The utility_mete is collecting the energy usage in kWh from Aeotec HEM Zwave sensor. Yesterday, for whatever reason, the HEM sent some nonsense result for some seconds-minutes. So, the value of the utility meter changed accordingly:

At 10:00 AM, Home Energy Meter Energy sent the wrong values in spike, so the utility meter monthly_home_energy changed its value which increased from 1.131kWh in total to 56.294kWh almost instantly.

So my question is, is there a way to remove these wrong values either from the utility_meter or the sensor readings of HEM? I know that HEM values can be deleted from database but i am not sure if this will be reflected to utility_meter values?

Solved it this way:

First stop HA instance. Change the last state value of the sensor in the database and commit it. Then open config/.storage/core.restore_state file and find the relevant sensor. Change the state value to the same value you did in the db. Then start HA again…

1 Like