-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Fix changing temperature via Basic UI #2165
Fix changing temperature via Basic UI #2165
Conversation
Signed-off-by: Christian Bandowski <christian@myvm.de>
44ef11a
to
1f20c5e
Compare
@chris922 it is some time since I last did it but as I recall you need to drop the jar file in the addons folder and then use the console https://www.openhab.org/docs/administration/console.html#using-the-console |
@andrewfg : I know how to do it for bundles like additional bindings.. but this here are changes at the openHAB core, so I am unsure if it is still the same way or if I will destroy my setup when I try to uninstall/remove something there to drop in this new JAR 🤔 |
Its is a bit different for bindings and core jars..
|
^ |
^ |
Ahh nice, perfect. I stopped the bundle Thanks @andrewfg for supporting me how to test it |
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.
Many thanks for the fix, lgtm.
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/sitemap-visibility-tag-seems-to-disable-setpoint-items/115767/9 |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/crazy-bevavior-in-basic-ui-oh3/114927/24 |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-3-setpoint/112801/19 |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/set-temp-using-neohub-binding-in-basicui/132573/1 |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-3-4-release-discussion/142257/76 |
Signed-off-by: Christian Bandowski <christian@myvm.de> GitOrigin-RevId: d48646d
As described in openhab/openhab-webui#765 changing temperature via BasicUI fails as long as the widget in the sitemap doesn't have a label defined.
I debugged the issue on my openHAB instance (v3.0.0) and saw that the unit-symbol of the Item will not be used in case no label was defined and instead of this
null
will be returned.Therefore I added a small check that will ensure that the unit-symbol of the item will be returned as long as no label is given.
Unfortunately I don't know how to test the changes, I tried replacing the corresponding JAR in the runtime directory, but seems that it doesn't work. If someone could give me some hints how I can check this in my running openHAB instance please let me know.
Anyway I added some unit-tests based on the information I was able to gather during debugging.
Fixes openhab/openhab-webui#765