openhab / org.openhab.binding.zwave

openHAB binding for Z-Wave
Eclipse Public License 2.0
170 stars 202 forks source link

OH3: Missing ItemStateChangedEvent for most z-wave devices after restart #1574

Open wwade opened 3 years ago

wwade commented 3 years ago

Have been discussing this issue for a while on the forums: Missing ItemStateChangedEvent for zwave item defined in item file after upgrade to openhab:3.0.0.

With this missing event, the Item states are not updated in, e.g. Habpanel, and rules based on those items do not take effect. This was all working fine for OH2.

At this point, I've managed to reproduce the issue easily from a new install of either 3.0.0 or 3.0.1 with a single Leviton dimmer:

Steps to reproduce:

  1. Add Thing (node 34 in the logs), create binding for switch_dimmer channel to new Item (called Office_Main in the logs).
  2. Verify that there are ItemStateChangedEvent when operating the dimmer manually.
  3. Restart openhab docker container.
  4. Toggle the timmer manually from 0-100-0, there are no longer any ItemStateChangedEvent logs. It can still be controlled via z-wave.
  5. Remove and re-add the Item either via the UI or by using a .items file and commenting out, reloading, and then uncommenting the line with the Office_Main definition.
  6. Verify that there are ItemStateChangedEvent when operating the dimmer manually.

Full log (from reboot through to working ItemStateChangedEvent: opnehab.log + events.log sorted by time

openhab-bot commented 3 years ago

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

https://community.openhab.org/t/missing-itemstatechangedevent-for-zwave-item-defined-in-item-file-after-upgrade-to-openhab-3-0-0/112588/23