Closed ubergeek10 closed 1 year ago
Same issue here, Token Error...
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/wyzeapi/init.py", line 121, in async_setup_entry mac_addresses = await client.unique_device_ids ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/wyzeapy/init.py", line 138, in unique_device_ids devices = await self._service.get_object_list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/wyzeapy/services/base_service.py", line 122, in get_object_list check_for_errors_standard(response_json) File "/usr/local/lib/python3.11/site-packages/wyzeapy/utils.py", line 80, in check_for_errors_standard raise AccessTokenError wyzeapy.exceptions.AccessTokenError 2023-07-29 09:37:21.852 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request: 2023-07-29 09:37:21.852 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/home_page/get_object_list 2023-07-29 09:37:21.852 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] json: {'phone_system_type': '1', 'app_version': '2.18.43', 'app_ver': 'com.hualai.WyzeCam___2.18.43', 'sc': '9f275790cab94a72bd206c8876429f3c', 'ts': 1690641438, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': 'Sanitized', 'phone_id': '74d171c0-243c-423c-9747-1b545a9e375b', 'app_name': 'com.hualai.WyzeCam'} 2023-07-29 09:37:21.852 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None 2023-07-29 09:37:21.852 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None 2023-07-29 09:37:21.852 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1690641439902, 'code': '2001', 'msg': 'AccessTokenError', 'data': {}} 2023-07-29 09:37:21.874 ERROR (MainThread) [custom_components.wyzeapi.token_manager] TokenManager detected a login issue please re-login. 2023-07-29 09:37:21.899 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up wyzeapi platform for sensor Traceback (most recent call last): File "/config/custom_components/wyzeapi/token_manager.py", line 45, in inner_function await func(*args, **kwargs) File "/config/custom_components/wyzeapi/sensor.py", line 44, in async_setup_entry locks = await lock_service.get_locks() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/wyzeapy/services/lock_service.py", line 34, in get_locks self._devices = await self.get_object_list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/wyzeapy/services/base_service.py", line 122, in get_object_list check_for_errors_standard(response_json) File "/usr/local/lib/python3.11/site-packages/wyzeapy/utils.py", line 80, in check_for_errors_standard raise AccessTokenError wyzeapy.exceptions.AccessTokenError
These are known issues and there appears to be some fixes on the way. Hope this helps
I'm having same issue, too.
Same here... I was not able to login again without deleting the integration and re-adding After this I was prompted with a login option which included ID and API Key. After a successful login, you need to put your devices back in it's proper area. Automations still worked. Good luck everyone.
Yes I have updated to the new version and, after generating the Wyze API key, was able to login again. It all works as expected. Great job!
From: James62370 @.> Date: Thursday, August 3, 2023 at 2:09 PM To: SecKatie/ha-wyzeapi @.> Cc: ubergeek10 @.>, Author @.> Subject: Re: [SecKatie/ha-wyzeapi] [Bug] Integration cannot login to Wyze (Issue #498)
Same here... I was not able to login again without deleting the integration and re-adding After this I was prompted with a login option which included ID and API Key. After a successful login, you need to put your devices back in it's proper area. Automations still worked. Good luck everyone.
— Reply to this email directly, view it on GitHubhttps://github.com/SecKatie/ha-wyzeapi/issues/498#issuecomment-1664491153, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV2BXEQRVTUBS33LCDANP5TXTPZOBANCNFSM6AAAAAA24QSTA4. You are receiving this because you authored the thread.Message ID: @.***>
Describe the bug When installing the Wyze integration, my Wyze credentials are filled in via BitWarden (so I know they are correct) but the integrated throws an error. “Unknown error occurred.”
To Reproduce Steps to reproduce the behavior:
Expected behavior The integration should install.
System configuration System: HASS HA Version: 2023.7.3 WyzeApi Version: latest version
home-assistant.log