openhab / openhab-webui

Web UIs of openHAB
Eclipse Public License 2.0
212 stars 232 forks source link

Widget - wrong switch state shown #2532

Open ifs-net opened 1 month ago

ifs-net commented 1 month ago

The problem

There seems to be a bug in UI / widgets.

I have a widget (see in video "Angeschaltene Lampen") that shows lamps that are switched on. And it is also possible to switch off the lamps. Whenever a lamp is switched of via this UI / widget, the item is no longer shown in the widget (thats correkt) But now openhab tries to show the switch state as off - but applies this state for the wrong item. You can see it in the video - after switching off a lamp the next lamp gets the wrong state (but it still is switched on as you can see after reloading the ui view ion the browser)

I recorded a video to show the problem: http://ifs-net.asuscomm.com/temp/oh-widget.mp4

My widget code:

`uid: lights_on_switches_dimmer tags:

Widget inclusion at overview page:

component: widget:lights_on_switches_dimmer config: groupToShowDimmer: gruppeLichtAlleDimmer groupToShowSwitches: gruppeLichtAlleSwitch prop1: Angeschaltene Lampen

Expected behavior

The state of items is shown correctly

Steps to reproduce

See code snipets

Your environment

runtimeInfo: version: 4.1.1 buildString: Release Build locale: de-DE systemInfo: configFolder: /openhab/conf userdataFolder: /openhab/userdata logFolder: /openhab/userdata/logs javaVersion: 17.0.9 javaVendor: Debian osName: Linux osVersion: 4.4.302+ osArchitecture: amd64 availableProcessors: 4 freeMemory: 240741336 totalMemory: 1098907648 uptime: 2125674 startLevel: 70 addons: