Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic parameters of UI elements with dependency on other elements values #2015

Open
alexelis opened this issue May 6, 2024 · 0 comments
Open

Comments

@alexelis
Copy link

alexelis commented May 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant