I suddenly lost the ability to connect to home assistant from the Android App on my tablet (Samsung Galaxy Tab S2 - Android 7.0). App version 2021.6.2-full, downloaded from the play store.
It used to work perfectly until a few days ago but now I receive a message during the connection:
Unable to connect to Home Assistant.
There was an error loading Home Assistant, please review the connection settings and try again. We will attempt to try another provided URL when you click on Refresh
I tried to clear the cache, data, uninstall the app, restart the phone, reinstall from scratch, but I have the same issues.
The address of my HA instance and the credentials are correct - I tripled checked.
The same tablet can access the HA instance from the chrome browser without any issue.
Two other smartphone can access the HA instance from the Android app without any issue …
Edit: the error logs were irrelevant. I actually received them after intentionally typing wrong credentials for testing purposes. I actually don’t receive any notificaiton and there is no log entry when I receive the error on the Android app.
In the logs, here is the error I find:
> Logger: homeassistant.components.http.ban
> Source: components/http/ban.py:124
> Integration: HTTP (documentation, issues)
> First occurred: 19:04:11 (20 occurrences)
> Last logged: 19:39:56
> Login attempt or request with invalid authentication from xxx.xxx.xxx.xxx.blabla.net (xx.xx.xxx.xxx). (Mozilla/5.0 (Linux; Android 7.0; SM-T813 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.164 Safari/537.36)
This is actually my public IP address, but I never had any issue with that before.
The error also refers to a banned IP, but I don’t remember setting that. Especially since it used to work perfectly for months before that…
Any idea ?