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
Label & Value Color not changing #1380
Comments
Hmm, we currently don't parse the colors out of the SSE response: https://github.com/openhab/openhab-android/blob/master/mobile/src/main/java/org/openhab/habdroid/model/Widget.java#L329 ... are they actually part of the SSE events? Edit: looks like it, actually: https://github.com/openhab/openhab-webui/blob/master/bundles/org.openhab.ui.basic/web-src/smarthome.js#L1987 ... I'll check and fix this. |
We probably also should parse the icon from the response. Full response: https://github.com/openhab/openhab-core/blob/master/bundles/org.openhab.core.io.rest.sitemap/src/main/java/org/eclipse/smarthome/io/rest/sitemap/internal/SitemapWidgetEvent.java |
(BTW, @mueller-ma, should we/I do this before or after the Kotlin conversion? Same question applies to the chart scaling fix.) |
Makes sense for both, so we can release a version with shortcuts and tasker and after that merge #1347 and #1356. |
What makes sense - add those fixes before or after Kotlin conversion? ;-) |
Fixing them before the kotlin merge. |
OK, I'll send some PRs. |
We previously didn't update icon, label color and value color via SSE. Fixes openhab#1380. Signed-off-by: Danny Baumann <dannybaumann@web.de>
We previously didn't update icon, label color and value color via SSE. Fixes #1380. Signed-off-by: Danny Baumann <dannybaumann@web.de>
Found the issue here and added my POV :-)
Actual behaviour
Using valuecolor or labelcolor settings, the setting is not applied to new values, thus requiring a manual refresh by pulling down or reopening the sitemap.
Expected behaviour
Color should be applied to new values.
Steps to reproduce
Environment data
Client
The text was updated successfully, but these errors were encountered: