-
Notifications
You must be signed in to change notification settings - Fork 779
Basic UI: Active switch item with mapping isn't highlighted any longer #3472
Comments
Please provide a portion of your items and sitemap showing this issue. |
I changed the title. Sitemap (partly): Items (partly): That problem also exists for items binded to KNX and others. So I assume it is not related to a certain binding. |
Maybe a consequence of my PR #3368. I will check. |
Unfortunately, I can confirm the issue using the scene widget from the demo sitemap. |
I think it has no link with my change but might be again a consequence of PR #3332. |
I think the fix is to not try converting to OnOffType when the widget is a switch with mappings. |
Indeed you are right. In this case the Sitemap Switch points to a NumberItem which usually is not on/off but multiple settings. I created a PR to fix this. But I am curious on how many more bugs we find due to my conversion method in PR #3332... Initially I fixed a bug with it but it looks like a lot of functionality relied on that bug/behavior ;-) |
Your PR was a clear improvement but it would have needed more testing ;) |
* BasicUI: Treat Switch on NumberItem not as ON/OFF Switch * Only convert state of plain switches without mappings * Fix exception in test due to new check in implementation * Test for state conversion on switch with mapping Fixes #3472 Signed-off-by: Stefan Triller <stefan.triller@telekom.de>
I'm using openhab2 and my configuration is based on sitemaps.
All switch items are being displayed but since a week (or so) the chosen item is not highlighted any longer.
When you click it button will be highlighted, but when you leave the page and go back it is not highlighted anymore.
The text was updated successfully, but these errors were encountered: