I’ve been having this problem forever. I don’t expose my HASS instance to the Internet, instead, I access it via VPN when I’m not at home using http. I have not installed a certificate, so no HTTPS. I’d like to, however, but not before resolving this problem.
Here are logs that resulted from tapping “Validate and Save Connection Settings” in the app’s settings screen a couple of times:
2019-11-03 18:31:33 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 10.1.4.201 for /api/config using bearer token
2019-11-03 18:31:33 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/config to 10.1.4.201 (auth: True)
2019-11-03 18:31:33 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 10.1.4.201 for /api/history/period/2019-11-02T22:31:01.629Z using bearer token
2019-11-03 18:31:33 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/history/period/2019-11-02T22:31:01.629Z to 10.1.4.201 (auth: True)
2019-11-03 18:31:34 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 10.1.4.201 for /api/config using bearer token
2019-11-03 18:31:34 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/config to 10.1.4.201 (auth: True)
2019-11-03 18:31:34 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 10.1.4.201 for /manifest.json using bearer token
2019-11-03 18:31:34 DEBUG (MainThread) [homeassistant.components.http.view] Serving /manifest.json to 10.1.4.201 (auth: True)
2019-11-03 18:31:34 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 10.1.4.201 for /api/states using bearer token
2019-11-03 18:31:34 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/states to 10.1.4.201 (auth: True)
2019-11-03 18:31:34 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 10.1.4.201 (auth: False)
2019-11-03 18:31:34 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 10.1.4.201 for /api/ios/identify using bearer token
2019-11-03 18:31:34 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/ios/identify to 10.1.4.201 (auth: True)
2019-11-03 18:31:34 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 10.1.4.201 for /api/history/period/2019-11-02T22:31:34.952Z using bearer token
2019-11-03 18:31:34 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/history/period/2019-11-02T22:31:34.952Z to 10.1.4.201 (auth: True)
Looks hunky-dory. Then I try to tap the location update button:
2019-11-03 18:31:41 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 10.1.4.201
2019-11-03 18:31:41 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Login attempt failed, message=Login attempt or request with invalid authentication from 10.1.4.201, notification_id=http-login>
2019-11-03 18:31:41 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.http_login, old_state=None, new_state=<state persistent_notification.http_login=notifying; title=Login attempt failed, message=Login attempt or request with invalid authentication from 10.1.4.201 @ 2019-11-03T18:31:41.456699-05:00>>
2019-11-03 18:31:41 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.139651584766416] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=persistent_notification.http_login, old_state=None, new_state=<state persistent_notification.http_login=notifying; title=Login attempt failed, message=Login attempt or request with invalid authentication from 10.1.4.201 @ 2019-11-03T18:31:41.456699-05:00>>}
2019-11-03 18:31:41 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.139651633414672] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=persistent_notification.http_login, old_state=None, new_state=<state persistent_notification.http_login=notifying; title=Login attempt failed, message=Login attempt or request with invalid authentication from 10.1.4.201 @ 2019-11-03T18:31:41.456699-05:00>>}
2019-11-03 18:31:41 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.139651624935952] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=persistent_notification.http_login, old_state=None, new_state=<state persistent_notification.http_login=notifying; title=Login attempt failed, message=Login attempt or request with invalid authentication from 10.1.4.201 @ 2019-11-03T18:31:41.456699-05:00>>}
2019-11-03 18:31:41 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.139651584766416] Sending {'id': 85, 'type': 'result', 'success': True, 'result': [{'notification_id': 'http-login', 'message': 'Login attempt or request with invalid authentication from 10.1.4.201', 'status': 'unread', 'title': 'Login attempt failed', 'created_at': datetime.datetime(2019, 11, 3, 23, 31, 41, 457112, tzinfo=<UTC>)}]}
2019-11-03 18:31:41 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.139651633414672] Sending {'id': 34, 'type': 'result', 'success': True, 'result': [{'notification_id': 'http-login', 'message': 'Login attempt or request with invalid authentication from 10.1.4.201', 'status': 'unread', 'title': 'Login attempt failed', 'created_at': datetime.datetime(2019, 11, 3, 23, 31, 41, 457112, tzinfo=<UTC>)}]}
2019-11-03 18:31:41 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.139651624935952] Sending {'id': 21, 'type': 'result', 'success': True, 'result': [{'notification_id': 'http-login', 'message': 'Login attempt or request with invalid authentication from 10.1.4.201', 'status': 'unread', 'title': 'Login attempt failed', 'created_at': datetime.datetime(2019, 11, 3, 23, 31, 41, 457112, tzinfo=<UTC>)}]}
Not great. I don’t have an ip_bans.yaml. The app’s event log isn’t really providing any useful information. What exactly does “Login attempt or request with invalid authentication” mean?