-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Improve state generation logic when fetching icons #3456
Conversation
Draft because I didn't test it yet. |
603b543
to
3a8946e
Compare
If set, icon state should not be included when fetching the icon for a given widget. See openhab#3404 Signed-off-by: Danny Baumann <[email protected]>
See openhab#3404 Signed-off-by: Danny Baumann <[email protected]>
Signed-off-by: Danny Baumann <[email protected]>
BasicUI set a predecent for doing so, and users are relying on that behavior. Fixes openhab#3461 Signed-off-by: Danny Baumann <[email protected]>
3a8946e
to
84026b7
Compare
Gave it a try on my home sitemap, looks OK as far as I can tell. |
Thank you for your work |
@maniac103 Feel free to merge this. I don't have enough time to test this, but from a quick review it looks good to me. |
@mueller-ma OK. I guess/hope we'll get feedback from next beta if anything is off. |
@maniac103 @mueller-ma : regarding the state passed to the icon servlet, do you know if we are passing always the same state value in the Android app and Basic UI ? I hope we are consistent. |
I know that I don't know ;-) I would hope so, but I don't have a good idea on how to find out or even enforce it. |
Add support for openhab/openhab-core#3735, format numeric state according to pattern (as mentioned here), and make logic a bit easier to understand.
Fixes #3404, #3461