Unable to connect with app

Good evening, i’m new in this forum.
I have HA installed on a mini pc, everything works fine. I do connect only from my local network. I use the app from my ipad and iphone.
Since a few days, if i try to login on my iphone i get the message: “unable to connect to Home Assistant” retrying in xx seconds
On my ipad everything works fine.
When i use safari to connect, i get the same message, no matter which browser i use.
What to do?
Appriciate your help
Thx
John

1 Like

I has the same failure with the HA App.

MY SOLUTION: So I tried deleting the HA App, and instead I entered my Home Assistant’s local IP into Safari (with the port, e.g. 192.168.1.25:8123), and that seems to work. (Works for me on an iPhone 7, an iPhone 12 Pro, and in FireFox on a Librem 5 phone, and on a desktop Linux Debian laptop.)

Of course it won’t work remotely, and I’ll work on that later. (I’ll admit that right now I’m not sure why you need to use the App, but hopefully someone will explain this to me.)

I did think that perhaps the App wasn’t getting the right credentials. I also tried deleting the App and re-installing it but that didn’t help.

I have had the same problem. Here is how I solved it. In iOS settings, go to app, select Home Assistant and set Location to Never.

It is interesting the the HA core log shows an authentication failure ever 60 seconds from the phone IP address. But, turns out that is a red herring. Somehow the problem is related to granting access to Location that causes the authentication error to appear in the log.

This issue can be recreated consistently.

I found the root cause by removing the application, rebooting my phone, reinstalling the application, and denying all options during the install (i.e. location, notification, focus, etc.). The application connected as expected. Because it is at the top of the app settings, i turned on Location services, closed the app, restarted, and it went into the 60-second infinite retry loop. I turned off location services, restarted the app, and it connected as expected.

I should mention too that after deleting the app from my phone and reinstalling it, it is not possible to connect to HA without either 1) Changing the name of my iPhone or 2) logging in to HA from my computer and deleting my iphone from the mobile devices list. This seems like a defect.

1 Like

Just happened to me and this fixed it. Thank you!

Miracles! It worked. Are they going to fix this bug?

Apparently they don’t plan on fixing this bug because I’ve followed all the above suggestions and the mobile app for an iPad refuses to connect. Everything updated, rebooted, app removed and reinstalled several times, iPad renamed, location settings toggled on and off, all the above fixes have not worked. Does anyone have any more ideas on this? The app works fine on my iPhone but steadfastly refuses to connect on the iPad mini.

I am having the same issue and have tried all of the recomended fixes. Nothing is allowing me to connect to HA using the iOS app. I am able to connect via Safari as was proposed earlier.

Any suggestions are welcome.

I removed the standard iCloud integration and disabled tracking by iPhone (removed the phone link in the People panel) and installed the iCloud3 v3 integration, and enabled tracking through it. The problem seems to have disappeared.

My trouble was Avast app

While I’m sorry to see so many people are still having this issue, I am happy to report that HA is now running on my iPad mini.

After deleting previous attempts to connect under the iPad’s old name (I renamed it as per one suggestion) and uninstalling and reinstalling the app more than once, updating the HA software at least twice since beginning this task, a connection was achieved by going into the iPad settings and denying location access to the HA app. Immediately after that, my dashboard appeared in the HA app on the iPad.

I also observed that each time I unsuccessfully tried to connect previously that the HA app open in my laptop browser would log the connection (attempt?).

Thank you all for your suggestions and ideas. We got there eventually and I hope it all works out for the rest of you, too.

1 Like

I ran into the same problem today, after a week of normal operation on my new iPhone (switch from android to ios)

Are they working on a fix for this bug and/or is there a good workaround because I have a few automations that are location based and under Android they worked just fine. Thats why I dont wanna dissable gps :sweat_smile:

I am having similar issues with the companion app. My homes use TailScale for VPN access and I have the companion app set to use the server’s TailScale IPs. It has been working swimingly for over a year – until last week.

I find that toggling the VPN off and then back on restores the connection for about 60 seconds. I have a similar configuration with BlueIris and that app continues to work reliably; no need to toggle the VPN. Of course, I can create a reliable connection between HA and the iPhone companion app using the local IP, but that doesn’t help me when I am away from the house. I can still access the systems from Mac or Windows computers using Chrome, hitting the TailScale IP. Not sure what changed, but think I have in narrowed down to the companion app.

For now I configured it with the Nabu Casa Cloud and the local IP address in the companion app. I disabled GPS in the iOS app settings, after which the app was able to restart immediately.

Hi,

  • log in to your HA (on a device that still works :slight_smile:
  • on the sidebar, click on your avatar or initial letter of your login-name
  • choose the right tab ‚security‘
  • delete all refresh-token you dont‘t need