Hi all,
I’ve a filtered sensor and I would like to round the value, I tried in different ways but alway got an error.
This is my last code
sensor:
- platform: filter
name: "Potenza istantanea filtered"
entity_id: sensor.din_power
filters:
- filter: time_simple_moving_average
window_size: 00:03
state: '{{ states("sensor.potenza_istantanea_filtered") | round(0) }}'
what’s wrong?