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
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.