openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

[sitemap] Do not try to convert item state into OnOffType for Switch widget if item has options

Open lolodomo opened this issue 1 year ago • 1 comments

When the Switch widget has mappings or when the item has a state description with options, the Switch widget is rendered by UIs with buttons. There was no state conversion into OnOffType when the switch widget has mappings. But when the item has a state description with options, it was wrongly converted into OnOffType.

See this community discussion for an example: https://community.openhab.org/t/item-statedescription-and-sitemaps/155935

Signed-off-by: Laurent Garnier [email protected]

lolodomo avatar May 13 '24 18:05 lolodomo

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/item-statedescription-and-sitemaps/155935/9

openhab-bot avatar May 13 '24 18:05 openhab-bot