Update frequency sensor template

i use this template to round my temperature sensor from 0.01 °C to 0.1 °C

value_template: "{{ (states('sensor.rm4_temperature') | round(1)) }}"

it works fine, but the template sensor rarely updates,
i see the original broadlink sensor updating every few minutes, the template doesn’t update very often,
template_update
why is that?
can i change the update frequency?

The Template Sensor is evaluated each time sensor.rm4_temperature changes state. However, the Template Sensor’s value will be updated only if it changes.

Let’s say these are values of sensor.rm4_temperature every 15 seconds:
18.48
18.42
18.47
18.40
18.43

The Template Sensor’s value will be at 18.5 for the first one and then remain unchanged for all others because none of them, when rounded, are different from 18.5.

2 Likes

that makes sense, :man_facepalming:
thx for the fast aswer

You’re welcome!

Please consider marking my post (above) with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has an accepted solution. This helps others find answers to similar questions.