I have a base entity called sensor.hem_energy_kwh that I receive from my home energy meter. It shows up as Long Term Statistics and all works fine. But the device often sends “dirty” data which I want to clean using Filer Sensors.
- platform: filter
name: "Home Energy Clean"
entity_id: sensor.hem_energy_kwh
filters:
- filter: outlier
window_size: 4
radius: 4.0
And it seems to work, but I cannot see the sensor as Long Term Statistics.
I added the measurments type in the customize:
sensor.home_energy_clean:
state_class: measurement
friendly_name: Home Energy Clean
And also made sure the new sensor has recorded history.
This is how it shows in Home Assistant:
What am I missing?