Hi,
I want to create an input_number (in UI or config.yaml, don’t care) where I can set a value between 1 and 2 with 5 decimals. Both the UI and yaml don’t let me do that. How do I let it accept decimals?
Thanks!
Read the manual on this one… it is alike an integer.
You could then use it multiplied by 100000 and use it elsewhere (via template) divided by that…
It might help explaining a bit what you are after in the end
sorry I don’t understand your message. I also never understood how templating works… I want to create an entity with a numeric value that I can then feed into the energy dashboard (the value being the current gas price in EUR per m³ (1,60495)
Hello… You have to create an Helpers - Number.
You can select min, max and init value.
Then on step size, choose whatever you need as decimal.
In your case you should have
Min: 1
Max: 2
Init:1
Stepsize: 0,00001
Then you can add a card with this entity to enter the value you need.
This is how I do it:
t93_offpeak_energy_cost:
name: T93 Offpeak Energy Cost
mode: box
min: 0.00000001
max: 100.00000001
unit_of_measurement: "$/kWh"
icon: mdi:currency-usd
1 Like