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.
#How to set a fixed precision for an input_number helper on a tile card?
1 messages · Page 1 of 1 (latest)
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
Home Assistant Community
The input_number helper does not have an option to set the precision. When you show an input_number helper value in a tile card for example, it will always round itself automatically. For instance, if the value of an input_number is 21.5, it will show 21.5 in a tile card. But, if you want to show that 21.5 as a currency value in a tile card, ...
Are you wanting to display the slider still, and have the number display alongside it with trailing zeros?
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
Yeah, intermediate template sensor is probably the best way to go with that unless you want to start playing with js