core: Open Z wave addon must be restarted after reboot for devices to not show as unavailable

The problem

After restarting home assistant all open zwave devices show as unavailable. In order to get them to work properly I have to restart home assistant. This has always happened with this integration since I switched from the older zwave integration.

Environment

  • Home Assistant Core release with the issue: 0.115.2
  • Last working Home Assistant Core release (if known):
  • Operating environment (OS/Container/Supervised/Core): Supervised
  • Integration causing this issue: Open Zwave
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/ozw/

Problem-relevant configuration.yaml


Traceback/Error logs


Additional information

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 34 (13 by maintainers)

Most upvoted comments

I think I found something that might be of interest. When faffing around with ZWave entities, I found that whenever I disable a ZWave entity to hide it, all my zwave entities show up as unavailable requiring me to run mqtt.dump to get them back. It seems to be 100% reproducible on my setup.

Ok, it took a few tries but I managed to capture a debug log of it happening. I hate intermittent bugs. I swear this has happened on a fresh boot with qt-openzwave fully up but I was unable to reproduce it over a few restarts. What did reproduce it was having everything up and then restarting qt-openzwave in the background.

While qt-openzwave restarted some entities grayed out, some went yellow and entity unavailable. Oddly it seems to be consistent which ones do both, but it isn’t consistent across entity types. Some of my GE switches go yellow, some don’t. Some of my Leviton outlets go yellow, some don’t. But it is always the same ones.

Once qt-openzwave had reached ZWave Network Node Queries Completed in ozwadmin I was left with this in HA:

Screen Shot 2020-09-20 at 6 22 35 PM

(Unfortunately I didn’t realize that HA would wipe the log file when I restarted so I lost this file.)

What’s weird is, I then restarted HA. So qt-openzwave has been up for a while and is fully queried, but it was restarted while HA was running initially. On restart of HA all of the entities are there but the previously unavailable ones remain grayed out. These ever persisted over a second HA restart. Here is a screenshot, and a debug log file.

Lovelace: Screen Shot 2020-09-20 at 6 27 15 PM

Entity: Screen Shot 2020-09-20 at 6 30 36 PM

ozwadmin show it is there: Screen Shot 2020-09-20 at 6 31 20 PM

And an MQTT dump:

mqtt_dump.txt

Only restarting qt-openzwave and HA brought them back.

The issue is effecting all of my zwave devices. This happens whenever I go to the server controls page and restart the home assistant server. After restart is complete the zwave devices will stay marked unavailable and non controllable until I restart the open zwave addon. I checked and the devices don’t become available eventually even hours after the restart of home assistant. But a few minutes after restarting the open zwave addon the devices change to the correct state and become controllable.