Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wwade opened this issue Apr 5, 2021 · 1 comment
Open

Comments

@wwade
Copy link

wwade commented Apr 5, 2021

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.

  • OH3 Version: 3.0.0, 3.0.1 (dockerhub openhab:3.0.1 a0e14d8c4716 )
  • Binding Version: 3.0.1

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:

  • Device name: DZ6HD -- 001D 3201:0001
  • Device version: 1.20
  • Link to database: thing/leviton/dz6hd_0_0.xml
  • Bridge: Aeotec Zwave USB ZStick Gen 5
Dimmer Office_Main "Office" <DimmableLight> (Office,Light,Sitter) ["Point"] {channel="zwave:device:3680e6d4:node34:switch_dimmer", ga="Light"}

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

  • step 4: 2021-04-05 09:22:46.215
  • step 5 (remove): 2021-04-05 09:23:48.287
  • step 5 (re-add): 2021-04-05 09:24:47.427
  • step 6: 2021-04-05 09:25:50.291 (event at 2021-04-05 09:25:50.525)
@openhab-bot
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants