-
-
Notifications
You must be signed in to change notification settings - Fork 35.8k
Add support for migrated Hue bridge #151411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hey there @balloob, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for migrating Hue bridge configurations when users upgrade from an old BSB002 bridge to a new BSB003 bridge. The Hue app handles the device migration seamlessly, but Home Assistant needs to detect and update its configuration to point to the new bridge.
- Adds automatic detection of migrated BSB003 bridges during zeroconf discovery
- Implements configuration entry migration by reusing existing API credentials
- Updates device registry entries to reflect the new bridge identity
Co-authored-by: Joostlek <[email protected]>
Proposed change
Philips Hue is soon (?) going to release a new Hue (pro) bridge with more capacity and features.
For a user that wants to migrate from their existing (BSB002) bridge to the new (BSB003) bridge, the Hue app will ensure a seamless migration. A bridge that was migrated however, will stop functioning in HA as it will be factory reset at the end of the process.
This PR adds support to the HA config flow for Hue to detect the situation where the Hue bridge was migrated from old to new, basically by migrating the config entry as soon as it detects a new BSB003 bridge and existing API credentials work to connect to that bridge.
As long as mdns is functioning correctly, the HA integration for Hue should be seamlessly migrated once the Hue migration was completed.
Marked as both feature and bugfix because strictly taken this fixes broken user setups when they migrate to the new Hue bridge.
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: