I am trying to use the android mobile app too, but I cannot get in…
The error in the app says: Error: invalid client id or redirect uri
2019-11-23 13:41:24 ERROR (MainThread) [homeassistant.components.auth.indieauth] Timeout while looking up redirect_uri https://home-assistant.io/android
2019-11-23 13:41:24 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.x.xx
I have moblie_app: in my configuration.yaml. Not sure what else is needed as I cannot find any documentation.
I entered the full address: http:\\192.168.xx.xx:8123. And this link is working as the app does communicate with HA, as it knows what kind of authentication I am using (trusted network or HA auth). However I never get a change to enter any user credentials.
Did the network scan not find your home assistant instance? Did you enter the address like this with backslashes or is this just a typo? It should be with normal slashes like http://192.168.x.x:8123
The network scan did not find my RPI with HA. I think it is because I have deconz running on it (on port :80). I have noticed that other network scans see my RPI as a Philips HUE bridge…
I assume this is a typo, however this is not needed, I don’t have this im my config but it works.
Did you try complety removing the app, clearing cache and reinstall it?
My setup is home-assistant in a docker container behind an nginx container doing the port forwarding. nginx uses lets encrypt for wildcard certificates.
all traffic goes through nginx 80:443 – everything else is blocked from an external standpoint. I use pihole for split horizon DNS (eg: no hair pin turns – if you are on wifi, you get the private IP address of the nginx container)
There was an update of the app on the playstore (dec 19). However no change.
Have these 2 errors:
Timeout while looking up redirect_uri https://home-assistant.io/android
and
Login attempt or request with invalid authentication from 192.168.x.xx
The first error I can understand as I do not have https support setup.
The second error I do not understand as all users on the local network are allowed.
I managed to solve this issue on my PI. The problem was exactly what the logs said: Home assistant was unable to reach https://home-assistant.io/android.
I tried to reach the URL in an SSH terminal session (with wget) and got a similar error.
I tried to reach the URL from my windows laptop, and it worked fine.
It turned out that the problem was with my static ip configuration. I changed the DNS server to 8.8.8.8 (google DNS server) and the problem went away.
I had the same issue where it didn’t discover my HA and wouldn’t login if I tried manually. I switched from trying with the admin user to the user I created for myself and it successfully logged in.