ebaauw / homebridge-hue

Homebridge plugin for Philips Hue
Apache License 2.0
897 stars 91 forks source link

When I restart the server, the homebridge-hue service takes more than 6 minutes to start. #1098

Closed marmitol closed 2 years ago

marmitol commented 2 years ago

Thank you very much for this fantastic plug-in. When I restart the server, the hue service takes more than 6 minutes to start. I have a raspberry pi 4. If I restart raspberry pi 4 all services start, but the homebridge-hue service has to wait up to 6 minutes. After this time it works correctly. image

ebaauw commented 2 years ago

That's by design: Homebridge Hue delays Homebridge startup until it has discovered and connected to a Hue bridge or deCONZ gateway. If it wouldn't, HomeKit would remove the accessories on Homebridge startup.

Six minutes does seem a bit long for deCONZ to start, though. Are Homebridge and deCONZ running on the same Pi?

marmitol commented 2 years ago

Yes everything is running on the same raspberry pi 4.

Please indicate if you need any data such as logs or other information. Thank you very much.

ebaauw commented 2 years ago

Homebridge Hue works as designed - I don't need any other info.

I don't know why deCONZ takes this long to start and become discoverable. You might want to specify the localhost in hosts, to bypass discovery. I doubt this will help, however, as local discovery through UPnP should be almost instant.

marmitol commented 2 years ago

I will continue to investigate. If I have any news on the subject I will write it down.