zigbee2mqtt-frontend icon indicating copy to clipboard operation
zigbee2mqtt-frontend copied to clipboard

Dynamic parameters of UI elements with dependency on other elements values

Open alexelis opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

During writing of external converter for floor thermostat I saw that most converters have hardcoded values, for example:

e.climate().withSetpoint('current_heating_setpoint', 5, 35, 1, ea.STATE_SET)

despite of some thermostats have min_temperature_limit and max_temperature_limit datapoints.

In such hardcoded case if I change max_temperature_limit through numeric slider it doesn`t affect the maximum range of current_heating_setpoint slider (obviously).

Describe the solution you'd like

Would be great if we can use something like that:

e.climate().withSetpoint('current_heating_setpoint', dpValue('min_temperature_limit'), dpValue('max_temperature_limit'), 1, ea.STATE_SET)

and the UI elements would change their properties (numeric range in this particular case) dynamically based on values from other elements.

alexelis avatar May 06 '24 15:05 alexelis