#How to set a fixed precision for an input_number helper on a tile card?

1 messages · Page 1 of 1 (latest)

solar brook
#

Is there a way to set the precision of a number helper to a fixed number of decimal places in a tile card? For example, if the value of the number helper is 21.5, I want it to display as 21.50 in the tile card. Unfortunately, it's not possible to set precision for number helpers. While creating a template sensor to format the state is an option, I'd prefer not to do that.

#

If there's no solution and you find this feature useful, please consider voting for this feature request: https://community.home-assistant.io/t/add-a-precision-option-for-the-input-number-helper/812971

blissful sluice
#

Are you wanting to display the slider still, and have the number display alongside it with trailing zeros?

solar brook
#

I just want to show the value of the number helper in a tile card. When the number represents a currency, i would like to show it with two decimals. For instance €21.50 instead of €21.5

blissful sluice
#

Yeah, intermediate template sensor is probably the best way to go with that unless you want to start playing with js