Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Remove decimal in gauge

$
0
0

@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 }}"

image

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

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>