Helper value from other helper

Hello,

I would like to use 2 helper to set ON and OFF threshold for heating system. I want to use a slider, so min and max value is required. This is OK with constant value, but don’t know if min and max value can be dynamic set by the other helper actual value.

ON minimal is a constant 18 but max cannot be higher than OFF actual value, and OFF maximal constant 25 but minimal cannot be smaller than ON actual.

Is there any way to achive this ?

I have tried to do with yaml configuration, but still accept only constant, but not a template :frowning:

nappali_temp_treshold_low:
  name: nappali_temp_treshold_low
  initial: 20.2
  min: 18
  max: 21
  # max: {{states('input_number.nappali_temp_treshold_high') | float }} 
  step: 0.1
nappali_temp_treshold_high:
  name: nappali_temp_treshold_high
  initial: 21
  #min: {{states('input_number.nappali_temp_treshold_low') | float }}
  min: 21
  max: 24
  step: 0.1

commented line is invalid.

Any idea?

It seems like you may be trying to use an Input number helper where a different integration such as a Generic Thermostat would be more appropriate.

If you just want to have an entity like an Input number that can have dynamic min and max values you would need to use a Template number.

Could you give me an example? I’m a beginer in HA.

As I said above, I don’t think this is the right integration. But, I don’t really understand why you would need or want to change the min and max values of an input on a regular basis. This seems like this may be an X-Y problem. What is the end goal? What is this slider actually doing?

My A/C is controlled by Nod-red. Not too complex automation, but want to have more room for improvement. So similarly with Generic Thermostat I need 2 treshold. Min value to turn ON heating and a Max value to turn it OFF. I have also created sliders on dashboard to easily manipulate these tresholds.2022-11-28 07_32_46-Moshroom – Home Assistant
To avoid any incorrect settings for this sliders I would like to apply dynamic value for Min and Max.
Min treshold is started on a constant value but the max value of slider should not be biger than the Max treshold slider actual value. Same for Max treshold minimum value which should not be smaller than the Min treshold actual value.
This is what I want to achieve in this configuration, unfortunately it is not valid.

nappali_temp_treshold_low:
  name: nappali_temp_treshold_low
  initial: 20.2
  min: 18
  #max: 21
  max: {{states('input_number.nappali_temp_treshold_high') | float }} 
  step: 0.1
nappali_temp_treshold_high:
  name: nappali_temp_treshold_high
  initial: 21
  min: {{states('input_number.nappali_temp_treshold_low') | float }}
  #min: 21
  max: 24
  step: 0.1

hey, i got the same problem as you. So, how is the solution to this problem? Can’t it?

Same issue

Want to set

  • On Temp
  • Off Temp

and if ether On or Off slide to Above/Below the other, it need to follow the slider. (wow that does not make much sense.)

OK

On Temp = 65
off Temp =70

If the slider for On Temp is slid above Off (70) off needs to detect this and match On (preferably On +1 degree)

Like wise if Off is slid down to 64, the ON need to match Off (preferably Off -1)

Why not do this:

Still using two input numbers, one to set a median temperature plus a second to set a deviation from the median, above and below.

Median slider, say, min 60, max 85.
Deviation slider, say, min 1, max 10.

Then use an automation to switch off at median - deviation and switch on at median + deviation.

From a UI perspective, this should be easier to use than a pair of sliders setting minimum and maximum.