Hello,
I would like to ask you for help with rounding the value of the sensor, which has as a unit of percentage.
For sensors with other units, rounding works, but not for this.
- platform: template
sensors:
zustatek_vody_studna:
value_template: "{{ (states('sensor.vyska_hladiny_studna') | float * 100) / 420 | round(0) }}"
friendly_name: "Zůstatek vody"
unit_of_measurement: "%"