Team,
After struggling for a few hours I have to see if there's someone who can help.
Setup: HA + Lamp + Powercalc.
Changed: the Lamp devicename and entities were renamed. The powercalc entity kept the old name so I <redflag> renamed the entity manually.</redflag>
The history data is migrated succesfully because I can see it. The current state is reset to 0.
Actions:
- dev tools/states set state of renamed entity to the last known value "3.3004 kWh".
- With phpMyAdmin, I updated the "0" value in the states table.
After a few minutes, this entity has a state of 0.004 kWh. I tried this a couple of times but now it resets to 0.008 kWh.
It looks like it has a secret state table and 'continues' with data.
Any ideas?
(besides "don't mess with SQL" 🙂 )