jacoscar
(Jacopo)
January 26, 2023, 10:07am
1
I have an ESP32 that reads an energy meter internal kWh counter and then sends it to HA via MQTT
I disconnected the RS485 between the meter and the ESP32 for a few minutes and found that it reported 0 for that duration of time
This consequently screwed up my daily energy consumption because it saw the big jump from 0 when I connected it back
How can I prevent this from happening
How can I fix the wrong data?
HA_n00b
(HA n00b)
January 26, 2023, 10:27am
2
I don’t have the answer, but I also want to know how to correct the data manually.
I can imagine we could do this by accessing the database directly using SQL commands, most probably.
jacoscar
(Jacopo)
January 26, 2023, 12:55pm
3
I’ve solved 1): it was just bad coding in the esp32 from my side (it was publishing to mqtt even when receiving invalid data)
as per 2), I managed to correct the current utility meter reading using the service “calibrate”, but not changing the history