-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
oh-knob
& oh-stepper
: Add offset functionality
#1875
Conversation
The styling is required to fix a style issue. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Supersedes openhab#1565. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@ghys While implementing this, I noticed that the setpoint has an input field, which however does not work when setting min/max values (e.g. min is 14, max is 26: you want to input 22, but the moment you remove the second digit the value will become 14). |
Job #968: Bundle Size — 15.75MiB (~+0.01%).Metrics (3 changes)
Total size by type (3 changes)
|
Maybe it could upset some users who liked the feature for items which don't have min/max constraints. I'd say maybe make it optional, opt-in by default, but it's probably better to still have the option. |
Okay, thanks for the feedback. I will let you know when I'm finished 👍 |
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@ghys Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM!
Regression from openhab#1875. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Regression from #1875. -- Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Supersedes #1565.
This adds an offset parameter to the knob and stepper components, that allows to add or subtract a number value to the displayed state of the component.
This is useful for thermostats which have a fixed temperature of n and are controlled with an offset to that temperature n, e.g. you have a KNX HVAC system which has a fixed temperature of 20 °C: -2 would mean the target temperature is 18 °C, +2 would mean that the target temperature is 22 °C. By setting the offset parameter to 20, the UI will display the real target temperature instead of the -2 or 2.