-
I'm using the Tasmota Smart Meter Interface for interfacing with a power meter (via OBIS ASCII) that reports monotonically increasing energy consumption (KwH). I noticed that sometimes (once or twice a week) the value read from the meter is zero for a single sample. On next read the correct value is returned again (e.g. 5234, 0, 5235). This is causing some issues with home-assistant's energy dashboard (as it interprets this as a counter-reset/rollover). Is there a way to "preprocess" read values from the meter in Tasmota before emitting them via MQTT? E.g. if the value is zero or lower than the previous sample, either don't transmit the reading or use the previous value instead. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Can you use the filter sensor in Home Assistant to remove the outliers or is this not possible with the energy dashboard. |
Beta Was this translation helpful? Give feedback.
-
check the docs and search for median filter |
Beta Was this translation helpful? Give feedback.
-
As far as I can see no crc:s are calculated and therefore not checked. This is probably why you get wrong values every now and then. There is really no other cure to this than inclusion of crc calculations/checks in the code. |
Beta Was this translation helpful? Give feedback.
-
Isnt it called smart home? HomeAssisant would be smart if it sanatizes the values and consider 0kWH as a faulty measurement to be ignored. You may argue that this is a problem of the sensor and could be solved by Tasmota but that is also not working - see #21126 |
Beta Was this translation helpful? Give feedback.
check the docs and search for median filter
https://tasmota.github.io/docs/Smart-Meter-Interface/