@EarlGrey wrote:
I am trying to remove a decimal as I want to have rounded percentages. I’m retrieving values for a device between 0.1 and 1.0.
As template_value I’m using:
value_template: "{{ states('sensor.homey_mechanisch_vent') | float * 100 | int }}"
I tried various functions like
round(0)
, but every time the .0 appears. Is there a way to have this fixed?
Posts: 6
Participants: 3