Android: App cannot connect when not at home but connected to an SSID with the same name as at home

Created on 21 Feb 2020  路  7Comments  路  Source: home-assistant/android

Home Assistant Android version:
1.7.2-128

Android version:
9

Phone model:
Samsung Galaxy S8

Home Assistant version:
0.105.5

Last working Home Assistant release (if known):

Description of problem:
I鈥檝e set up the app with both the 芦Home Assistant URL禄 (set to my nabu casa URL) and the 芦Internal Connection URL禄. I assume that when I鈥檓 connected to my 芦Home Network WiFi禄, the internal connection URL is used.

At my cabin, I have network WiFi with the same SSID as at home (to make WiFi connection there easier for my family). So at my cabin, the Home Assistant Companion app uses the internal connection URL, I assume, and as a result, I can鈥檛 remotely connect to Home Assistant because it is not local even though the SSID suggests that it should be.

So, could the app be updated to try the external URL if the internal one fails?

Traceback (if applicable):


Screenshot of problem:

Additional information:

bug settings stale

Most helpful comment

Not a great option, but the app could attempt to fall back on the external address if the internal address fails.

All 7 comments

Oh, and by the way, the problem is exactly the same with the iOS companion app.

Obvious course of action here is to determine the AP based on its BSSID. But then we'd also have to account for mesh wifi systems that have the same SSID but various different BSSIDs.

Could this be solved by adding an option to take location into account, so it only uses the internal URL when you are at the home location?

I would say it should not have to depend on location data because some users would have denied the app the permission or simply have the location tracking turned off. This is a feature that should work independantly of whether location is or is not being tracked.

@SteveDinn It seems that detecting the current SSID needs the Location permission anyway (see https://github.com/home-assistant/home-assistant-android/issues/281).

Not a great option, but the app could attempt to fall back on the external address if the internal address fails.

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Anonym-tsk picture Anonym-tsk  路  3Comments

Hypfer picture Hypfer  路  3Comments

Nik71git picture Nik71git  路  4Comments

andriej picture andriej  路  4Comments

simbesh picture simbesh  路  3Comments