hon: Can not login with correct email and password
v0.13.0
I use EVO application on my phone.| I setup addon to HA, enter correct email and password (I check this information by logout/login on phone) In HA log I see that hon can not login In integration setting I see my email “Setup fail” and “No device or entityes”.
Environment (please complete the following information):
- Home Assistant Version: core-2024.5.4
- hOn Integration Versionv 0.13.0
- pyhOn Version ???
Additional context Add any other context about the problem here.
Home Assistant Logs
Check System -> Logs if you can find any logs related to this integration and post it here.
Device Log Post your device info here (if available) 2024-06-01 17:10:34.864 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry maxxxx@mail.ru for hon Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 575, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/hon/init.py”, line 41, in async_setup_entry hon = await Hon(**kwargs).create() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/pyhon/hon.py”, line 74, in create await self.setup() File “/usr/local/lib/python3.12/site-packages/pyhon/hon.py”, line 105, in setup appliances = await self.api.load_appliances() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/pyhon/connection/api.py”, line 84, in load_appliances async with self._hon.get(f"{const.API_URL}/commands/v1/appliance") as resp: File “/usr/local/lib/python3.12/contextlib.py”, line 210, in aenter return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/pyhon/connection/handler/base.py”, line 64, in get async with self._intercept(*args, **kwargs) as response: File “/usr/local/lib/python3.12/contextlib.py”, line 210, in aenter return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/pyhon/connection/handler/hon.py”, line 74, in _intercept kwargs[“headers”] = await self._check_headers(kwargs.get(“headers”, {})) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/pyhon/connection/handler/hon.py”, line 64, in _check_headers await self.auth.authenticate() File “/usr/local/lib/python3.12/site-packages/pyhon/connection/auth.py”, line 258, in authenticate if not (url := await self._login()): ^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/pyhon/connection/auth.py”, line 195, in _login await self._error_logger(response) File “/usr/local/lib/python3.12/site-packages/pyhon/connection/auth.py”, line 96, in _error_logger raise exceptions.HonAuthenticationError(“Can’t login”) pyhon.exceptions.HonAuthenticationError: Can’t login
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 20
This fixed it for me. Seems so easy in the end, but was reluctant to choose “delete”.