openhab-core: Group is sometimes missing state updates from members
Expected Behavior
If a member of a group changes or updates it’s state, the group’s StateChangeListener should get informed.
Current Behavior
Most times when a group member updates or changed its state, the group’s listeners are not informed. The weird behaviour is, that this is not always the case.
I found out that:
notifyListeners
is called andclonedListeners
contains the listeners as expected.- for each of
clonedListeners
pool.execute
is called. - Without any exception being thrown and logged,
listener.stateUpdate
andlistener.stateChanged
ifstateChanged
are never called.
Possible Solution
Steps to Reproduce (for Bugs)
- Create a
Group:Switch:OR(ON,OFF)
- Put in at least one
Switch
Item - Switch that group member from the UI and have a look at the logs. Sometimes, the group Item won’t update it’s state.
Context
Your Environment
- Version used: 4.0.0.M2
- Environment name and version (e.g. Chrome 111, Java 17, Node.js 18.15, …):
- Operating System and version (desktop or mobile, Windows 11, Raspbian Bullseye, …): Debian 11 64-bit
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 26 (26 by maintainers)
Since it has been confirmed that this is an issue in adding, I’ll close it here.
Thanks. I added additional logging around the scheduling. Can you update (and restart) again? The additional logging is only for
Balkon_Steckdose
, otherwise your log would be totally unreadable.