#Android companion app doesn't connect automatically.

1 messages · Page 1 of 1 (latest)

rich mason
#

I think I have everything set up as should be:
My HA have it's port forwarded so it's accessible from outside, I have static public IP.
On the companion app I have server set up like on the image. No matter if I'm trying connecting from outside without wifi/gps, or from local network with WiFi and GPS turned on, it alwyas says it can't connect and that I need to check connection settings. Settings are fine, as it connects when I press 'refresh public URL address'. So... what's the problem? It's frustrating as it just delays access. I thought whole point of setting external and internal addresses is to make it smooth working, but maybe I'm missing some more setting there?

wicked pagoda
#

Did you leave the default setting on the Wi-Fi option after giving the ssid?

rich mason
#

Can you elaborate please? I set it up some time ago already so not sure what option you refer to

wicked pagoda
#

Back on the screen in the screenshot of you go to Wi-Fi option what is the bottom option set to?

rich mason
#

If you mean "persistent connection", it's set on "always" - is that wrong?

wicked pagoda
#

not persistent connection, the same place where you physically entered the wifi option Settings > companion app > select your server > home wifi network SSID > the setting at the bottom of this page should be on the recommended option

#

if taht is the case then you need to click on setting in the pop-up go to troubleshooting and then the logs will show the failure

rich mason
#

I apologize for absence. I appreciate your help but couldn't get online.
I tried to find out what option you were refering to and finally I reinstalled app to make sure I can re-create whole process. I guess you were talking about
"Use Home Assistant URL (recommended)" vs "Use internal connection URL (use this if you typicaly turn location access off)" ?

Well, I used second option, as I obviously have location turned off most of the time to save batteries unless I really need it. I might be wrong, but with second option it should:

  • use public ip when I'm NOT connected to home WiFi
  • use local ip address when I am connected to home WiFi.
    That was my intention at least. How it does work however is that it requies me to 'refresh public ip' (whatever it means? Both public and internal addresses are static ip's) every time I want to connect to it.
wicked pagoda
#

Second option will always try the first URL no matter what

rich mason
#

So if I understand correctly, first option will prefer local url over public IP, while second will do opposite, UNLESS I'll turn on location?