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

Zigbee devices unavailable after reboot VM #36787

Closed
HammerNL89 opened this issue Jun 14, 2020 · 11 comments
Closed

Zigbee devices unavailable after reboot VM #36787

HammerNL89 opened this issue Jun 14, 2020 · 11 comments
Assignees

Comments

@HammerNL89
Copy link

The problem

I run HA in a VM on Unraid, with the deCONZ add-on with an Conbee 2, all with latest version/firmware. If I reboot the VM, the zigbee devices become unavailable. I noticed that when I disable auto start of the deCONZ add-on and manualy/automate the start of the add-on with an one minute delay, the problem doesn't occur.

Environment

  • Home Assistant Core release with the issue: Home Assistant 0.111.2
  • Last working Home Assistant Core release (if known): Not sure, I have this problem for at least 3/4 months now
  • Operating environment (Home Assistant/Supervised/Docker/venv): Home Assistant
  • Integration causing this issue: Don't know if it's the integration, but it's related to deCONZ
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/deconz/

Problem-relevant configuration.yaml

Traceback/Error logs

Already created an issue on the dresden-elektronik-deconz-rest-plugin github page with more detailed information. On the deCONZ side things look good, VNC view looks okay, and no alarming errors in deCONZ log at the time the devices are unavailable in HA.

In the HA core log sometimes after a reboot when the Zigbee devices are unavailable I get the following error (But this seems random, in other cases I see no errors in HA core logs related to deCONZ, but devices are still unavailable):

Error connecting to deCONZ gateway at 172.30.XX

Additional information

@probot-home-assistant
Copy link

deconz documentation
deconz source
(message by IssueLinks)

@Kane610
Copy link
Member

Kane610 commented Jun 14, 2020

Have you tried using the service deconz device refresh one everything has booted up?

@HammerNL89
Copy link
Author

Have you tried using the service deconz device refresh one everything has booted up?

No, didn't try that one before. When I call that service, the Zigbee devices become available again, that's nice, but that doesn't change my current situation:

Basically I would change my current automation from: start add-deCONZ with 1 min delay to --> call service deconz.device_refresh

Both would work i guess, but still are some kind of workarounds, I was hoping for a more long term solution/fix if that is possible. I don't know the root cause of the issue.

@Kane610
Copy link
Member

Kane610 commented Jun 16, 2020

The one thing I can see that I can do is if there are events of unknown devices and do a refresh. A part from that there is no way for the integration to know whether to expect devices or not.

@HammerNL89
Copy link
Author

Okay, thanks for looking into it.

@thecode
Copy link
Member

thecode commented Jun 27, 2020

I'm running a similar configuration, also using Unraid, but I don't think the issue is related to Unraid. I have noticed that if I reboot the VM, light entities show as unavailable, but Xiaomi sensors for example are OK.
If I restart home assistant after the reboot, than the light entities become available.

It looks like the machine boots up very fast and home assistant is ready before the Deconz has fully detected all entities.
I have tried to call the device refresh service few minute after the machine is up, while the entities are available and controllable from the Phoscon UI they still appear unavailable in HA.

I'm also using Node-Red that is directly communicating with the Deconz and in Node-Red it is working OK.
It looks like the HA integration is not updating the availability status from Deconz.

Note that I'm passing a USB controller directly to the VM and not using USB device passthrough.

Hope that this extra information can help, If there is anything I can test to help with this let me know. Thanks for the support.

@stale
Copy link

stale bot commented Oct 4, 2020

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 4, 2020
@thecode
Copy link
Member

thecode commented Oct 4, 2020

This issue is still not resolved for me (0.115.6)

@stale stale bot removed the stale label Oct 4, 2020
@HK-Moebius
Copy link

Same here, running HA on Proxmox. When restarting the machine I´ve to re add the integration to get it running again.
Invalid key for deCONZ at 172.30.33.2

The IP address is always the same. HA and deconz on latest stable version.
Also tried to install deconz on a seperate vm. It works till reboot...

@Kane610
Copy link
Member

Kane610 commented Dec 16, 2020

Brought it up with deCONZ dev and it will be fixed with next release 🎉

@Kane610
Copy link
Member

Kane610 commented Dec 23, 2020

Closing this issue as deCONZ 2.9.0 is on its way out. Use dresden-elektronik/deconz-rest-plugin#2473 for feedback on the fix

@Kane610 Kane610 closed this as completed Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants