Closed Sir-Esh closed 2 years ago
hue documentation hue source (message by IssueLinks)
Hey there @balloob, @marcelveldt, mind taking a look at this issue as it has been labeled with an integration (hue
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
Temporary solution: Remove any entertainment groups in the Hue app or recreate them. Somehow the "owner" object which should be mandatory is empty in your data causing this keyerror.
To implement your workaround I opened the Hue app, which I never use, which offered me a firmware update. After updating the bridge to the latest firmware and updating HA once more the problem was fixed. So it seems this object might not be present when you are not using the latest firmware on your Hue bridge.
Thanks for reporting back! Yes, that was also a possibility as Signify recently changed some stuff in the API now it's getting in the final shape. Is your bridge not setup to auto install firmware updates on the bridge ?
TBH I didn't even know automatic updates were a thing until they were offered with that last update I processed this week. I moved most of my lights to Zigbee2MQTT, and what is left I control from either fysical Zigbee buttons or HA anyway, so I almost forgot about my Hue bridge even still existing. Until I couldn't switch my living room lights on anymore... :-). Please note I included a link to the community forum. It seems I was not the only one, even though this seems to be an edge case.
Always best to report issues in the Github issue tracker as we can't follow all community forums I'm afraid. The issue is fixed in the bridge firmware update so that's good but we need a way to guard ourselves to small incompatibilities in the api schema somehow.
Yes, that sounds sensible. Incompatibilities with older versions are hard to track though unless the API provider states them very clearly (or you will need vigourous testing against older versions to be in place). Just a suggestion but wouldn't it be an option to check against the Hue bridge firmware version and demand a minimum version for running the integration (with proper notification if this check fails) to filter out any edge cases?
Yeah, I think we need to go in that direction or least show some sort of warning if the version doesn't match but it is not very common that Signify makes breaking changes in the api schema. So far the issues we've found were related to the documentation mentioning attributes as mandatory while they're in fact optional.
We fixed this one in the aiohue library. Updated version of the lib will soon be included in the HA core repo.
The problem
Since upgrading to 2022.2.8 the Hue integration fails with above stated error. The error seems to be related to a missing key "Entertainment.owner".
What version of Home Assistant Core has the issue?
core-2022.2.8
What was the last working version of Home Assistant Core?
core-2022.2.7
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Hue
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
https://community.home-assistant.io/t/unknown-error-connecting-to-hue-bridge/393618/4