Simple case- i have a device that the regulation range depends on a mode that it operates on (heat pump working on a curve with -5/+5 range OR on a direct temp setting +5/50). So logic would be like
If mode=curve then
min=-5
max=5
Else
min=5
max=50
End if
You could create two input numbers and use the conditional card to display the correct one depending on the mode.
Likewise in your automations/scripts select the correct input number with a template depending on the mode.
Another option I can think of is to have one input number with the full range (-5 to 50) and limit its value with an automation. e.g. if someone changes the input number outside the range for the current mode move it back to the max/min.
Final option I can think of: you could have one input number (0-100%) and scale it depending on the mode when you use it in your automations/scripts.
Tom, the option of creating additional input number and conditional card would fit here perfectly! As automations and conditioning them are not the problem then this solution will solve my problem.