Skip to content
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

IOS app not switching from Internal URL to External URL when iphone goes out of home wifi range and switch to cellular mode #3476

Open
nrenou-git opened this issue Mar 9, 2025 · 5 comments

Comments

@nrenou-git
Copy link

nrenou-git commented Mar 9, 2025

iOS device model, version and app version
Model Name: iPhone 12 Pro Max ( Tested with another iPhone 13 too )
Software Version: ios 18.3.1
App version: 2025.2 (2025.1177)

Home Assistant Core Version
2025.3.1
Supervisor
2025.03.2
Operating System
14.2
User Interface
20250306.0

Describe the bug
IOS companion looses connectivity when the Iphone goes out of wifi range and auto switch to cellular mode.
Connection status in server settings stay on "Internal URL" instead of switching to "External URL" and the companion stay endlessly offline.

1 - To get the connection again i need to kill / restard the IOS companion, or manualy "clear frontend cache", or switch airplane mode ON / OFF on the iPhone

2 - IF I m on my home wifi connection and i switch off the wifi on the iphone,
IOS companion switch immediatly as expected on external URL
IF i connect again on my home wifi,
IOS companion switch immediatly as expected on internal URL.

3 - The problem occurs when i m at home connected with "Internal URL" and i go out of home wifi range ( leaving home ... )

To Reproduce.
Being connected with internal URL on home wifi
then
walk away from home wifi signal until Iphone switch to cellular

Additionnal info
External URL is working and setuped with nabu casa.
Home wifi name is setuped in internal server settings.
All authorisation are granted on ios device.
Position : always
Exact position
Bluetooth
Local network
Background updates
Cellular

@erkr
Copy link

erkr commented Mar 10, 2025

Hi
Just to be sure, did you notice the sub menu when you click the internal URL in settings:
image
There you have to configure the SSIDs for your home network

@nrenou-git
Copy link
Author

Hi Just to be sure, did you notice the sub menu when you click the internal URL in settings: image There you have to configure the SSIDs for your home network

Yes, my home ssid is configured. I ve made some screenshots in the application.

Image
Image
Image

@nrenou-git
Copy link
Author

more information :
for debug purposes i ve setuped my IOS Companion with external acces only, and, when i m leaving home, i've found that
the BSSID sensor stay locked on my home wifi network instead of showing "not connected". Other sensors like last_update_trigger or geocoded_location are updating and connection_type value is "Cellular"

@d4nielcosta
Copy link

iOS device model, version and app version
Model Name: iPhone 14 Plus
Software Version: iOS 18.3.1
App version: 2025.2

Home Assistant Core Version
2025.3.1
Supervisor
2025.03.2
Operating System
14.2
User Interface
20250306.0

I can confirm I have this same issue. The problem occurs both leaving and entering the home network.

My setup is a bit different, as I don't use Home Assistant Cloud but instead I use the local IP when at home and a tailscale VPN when out (using the tailscale magic url as the external server address). The VPN automatically disables when my phone connects to the home network but Home Assistant will not load until I close the application and re-open it.

This issue is not new to this build and has existed for at least 1 year.
This issue happens about 75% of the time but when testing to get screenshots it successfully connected every time...

Image

@habitoti
Copy link

habitoti commented Mar 16, 2025

For me it works well when leaving home wifi and having to switch to cloud. However the other was around almost always fails to switch, though I have the wifi SSIDs properly maintained. I then have to kill the whole app and restart. I am old enough to remember when this worked w/o any issues both ways, so it was definitely made worse with whatever was intended to be achieved with changes in this area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants