Just installed the beta. I am having trouble connecting. I activate base authentication and type in my credentials. After pressing save and done, I get a screen saying “unable to connect to home assistant” I can then retry, or press an invisible settings button in the lower right corner. The credentials are definitely correct. Any ideas of what could be wrong?
Basic authentication is something different again (thanks for including it Robbie) - if you’re just using the new Home Assistant user system to authenticate, leave legacy and basic authentication unchecked, then press save. That’ll then prompt you to log in.
Thanks, just installed. Is there any specific you want us to test?
I noticed with the official app/version I have loads of authentication issues when moving out of trusted networks and my cell IP address eventually gets banned.
I therefore still have legacy enabled for that purpose.
Can you therefore confirm that the app will work with legacy disabled and MFA enabled?
I’m glad this is not just me. Seems to happen when moving from wifi to 4G networks. Doesn’t matter if it’s a trusted network or not. Happens at home (trusted) or at work (not a trusted network). I haven’t worked out if it is because I have the app open when actually moving between networks or not.
he he same here. Had to bring back the legacy auth support and do the same on Google Home as the long life token would not work with legacy either. Will try and test this later with the beta app
Just tried, using internal URL. Get:
Error: invalid client id or redirect uri
When I click Cancel I then get: There was an error connecting … The operation couldn’t be completed. (HomeAssistant.AuthenticationController.AuthenticationControllerError error 1.)
Tried it both with Basis authentication on or off.
In the log file I get:
2018-09-27 15:09:38 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error in data received
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/sslproto.py”, line 526, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/sslproto.py”, line 189, in feed_ssldata
self._sslobj.do_handshake()
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py”, line 763, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)
I do not have SSL setup but then it is not exposed to the outside either and just trying to use it with internal URL.
As per other posts, leave legacy and basic auth off.
I have found the best way to get this working is to reset the app at the bottom, enter the URL under connection and tap save. It should then take you to the normal home assistant logon screen. I enter user and password and then it prompts for 2FA.
You will probably then find that all the status’s have X’s instead of ticks. Tap on Done and you might get an unable to connect error. If you then force close the app and re-open it, you should see ticks in the status area and HA should work normally.
FWIW, I am using Google Assistant as well and it is working fine without legacy_api being enabled on my system. @awarecan has I believe made a change to the component for the next release that will integrate it into the new auth correctly but for now it is working fine without legacy_api. I did setup my GA component before it required an API password to be entered in it.
I use CloudFlare for my site and I have one-time pin selected. It allows me to get a one-time pin and then redirects to HASS Login page.
When I give the login details, it then goes back to the config setting screen and says ObjectMapper failed to serialize response. Basic, Legacy and Internal all set to Off.
I still see the settings icons on my iphone X but how did you minimize the top menu? Or did you simply cut the screenshot? I´m frustrated that the menus takes up almost 1/3rd of the screen.