Input_slider should show set value and have unit

Would be nice if the input_slider would display the set value and also have an optional unit.

There is a tool tip which is showing the current value. If that’s not enough just use a template sensor to show the value on the frontend. The template sensor could also help with the unit.

What would be the purpose of an unit attached to the slider?

Well I guess a template sensor could work. But I would prefer to see the set value without the tooltip. Question of screen real estate…And of course with the appropriate unit (°C - in my case)

I am using it to set my reticulation timer. It would be the sort of thing that you set and just leave. you shouldnt have to tool tip to view it, especially on a touch screen.

I would suggest showing it to the right of the scroll bar, where a switch would normally be displayed.

1 Like

At least for the unit, you can use the icon attribute of input_slider to accomplish what you want:

input_slider:
  downstairs_heat_to:
    name: Downstairs Min
    icon: mdi:temperature-fahrenheit
    min: 60
    max: 80
    step: 1

I’d also like to see an optional value label on the input slider.

1 Like

I need it too +1

1 Like

I would also like the value shown to the right of the input_slider to be able to view it on my phone. I guess the slider would be shrunk by the space used, so both unit and value should probably be optional to be able to maximize the slider area…

I’m currently adjusting the friendly_name as a workaround:

I too would like the value of the slider to be seen. I can’t even find any tooltip, which wouldn’t be enough anyway.

@Phudeot Can you change the name of the slider from an action/a script? I googled a bit without success. It’s a decent workaround.

did you look at custom UI ? with it you can do a lot, and I am almost certain you can see the value of the input_slider

That seems like a quite complex thing to solve a very small task. I would personally find it much more pleasant to just update the name of the slider on change since it’s 5-10 rows of config.

I also don’t see any reason to not add an option to always show the value, I am sure that will happen sooner or later.

But still, thanks for the tip, I hadn’t thought about it.

totally agree with you. I also think that it would be a good useful addition to the input_slider.
I was just pointing out a possible workaround in the meantime.

1 Like

Hello, How do you adjust the friendly name? Tks

I’m dynamically setting the whole friendly_name text string from my app daemon script. I don’t know if it is possible to adjust this dynamically from other places as well…

Showing the currently set number is a basic UI design principle. A user shouldn’t have to guess at a state. +1 vote.

Hello,

I improved the slider so that it now display state value on the right
You could also add a unit_of_measurement to your input_slider

This changed is introduced in version 0.62, released 2 days ago

Note that if the card’s width is too small, it won’t be displayed because the slider would be useless

More here : https://github.com/home-assistant/home-assistant-polymer/pull/808

3 Likes