You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed the integration from HACS, I got my ClientID and SecretClient from the Miele website, then I added them to my HA configuration.yaml as follow:
When I try to login into my Miele account from Settings -> Devices & Services -> Entities -> Miele@Home -> Control (Button) -> Link Miele Account (Link) I'm redirected to the Miele website for the login and after a successful login I'm redirected back to HA via a callback (sth like: http://ha.home/api/miele/callback?code=IT_*******************************&state=login) where I guess the code parameter is the token.
At that point I get a 500 in HA:
500 Internal Server Error
Server got itself in trouble
Looking at the logs it seems that oauthlib.oauth2.rfc6749.errors.InvalidClientError raised.
2022-08-15 19:14:15.301 ERROR (MainThread) [aiohttp.server] 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 "/config/custom_components/miele/__init__.py", line 252, in get
result = await hass.async_add_executor_job(func)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/miele/miele_at_home.py", line 151, in get_access_token
token = self._session.fetch_token(
File "/usr/local/lib/python3.10/site-packages/requests_oauthlib/oauth2_session.py", line 366, in fetch_token
self._client.parse_request_body_response(r.text, scope=self.scope)
File "/usr/local/lib/python3.10/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 448, in parse_request_body_response
self.token = parse_token_response(body, scope=scope)
File "/usr/local/lib/python3.10/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 441, in parse_token_response
validate_token_parameters(params)
File "/usr/local/lib/python3.10/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 448, in validate_token_parameters
raise_from_error(params.get('error'), params)
File "/usr/local/lib/python3.10/site-packages/oauthlib/oauth2/rfc6749/errors.py", line 399, in raise_from_error
raise cls(**kwargs)
oauthlib.oauth2.rfc6749.errors.InvalidClientError: (invalid_client)
I'm wondering if I input the wrong value as ClientID?? Mine is in the form of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx where each x is a hexadecimal number. A common 8-4-4-4-12 GUID.
I'm running HA Supervisor 2022.08.3.
The text was updated successfully, but these errors were encountered:
I switched to https://github.com/astrandb/miele which works great. I know that's not a real solution, so I keep this issue open waiting for an proper one.
I installed the integration from HACS, I got my ClientID and SecretClient from the Miele website, then I added them to my HA
configuration.yaml
as follow:When I try to login into my Miele account from
Settings -> Devices & Services -> Entities -> Miele@Home -> Control (Button) -> Link Miele Account (Link)
I'm redirected to the Miele website for the login and after a successful login I'm redirected back to HA via acallback
(sth like:http://ha.home/api/miele/callback?code=IT_*******************************&state=login
) where I guess thecode
parameter is the token.At that point I get a 500 in HA:
Looking at the logs it seems that
oauthlib.oauth2.rfc6749.errors.InvalidClientError
raised.I'm wondering if I input the wrong value as
ClientID
?? Mine is in the form ofxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
where eachx
is a hexadecimal number. A common 8-4-4-4-12 GUID.I'm running HA Supervisor 2022.08.3.
The text was updated successfully, but these errors were encountered: