I’ve connected a Tasmota based smart meter reader to my HA instance (supervised). Sometimes, it’s not clear when and why, garbage is shown for a timespan in the short term stats in the UI for a single sensor in the data from the smart meter (the smart meter part is probably irrelevant).
The erroneous data looks like this:
Note the flat segment around 21:00. That consists of values between 0 and 1.0. Clicking Show more shows the actual data:
There’s no sign of the flat part around 21:00. I removed the affected values from the statistics table, but it changed nothing. The bad values are still in the UI. I know I deleted the right rows, because under the same statistics ID, the correct data is still present in the table.
Is there any interim storage that I also need to clear? Where does that made up data set come from? It happened multiple times already. I noticed it after restarts of the Tasmota device. This particular sensor is only sending null values until a set time elapses (currently about 15 minutes) to be able to send meaningful statistics values regarding the smart meter connection. I tried not sending the value at all in that phase, but then HA showed warnings that the entity has disappeared and it never came back, even after sending valid data again. Maybe I will need to change that, but nevertheless, the made up data section should never happen.
Any insight is welcome.