home-assistant / home-assistant/iOS
Multi-server – auto-switch issue
- Dominant language
- Swift
- Stars
- 2.4k
- Forks
- 520
- Avg merge
- 7h 27m
- Merged PRs (30d)
- 264
Description
Model Name: iPhone SE 2022
Software Version: 26.5.2
App Version: 2026.7.1
**Home Assistant Core Version**
2026.7.4
**Describe the bug**
Hi, On my app, I have two Home Assistant servers (one for my association and one for my home). With the latest version of the app, every time I open the app, it connects to my association's Home Assistant server, even though I want it to remain connected to my home's server, the last one seen. I think this started after an update. In an older version, this wasn't always the case. For a while now (perhaps after an update), the server keeps changing, and I have to go to "Settings" then "Companion Apps" each time to connect to my home's server. Also, when I activate my home, I have to go back to the home screen; it no longer automatically redirects me there.
**To Reproduce**
Set two HA servers in the application. If it defaults to the highest letter, then my club starts with C and my home with M. Test to see if this is what's causing my club's HA to default.
**Expected Behavior**
The application should remember the last server accessed, so it doesn't have to switch servers every time it's opened.
**Screenshots**
Contributor guide
Research direction
Start by reproducing the issue with two Home Assistant servers configured in the app, then trace how the app selects a server when it opens and when switching from Settings > Companion Apps. Done means the last accessed server remains selected on launch and activating it returns to the home screen as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100