openhab / openhab-webui

Web UIs of openHAB
Eclipse Public License 2.0
220 stars 240 forks source link

Widgets (Properties) are not updated after changes in Item Metadata #893

Open c--r opened 3 years ago

c--r commented 3 years ago

The problem

It's a great idea to set default widgets in the item metadata, which should be the default visual representation of that item on cards, in lists etc. However, the feature quickly gets pretty useless, because no widget that has been added to a page gets updated if the item metadata gets changed later on. Obviously, the item metadata only is used once at the time when the widget is initially put on the page (one time copy), but then there is no link anymore.

Expected behavior

Steps to reproduce

Create a custom widget with a few properties, then select it as any of the default widgets for an item in the item metadata. Add Item to a page (use "Add from Model"). Now change some of the property values in the item metadata for the widget (no changes on the page). Then add a new property to the custom widget and set the value for it in the item metatdata (again, no changes on the page). Here's an example.

Your environment

OH3

ghys commented 3 years ago

Not strictly disagreeing but it's an expected & documented shortcoming (remark in http://www.openhab.org/docs/ui/layout-pages.html#adding-widgets) so I'm reclassifying this as enhancement rather than bug.