I have a pool control set up using a 4ch tasmota and a th16. I can set the pool temperature, timer light etc. To enter temperature setting i use an input number slider. What i need to try and do is use a different unput to change the max of the slider on the fly.
This is the code for my slider that is in my config.yaml:
input_number:
slider:
name: Set pool temperature
min: 60
max: 93
step: 1
I would like to use a seperate number_input to set the “max:” value.
Just set slider from 1 to 100 and change it on the fly as you want
If you need two values for automation, temp MIN and temp MAX, then create two input numbers and use them there.
Im sure there are many ways to do this but i was hoping for something simple. This control is being used at a rental property that belongs to two friends. When they have the house rented i want them to be able to set a max temperature for their renters but when they are in the house i want them to be able to turn the max temperature up. They have no idea how to change any of the files in HA and i dont want them to screw anything up.
The simplest way I can think of is to use two input numbers. One for renters, one for your friends.
You could use a conditional card or the custom state switch card to expose the relevant input_number based on your friend’s presence. Or even simpler - two different dashboards.
The tricky part is the template for which input_number to use… Can you show the config where you are using it (in an automation or script)?
I don’t know how the presence is controlled or detected and this won’t be quite as neat UI wise but you could use an automation to trigger every time the slider (input_number) is changed: If it’s higher than the max for when the tenants are there, simply force the value to that “max” value, otherwise, allow any value.