HASS takes hours to detect Philips Hue lights

Problem: My fully functional Philips Hue lights are not detected until a few hours after each time I restart my Home Assistant. Everything else is working flawless and when the Hues are finally detected, they all work as expected.

I can access the hue lights using the dedicated Philips hue Android-app and It all works fine.

Since I don’t know exactly when the hues appear in the frontend after a restart, I cannot look in the logs to se what is going on.

I have no other problems with my Wifi, Internet connection and so on.

System setup

  • Raspberry Pi 3B running latest Hassbian.
  • Home Assistant 0.62.0 (but the problem occurred in earlier versions as well).
  • Standard Philips Hue gateway and some lights (those work just fine).

Any Idea of where to start looking?
I did search but I could not find any similar post.

UPDATE
I have the lines below in my config:

# Philips HUE
light:
  platform: hue
  host: 192.168.0.16

Did you add Hue to your config? Or do you use the discovery every time?

I have it in my config as shown below.
Sorry, I will update my post above with this information.

# Philips HUE
light:
  platform: hue
  host: 192.168.0.16

I’m not an expert but i have added the Hue slightly different to my config:

hue:
  bridges:
    - host: 192.168.0.65

I checked the documentation and it seems you are using older configuration. Please check: Hue Bridge

It is set up slightly different as far as i can see:

light:
  - platform: hue
    host: DEVICE_IP_ADDRESS
2 Likes

Yes, you are right. I was using an older config. Have not touched that since forever when I dit my first install of Home Assistant.

After altering the config according to your suggestion, It all works fine now.

You help is really appreciated.

Great! Happy to help out.

I have the same issue here - I just updated my configuration to the new Hue scheme and restarted but there is no sign of my hue lights appearing. I am tailing the log and can’t find any mention of hue component - yet!!!

light:

  • platform: hue
    bridges:
    - host: !secret hue_bridge_ip
    allow_hue_groups: true
    allow_unreachable: true
    allow_in_emulated_hue: false

Any hints on what might be slowing down discovery?

@cannfoddr do check the format of the code. Please also use the </> button when showing us your code.

This solved a similar problem for me too. Was using the old light: format. Thanks!

Figured out the new format and all working for me now!