iOS icon indicating copy to clipboard operation
iOS copied to clipboard

Connection to HA silently lost when switching between WiFi and mobile data network

Open SaturnusDJ opened this issue 1 month ago • 2 comments

Running a VPN here that activates on mobile devices when not connected to a specific SSID to make the applications hosted on a secure home network always accessible by IP.

On an older device, since a few builds ago, there is a problem when switching from WiFi to data or opposite: nothing in the HA app can be controlled anymore after the switch until a pull down refresh is performed. This is despite the app acting like being connected and e.g. allowing a brightness slider to be set to a position while the light is not actually adjusted. There is no visual connection error. After a minute, rarely the connection comes back, sometimes an error like "Action ... could not be executed. connection lost", other times nothing happens. It does seem like HA is still able to fetch the location in the background, although this was not thoroughly tested.

On a newer device with older app version, switching between WiFi and data is near seamless. Within 2 seconds the connection is live again and works just as before the switch.

Tried: device soft reset, full app reinstall including relogin, HA restart, messing with the internal/external url and local push.

HA 2025.11.3

Older device: iOS 16.7.12 iPhone 8 Plus MQ8L2CN/A HA app 2025.12.1 (2025.1546)

Newer device: iOS 18.7.2 iPhone 13 Pro Max MLLA3ZD/A HA app 2025.10.0 (2025.1443)

May I note that the app message as below, is somewhat of a strange experience when running an on-demand VPN.

Your Home Assistant is only accessible on your home network. To control your smart home from anywhere, you can set up remote access later in your settings.

SaturnusDJ avatar Dec 04 '25 19:12 SaturnusDJ

I'll check, apparently it's only happening on older iOS version right? (16.7.12)

Also:

May I note that the app message as below, is somewhat of a strange experience when running an on-demand VPN.

Your Home Assistant has indeed no remote connection setup, VPN is something unrelated to Home Assistant that advanced users can use to access their home network.

bgoncal avatar Dec 05 '25 08:12 bgoncal

I'll check, apparently it's only happening on older iOS version right? (16.7.12)

Thanks!! I am unsure, I do not dare to update the newer device and then possibly run into that issue. 😁

SaturnusDJ avatar Dec 05 '25 08:12 SaturnusDJ

The issue does not happen on an iPhone 15 Pro Max with iOS 26.

SaturnusDJ avatar Dec 21 '25 21:12 SaturnusDJ