core: Neato Botvac Integration Problem
The problem
I can’t integrate Neato botvac.
I have created an app at neato developer network and when I try to integrate in home assistant. I can authorize and then I get to the page asking to link account to home assistant and I’ve put in my duckdns.org adress under “Your instance URL” and then I come back to home assistant and it says “Error”.
What am I doing wrong?
What version of Home Assistant Core has the issue?
2022.9.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Neato Botvac
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: aiohttp.server
Source: helpers/config_entry_oauth2_flow.py:205
First occurred: 22:55:42 (3 occurrences)
Last logged: 22:57:16
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 169, in get
return await super().get(request, flow_id)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 96, in get
result = await self._flow_mgr.async_configure(flow_id)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 280, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 303, in async_step_creation
token = await self.flow_impl.async_resolve_external_data(self.external_data)
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 169, in async_resolve_external_data
return await self._token_request(
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 205, in _token_request
resp.raise_for_status()
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 401, message='Unauthorized', url=URL('https://beehive.neatocloud.com/oauth2/token')
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 33 (2 by maintainers)
I found the solution in another topic, you have to use the following URL:
https://my.home-assistant.io/redirect/oauth
for me also the same problem, I always get the error: The redirect uri included is not valid. it always worked perfect, but after updating homeassistant it is not working anymore
I have the same issue. Integration seems to be broken for the moment.
EDIT: It isn’t broken, just a bit confusing. I have a custom domain for my HA installation and thought I would have to use the “I have disabled the My …” way. But I didn’t. Just followed the documentation and everything works fine.
I’ve just upgraded HA to the latest and neato integration asked to reconfigure as the token has expired. I’ve deleted the old integration and tried adding a new one but when I click the “Open Website” button I get “The redirect uri included is not valid.” error. When I look at the URL HA generated I can see this - “redirect_uri=https://my.home-assistant.io/redirect/oauth”. This is wrong as I have in my configuration.yaml
external_url: "https://XXXX.duckdns.org"
and I’m accessing HA via that external url when trying to add this integration. Further on, I’ve edited that URL by hand putting “redirect_uri=https%3A%2F%2FXXXX.duckdns.org%2Fauth%2Fexternal%2Fcallback”. Now I’m getting to the authorisation page on the neato’s website. However when I click Authorise button I just get 500 response. Any suggestions how I can fix it?