Number helper with decimals

As mentioned in another thread I have kep my old HA running with some old versions till I decided to finally upgrade hardware then did an update of OS etc. In doing so i found a lot has changed and decided to start from scratch.

On my olf Lovelace I used to have a slider that showed one decimal place for a tempreture set point. It would have been configured in YAML

So trying to keep things kleen this time I found the helper UI and creaed a helper number BUT cant get it to use 0.1 as in 21.5 or 23.1. It does whole numbers.

So do I have to make those in the config file to achieve that? ALso whilst on that, I also created a couple of toggle helpers. How do you set the restore state etc?

The Step option’s default value is 1 so simply set it to 0.1.

The UI for creating an Input Boolean helper doesn’t currently allow you to configure the initial option.

If you need to use that option, you will need to define the Input Boolean in YAML and not via the UI.

1 Like

I may have missed something and I am going to go and have a look but the UI editor didnt have an option for the step.

I am happy doing the config in the yaml format. I have done it for so long. But I was trying to use the UI etc to be more upto date etc…

Thanks for the info so far

Here’s a screenshot from version 2022.7.2. It contains the “Step size” option.

I am missing something obvious. I must be trying to do it the incorrect way. I am adding a number helper with version core-2022.7.7

Change the value of Step size from the default 1 to 0.1

2 Likes

Ok this is going to sound crazy but I just went to helper again, hit the add a helper, selected number and added a test 2


An after thought it a may have copied your image… I am remoting in to my server.

It doesn’t have the step size? When I took the image above I was so used to it not being visible that I didnt see it was there. I went back into that helper and its not there.

What version are you running? Mine looks the same as 123 having just checked.

I’ve never made an input number using a helper before though so had to go looking.

Home Assistant 2022.7.7
Supervisor 2022.07.0
Operating System 8.4
Frontend 20220707.1 - latest

Really not sure but there’s a chance it is a bug in the latest release. i am funnily enough also on 2022.7.2 like 123 is.

Try restarting HA first but if it doesnt appear, perhaps create the input number in yaml as you did previously for now, just to get it working

I upgraded to version 2022.7.7 and still see Step size in the form. Here’s what it looks like when creating a new Input Number.

I suggest you try clearing your web browser’s cache (press Ctrl-F5 but it may depend on your browser type).

Yes this is strange. I am starting to second guess myself. Thanks heaps 123. So far though so good. I like all the improvements I had been missing out on.

I just tried actually making a helper and it only allows step size to be set to an integer. So it’s broken even though i can see it. image

Glad to see I am not totaly loosing it. I will go and create a couple the old way with Yaml for what I need but I do notice in myself rebuilding my system I learnt so much from my system over the last few years that I nearly know what I need as I go instead of adding and adding and testing. I use node-red as my automations and its even looking a lot cleaner.

My partner (I have mentioned this before) has multiple personality disorder and I use the system to help her. I used to have a lot of reminders played over the text to speech and doing this rebuild I have left a lot out. She asked me yesterday to put a few of the ones back in so I know the system is well worth it as is all your inputs and help

So you see Step size but can’t get it to accept a floating point value.

Whereas you don’t even see the Step size option. Or has that been resolved now (by clearing the browser’s cache)?


For the record, I can both see Step size and accepts a floating point value (I tested it with 0.1 and it allows increments/decrements by that amount).

Yep. It says Please enter a valid value. The two nearest valid values are 0 and 1. when trying 0.1 or 0.01

I’m going to upgrade to latest and check again.

Edit: nope still only integers

Have you cleared the browser’s cache?

Same here. I can use 1 and 0.1 as “Step size”, but not 0.01 or smaller. Also I cannot write decimal numbers from info view without clicking “increase/decrease buttons”. see e.g.

Had this too. But I have saved them like this and this works:

image

HA-Version:
Home Assistant 2022.9.4
Frontend 20220907.2 - latest

Restarting HA fixed the issue for me. Clearing the cache did nothing.

Here are my min, max and step values
image

Here is the result
image