Hi
Im rookie in HA, starting to learn, so pleas bear out with me
My case:
I send values to HA by MQTT, works like a charm!
Values are planned to be in area 15 to 80.
I have logged my IoT devise and it sends correct values.
For my test im sending a fixed value from my sensor, I keep same load on my sensor 24/7, 25.3 kg
In HA I receive value 25.3 constant except some crazy values like 4 million that ruins my graph.
I have read that I may use Filter function, so this I now try to understand.
When I apply Filter as described below, I donāt know how to get the filtered values in HA, no new āsensorā item in HA.
So, what am I missing? Should Filter be installed from github?
Any tip?
Thanks up front!
In yaml I have set this, and mqtt is working, and HA receives values as planned.
I have tried this approach:
MQTT-> unique_id: kube1Vekt
Filter----> entity_id: kube1Vekt
mqtt:
sensor:
- name: 'Kube 1 vekt'
unique_id: kube1Vekt
state_topic: 'bikuber/kube1/vekt'
state_class: measurement
unit_of_measurement: 'Kg'
Filter I have added this:
sensor:
- platform: filter
name: "Filtrert vekt kube 1"
entity_id: kube1Vekt
filters:
- filter: outlier
window_size: 4
radius: 4.0
- filter: lowpass
time_constant: 10
precision: 2