0.60 broke my Hue setup (multiple bridges)

I have two Hue v1 bridges. They work fine in 0.59 but not in 0.60. I have removed the Hue settings from the config and enabled discovery. Both bridges are discovered, I configure the first bridge (press button, click “I have pressed the button”) and all my lights on that bridge are there. Then I press the button on the second bridge and confirm in HA. Then this happens:

a few lights from the second bridge briefly appear in the wrong group, then they disappear and I end up with just one light from that bridge beeing visible in HA. When I go back to 0.59 everything is fine again (without making config changes).

There is a breaking change concerning Hue, in 0.60 release note:

Did you change your config accordingly?

hue:
  bridges:
    - host: 192.168.0.40
      filename: phue.conf
    - host: 192.168.0.80
      filename: phue2.conf

or:

hue:
  bridges:
    - host: 192.168.0.40
    - host: 192.168.0.80
    - filename: /tmp/phue.conf

instead of

light:
  - platform: hue
    host: 192.168.0.40

I have tried this:

hue:
  bridges:
    - host: 192.168.0.40
      filename: phue.conf
    - host: 192.168.0.80
      filename: phue2.conf

When I moved back to 0.59 I noticed that it works just fine with auto-discovering both bridges. On 0.60 I tried the config-method above (with the .conf files I already had).

Another thing that I missed originally: you also have to change all service calls of light.hue_activate_scene to hue.hue_activate_scene.

Sebastian

I also faced some strange behaviour. I deactivated discovery completely added both Bridges like mentioned above …reboot …works. I use hue v2 and devconz stick without problems now .

I still have not been able to get mine to work. I have 2 hue v2 bridges that work perfect in 59.2. .60 doesnt matter what I do i can really strange behavior. Ive tried all sorts of difffernt syntax using the new format and it adds both hubs fine. Its just my basement bridge all lights and everything get added. My main floor bridge adds just a light or two from a couple rooms, it doesnt make sense. Example, I will see Kitchen 3. But not kitchen 1, 2 , 4 ,5 6…i see office 3, but not office 1 or 2. I messed with this for a few days and never got them to come in correctly. Any tips? I started another thread on this but got no replys and cant find it now it had alot of what I tried…

It has something to do with new component.i also switched back to 0.59.2 till it’s definitely fixed.have exactly the same issue .I guess it’s the discovery part for this component. Just let’s wait for a from x next year as devs took vacations :wink:

1 Like

Has someone tested 0.60.1 with hue fix? Wanna gather some feedback before upgrading and breaking everything again :slight_smile:

did you mean we have to change from

emulated_hue:
  type: alexa
  host_ip: !secret ha_host
  listen_port: 8300
  expose_by_default: false

to

hue:
  bridges:
    - host: !secret ha_host

I can confirm this is fixed in 0.60.1, it’s save to upgrade.

Cool thanks!

Did you do anything to get it to work in 0.60.1?
I upgraded to 0.60.0 some weeks ago and returned to 0.59.2 because of this issue.
I tried 0.60.1 just now but still have the same issue; all hue lights have gone.

i added the filename in the config; i don’t use discovery and have Philips Hue defined separately as so:

light:
  - platform: hue
    host: 192.168.1.3
    filename: phue.conf
    allow_unreachable: true

i have checked and phue.conf does exist with that exact name in my HA folder, and the IP Address is correct.

is there anything else i should be doing to get this to work in 0.60.1?

I’m also having problems with 0.60.1, although this is a new setup. With this version should the config code be the following?

light:
  -hue:
     bridges:
       - host: 192.168.1.3
         filename: phue.conf
         allow_unreachable: true

In my case the discovery worked and after pairing the Hue Bridge with HA the lights are visible and can be controlled. The error I get is this, and I can run scripts to change the Hue scenes.

2018-01-13 13:57:44 ERROR (MainThread) [homeassistant.config] Invalid config for [light]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 78). Please check the docs at https://home-assistant.io/components/light/

Your hub config should be like this in the configuration.yaml:

hue:
  bridges:
    - host: BRIDGE1_IP_ADDRESS
      filename: phue.conf

Thanks gbboy - that fixed the error! Surprising the other configuration was largely working.

For any fellow noobies the following scripts work using the Hue scenes. (Just having some variable results with Google Assistant sometimes returning search results rather than activating the script… Must work harder on diction. :sunglasses:)

scene_reading:
  alias: Reading lights
  sequence:
    - service: hue.hue_activate_scene
      data:
        group_name: "Master Bedroom"
        scene_name: "Read"

scene_sunset:
  alias: Night lights
  sequence:
    - service: hue.hue_activate_scene
      data:
        group_name: "Master Bedroom"
        scene_name: "Savanna sunset"

scene_daytime:
  alias: Day time
  sequence:
    - service: hue.hue_activate_scene
      data:
        group_name: "Master Bedroom"
        scene_name: "Concentrate"

Does anyone know a way of telling a script to the Google Home being used? For example, is it possible to to say ‘activate reading lights’ and have the logic of,
If input is from Kitchen
…change kitchen group scene
else
…if input is from Bedroom
…change bedroom group scene
etc…
endif`