Is it possible to have a dynamic limit for an input_number
?
For example, I have some temperatures that can be selected in the UI (I’ll pick one set for simplicity) and then I have automations and templates that “choose” which set of temperatures to push to my thermostat:
Vacation/Away Heating Temp
Vacation/Away Cooling Temp
I want to be able to tweak them without going into the code so I used an input-number but also I need to make sure it can’t bet set where the heating temp is greater than the cooling temp (e.g. heat to 80, cool to 70) at the same time.
Is there some way to “interlock” the max/min? Like the “max” for heating is whatever “cooling” is set to; the “min” for cooling is whatever “heating” is set to?
When I attempted to put a template in the max:
line it didn’t like that.
downstairs_hvac_requested_away_heat:
name: Downstairs HVAC Away Heat
icon: hass:fire
# initial: 67
min: 65
max: 80
downstairs_hvac_requested_away_cool:
name: Downstairs HVAC Away Cool
icon: hass:snowflake
# initial: 76
min: 65
max: 80
But with one wrong accidental swipe, this isn’t actually possible to set a thermostat to: