With the change regarding Hue in 0.66, the component stopped working and I’m getting:
"Invalid config for [hue]: required key not provided @ data['hue']['bridges'][1]['host']. Got None."
I don’t see the error - the host parameter is obviously there.
Also, it would be really great if the documentation was up to date when these kind of breaking changes are introduced - https://home-assistant.io/components/hue/ still lists the host parameter as optional, which it is not, if I’m reading the release notes correctly.
You need to remove the leading hyphen (-) infront of allow_unreachable and allow_hue_groups. These are keys in a HashMap that decribe a bridge. In you setting the are elements of the brdiges array, that’s why HA cannot find a host attribute in the second(!) bridge definition (index 1).
The JSON equivalent of the correct configuration is
Thanks a lot, that did the trick!
But again, it would have been very helpful to find this mentioned in the release notes or the official docs, especially after an additional week of beta testing before the release.
Ok, I understand it now and now I finally understand how it’s meant in the documentation.
Should have been the other way around
Let me see if I can make some clarifying modifications to the docs.
I don’t see any issues with my bridge, everything looks fine now (after updating the config ;).
The apiversion attribute in your issue report seems to be part of the bridge configuration.
You can see it at the top-level when you retrieve the config doing a GET /api/<userid>/config on the bridge.
So it looks as if HA is not talking to your bridge or can’t retrieve your bridge config.
Or maybe something breaks while parsing the config.
I’d start with a tcpdump on the HA host to check communications between HA and the bridge.
Thanks for the hint, however no success. I can call the API config (using cURL) from the HA host using the “username” / API key from file phue,conf and an apiVersion is 1.24.0 is present in the response.
Error while setting up platform hue
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 82, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/src/app/homeassistant/components/light/hue.py", line 56, in async_setup_platform
bridge = hass.data[hue.DOMAIN][discovery_info['host']]
KeyError: 'host'
Had the same problem, fell back to 65.6 and it all worked again. Fired up Philips app, and found I had a Hue software update pending. Installed that, and retried the Hass update - everything now works with 66.1
EDIT I take that back, something else had triggered lights to come on. 66.1 does not appear to be communicating with the Hue bridge, getting timeout messages during setup:
WARNING (SyncWorker_2) [homeassistant.components.light.hue] Timeout trying to reach the bridge