Open dilyanpalauzov opened 1 year ago
This was already discussed several years ago. Unfortunately, there was no solution validated to show NULL/UNDEF values.
The NULL/UNDEFINED state could be displayed as a toggle in the middle (neither left nor right).
Or implicit mappings=[ON="ON",OFF="OFF"] can be applied. With mapping there is distinction between set and unset value.
Which UI are you reporting an issue for?
Basic UI and OpenHAB-Android when displaying sitemaps.
The problem
In an
openhab/items/*.items
file I create an item withIn a sitemap I define:
That is, the same item is displayed twice in the sitemap file. The value of the item was never set.
The mappings-line A1 shows clearly that the item has unset (undefined, null) value, as neither X nor Y are is selected.
The B2-line does not distinguish between OFF and UNSET value, both are presented to the user in the same way.
Expected behavior
I expect that even without
mappings=[ON=, OFF=]
the user can see whether a toggle has undefined state.Your environment
OpenHAB 3.3, openHAB-Android 2.23.4-beta.