Round Gauge

Why does the “round” not work ?
Any ideas ?
Thanks

type: gauge
value_template: '{{ states(''sensor.angle_x_filter'') |  round(1) }}'
entity: sensor.angle_x_filter
needle: true
name: Fahrer < -------- QUER --------- > Beifahrer
min: -5
max: 5

2023_09_17_08_10_40_Hymer_HCG_Home_Assistant_Opera

Try this:

value_template: '{{ states(''sensor.angle_x_filter'') | float | round(1) }}'

As above, but to add: states are strings, which is why you need to make it a number first.

Thank you :slight_smile:

But no success with:

value_template: ‘{{ states(’‘sensor.angle_y_filter’’) | float | round(1) }}’

… same problem :frowning: