zigbee2mqtt-frontend
zigbee2mqtt-frontend copied to clipboard
Dynamic parameters of UI elements with dependency on other elements values
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.