Hi!
I use a tasmota-based infrared read head to get data from an energy meter. To use this data for the energy dashboard, I created a template sensor like this:
state:
{% if float(states('sensor.tasmota_sml_total_kwh'), default=0) > 10 %}
{{ float(states('sensor.tasmota_sml_total_kwh')) | round(4) }}
{% else %}
{{ states('sensor.sml_consumption_total') }}
{% endif %}
availability:
{{ has_value('sensor.tasmota_sml_total_kwh') }}
Unfortunately, sometimes the read head delivers incorrect data (eg. too small, but not necessarily zero) or no data at all.
How can I filter the data in a smart way and remove outliers so that the energy statistics are correct?
Thanks a lot and have a great weekend! ![]()
Thorsten