How to average value of mqtt sensor?

Hello,

I have a mqtt temperature sensor configured as:

mqtt:
  sensor:
    - name: "Inside temperature"
      state_topic: "rpi_tl/temp_in"
      unique_id: "temp_in"
      value_template: "{{ value | round(2) }}"

How can I average (sliding_window_moving_average) the temperature data (value)?
If I try to add filters I get: DisallowedExtraPropWarning.
I’m newbie in home assistant…

Thank you :slight_smile:

A template sensor…
Apply a filter and use the filtered value instead of the MQTT value, just like any other sensor value.

Dear Sir_Goodenough,

Thank you for your prompt response. I’m afraid I’m to new (2 days) to HA to know how to proceed with your hint. Just watched many tutorials, but I’m lost. Any great tutorials/guides to follow?
Best,