Integration can't log in
dannyijpelaar opened this issue · 18 comments
Since last Sunday, the Rehema Home integration no longer works for me. I can't log in anymore. See screenshot and logging.
2023-11-30 11:33:43.768 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/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 85, 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 80, 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/headers.py", line 31, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 177, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 293, in async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 389, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/remeha_home/config_flow.py", line 69, in async_step_auth
return await self.async_step_creation()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 315, in async_step_creation
token = await self.flow_impl.async_resolve_external_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/remeha_home/api.py", line 246, in async_resolve_external_data
parsed_callback_url = urllib.parse.urlparse(response.headers["location"])
~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'location'
Yes, my password is correct. If you log in with incorrect credentials, you'll receive a specific error message for that:
I have already removed the integration and reinstalled it, but this makes no difference. I am running Home Assistant version 2023.11.3. The version of the Remeha Home integration is 0.1.13.
I can confirm.
My .NET implementation of your documented API is currently also not working.
After calling: https://remehalogin.bdrthermea.net/bdrb2cprod.onmicrosoft.com/B2C_1A_RPSignUpSignInNewRoomv3.1/api/CombinedSigninAndSignup/confirmed
the response looks different than the older ones.
Have you tried reverting to 0.13 release?
Hi @p2923260! Reverting of what? I already use version 0.1.13 of the Remeha Home integration and version 2023.11.3 of Home Assistant. Should I downgrade Home Assistant? Need to say that the problems did not start after an upgrade, but out of the blue, after a few days without any updates on my side.
I have the same problem for more than a week. The Remeha integration suddenly stops working, reinstall askes for authentication which is not working. I'm using the latest version of HA and the v0.1.13 Remeha integration.
If so, I have no clue but please refer to issue #41 . Problems may be started with new beta version 0.14b1. It looks like Remeha site was not able to handle too many pull request. They hung up for some days and then disabled the power measurement also on their App.
Looking at the crash log it seems like the location
key is missing from the log-in response, which would match the observations of @tkilaaa. I don't think this has anything to do with the 0.1.14 beta versions, as those versions don't have any changes in that specific code. Instead, it is more likely that the authentication API has changed and that we need to handle the response differently.
I would need to have a new look at all the network traffic during the login flow, so it might take some time for me to get to unfortunately.
Update: Remeha Home password reset bug is fixed. After I made a new passworld I could re-login the Remeha Hacs Integration and everything is working again.
Edit:
I justed called Remeha Costumer Service. And they know a passworld problem, its a bug in the Remeha app and they made a ticket to fix it. You can't reset the passworld. If you so, you got an verification code and then you log in the app it self, again. Not posible to reset your passworld at this moment (if you forgot like me).
Original post:
Remeha integration Logged out automaticly a few days ago... i dont know the password anymore but also cannot change it with 'forgot password'
. I can log in with verification key in Remeha Home app if I click forgot password but can not change it... weird. Anyone had the same and knows a solution to reset passworld?
Hope some can help me or push in right direction.
Thanks Florian
I have been having this same issue for the past week, where the response was missing the location key.
Today I got it fixed: I logged out of the remeha home app on my phone (which is the only registered device) and logged in again. After this I could add it to home assistant without any issues.
@LuukvdBeemt Great! This workaround does work for me!
@LuukvdBeemt Yes, that was it.
I'm not sure, I think the country selection after login was a new dialog?
Also solved by doing the logout-login on the Remeha App, and setting Location when asked during login.
Afterwards login in via HA works again.
Thanks for the workaround / solution
No luck for me, I also did the logout-login trick on the app and setting the location when asked. Still no luck with the integration.
When setting up the integration, after inputting my e-mail address and password, I get a blank dialog after a while. I am running HA 2023.12.1 with Remeha Home v0.1.13 on a Home Assistant Green.
I'm not sure if it is the same issue!?
Logger: homeassistant.helpers.config_entry_oauth2_flow
Source: helpers/config_entry_oauth2_flow.py:324
First occurred: 22:09:22 (1 occurrences)
Last logged: 22:09:22
Timeout resolving OAuth token:
I did the logout and login into the Remeha Home App and set the Location when asked during login.
Afterwards, I logged in on the integration in Home Assistant, and there was no error anymore, and the login worked again.
No luck for me, I also did the logout-login trick on the app and setting the location when asked. Still no luck with the integration.
When setting up the integration, after inputting my e-mail address and password, I get a blank dialog after a while. I am running HA 2023.12.1 with Remeha Home v0.1.13 on a Home Assistant Green.
I'm not sure if it is the same issue!?
Retried today and it seems to work now after logging out and in on the app and then logging in the integration
Same for me, after logging out & in in the app, I could also sign back in Home Assistant. Thanks for the tips :)
Logout and login in the Remeha home app still works to solve the issue with the integration!
👍
Logout and login in the Remeha home app still works to solve the issue with the integration! 👍
For me as well!
Logout and login in the Remeha home app still works to solve the issue with the integration! 👍
+1 here