I am unable to get AdGuardHome to connect from my Hassio system running the latest HA to my (self installed) secondary PI Running AdGuardHome. Even when i know 100% the username and password is correct i still get:
AdGuardHomeError: (401, {'message': 'Unauthorised.\n'})
I have tried both with and without a cert, currently its not got one. I can login fine to the AdGuardHome UI with the same port, username and password etc.
Any suggestions welcome. Thanks.
2019-07-03 21:26:06 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 33, in real_ip_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 67, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 216, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 115, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 155, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 46, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 86, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 87, in async_configure
flow, cur_step['step_id'], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 123, in _async_handle_step
result = await getattr(flow, method)(user_input) # type: Dict
File "/usr/src/homeassistant/homeassistant/components/adguard/config_flow.py", line 85, in async_step_user
await adguard.version()
File "/usr/local/lib/python3.7/site-packages/adguardhome/adguardhome.py", line 154, in version
response = await self._request("status")
File "/usr/local/lib/python3.7/site-packages/adguardhome/adguardhome.py", line 122, in _request
response.status, {"message": contents.decode("utf8")}
adguardhome.exceptions.AdGuardHomeError: (401, {'message': 'Unauthorised.\n'})