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
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
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
But no success with:
value_template: ‘{{ states(’‘sensor.angle_y_filter’’) | float | round(1) }}’
… same problem