core: deConz - Light entities unavailable after reboot
The problem
Environment
- Home Assistant Core release with the issue: 0.110.3
- Last working Home Assistant Core release (if known): unknown - just moved to virtual machine
- Operating environment: Home Assistant Supervised within a Virtual Machine under ProxMox
- Integration causing this issue: deConz
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/deconz/
Problem-relevant configuration.yaml
Traceback/Error logs
Additional information
I searched the logs and was unable to find anything useful. It seems to only affect light entities for me as the Motion Sensors and Temperature Sensors all operate fine, lights just become unavailable. This happens every time HA is restarted. A full shutdown of the Host and cold reboot does not resolve the issue. Only deleting and reinstalling the integration will bring the lights back. Note: I do use the deConz add-on from the Supervisor store. I do not need to reinstall this add-on, only the Integration. Edit: I did not have this issue on the Rapsberry Pi when it was running stand-alone. It seems to have only started since moving to the faster Virtual Machine install.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 23 (6 by maintainers)
I’ve got verified from Manup at Dresden Elektronik that this is a deconz bug from long ago that has resurfaced. I’ve asked them to fix this so not all client implementations need to add their own work around
In case anybody else stumbles upon this, here is the automation source code for the workaround that has been suggested, it works OK for me:
This is an unfortunate effect of deconz loading lights slower than the rest of the devices, there is no clear solution to this. Suggested workaround is to run the deconz configuration service in hass when everything has loaded
Closing this since there is no good solution for this yet. Gonna give feedback to deconz to handle this better in their next generation API.
I know this had been closed, but it still seems to be an issue, albeit intermittently.
Should this issue be re-opened and more thought be put into it?
I’ve been thinking about some logic that reloads data if it gets an event from a device hass doesn’t know. Like when a light state updates but lights have not been loaded data will be reloaded