Closed reidprichard closed 2 years ago
May be related to their new and improved rate limiting. If it is working for X out of N bulbs that would be my first guess. They are no longer blocking IP's but they are dropping requests that go over their limit (unknown what that is exactly).
Hmm, thanks. Any way I could verify? There doesn't seem to be a pattern - sometimes one will fail, and sometimes half of them will.
If you enable debug logging you can see the raw requests and responses. There are instructions for that on the readme at the bottom.
That might give us some more clues as to what is going on
I do not see any failures. If we can get it to fail and then get the logs from that occurrence that might be useful. If not we might have to work on adding some more/different logs
Hmm, I'm certain I observed several lights failing to update when I took that log. I'll try again.
Maybe it's worth having wyzeapy log the responses as well? That way you could see the request and the response. Might make debugging issues like this easier if a response shows up strange.
@reidprichard I removed your message bc it includes secret tokens.
I'm having the same issues with their bulbs now....may need to trash these wyze devices if they are going to rate limit access and not provide and API.
@JoshuaMulliken thanks for catching that in my message. Here's another log with the access tokens redacted. I'm certain that one of the four bulbs failed to update color temp on this log.
2021-09-17 19:58:38 DEBUG (MainThread) [custom_components.wyzeapi.light] Setting color temp
2021-09-17 19:58:38 DEBUG (MainThread) [custom_components.wyzeapi.light] Turning on light
2021-09-17 19:58:38 DEBUG (MainThread) [custom_components.wyzeapi.light] Setting color temp
2021-09-17 19:58:38 DEBUG (MainThread) [custom_components.wyzeapi.light] Turning on light
2021-09-17 19:58:38 DEBUG (MainThread) [custom_components.wyzeapi.light] Setting color temp
2021-09-17 19:58:38 DEBUG (MainThread) [custom_components.wyzeapi.light] Turning on light
2021-09-17 19:58:38 DEBUG (MainThread) [custom_components.wyzeapi.light] Setting color temp
2021-09-17 19:58:38 DEBUG (MainThread) [custom_components.wyzeapi.light] Turning on light
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-17 19:58:38 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': 1631923118, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '', 'phone_id': '86173ed4-32ba-468c-ab8f-45a99f979fab', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P1502', 'pvalue': '5481'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E277130'}
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-17 19:58:38 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': 1631923118, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '', 'phone_id': '86173ed4-32ba-468c-ab8f-45a99f979fab', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P3', 'pvalue': '1'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E277130'}
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-17 19:58:38 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': 1631923118, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '', 'phone_id': '86173ed4-32ba-468c-ab8f-45a99f979fab', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P1502', 'pvalue': '5481'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E277A8C'}
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-17 19:58:38 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': 1631923118, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P3', 'pvalue': '1'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E277A8C'}
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-17 19:58:38 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': 1631923118, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '', 'phone_id': '86173ed4-32ba-468c-ab8f-45a99f979fab', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P1502', 'pvalue': '5481'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E282460'}
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-17 19:58:38 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': 1631923118, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '', 'phone_id': '86173ed4-32ba-468c-ab8f-45a99f979fab', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P3', 'pvalue': '1'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E282460'}
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-17 19:58:38 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': 1631923118, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '', 'phone_id': '86173ed4-32ba-468c-ab8f-45a99f979fab', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P1502', 'pvalue': '5481'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E2650E5'}
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-17 19:58:38 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': 1631923118, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '', 'phone_id': '86173ed4-32ba-468c-ab8f-45a99f979fab', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P3', 'pvalue': '1'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E2650E5'}
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-17 19:58:38 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
@reidprichard are you still having this issue in the new builds?
The logs from the new builds should output the response data in the logs, so it might be easier to see what's going on there.
@yoinx, afraid so. Here's a log, where I believe 2/4 lights failed to respond when changing color temp from cool to warm (low to high mireds).
Did you also change it to redact the access token? That's a nice touch!
2021-09-23 10:51:23 DEBUG (MainThread) [custom_components.wyzeapi.light] Setting color temp
2021-09-23 10:51:23 DEBUG (MainThread) [custom_components.wyzeapi.light] Turning on light
2021-09-23 10:51:23 DEBUG (MainThread) [custom_components.wyzeapi.light] Setting color temp
2021-09-23 10:51:23 DEBUG (MainThread) [custom_components.wyzeapi.light] Turning on light
2021-09-23 10:51:23 DEBUG (MainThread) [custom_components.wyzeapi.light] Setting color temp
2021-09-23 10:51:23 DEBUG (MainThread) [custom_components.wyzeapi.light] Turning on light
2021-09-23 10:51:23 DEBUG (MainThread) [custom_components.wyzeapi.light] Setting color temp
2021-09-23 10:51:23 DEBUG (MainThread) [custom_components.wyzeapi.light] Turning on light
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P1502', 'pvalue': '5235'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E277130'}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683799, 'code': '1', 'msg': '', 'data': {'session_id': '917ea5c9debe4b14ab022e865d2d082e', 'result': 2}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P3', 'pvalue': '1'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E277A8C'}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683654, 'code': '1', 'msg': '', 'data': {'session_id': '9a87375ab08748bfbbdb6b53d2342abb', 'result': 2}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P1502', 'pvalue': '5235'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E277A8C'}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683668, 'code': '1', 'msg': '', 'data': {'session_id': '1c6d2be187634f0cb4f8844be50fda34', 'result': 2}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P3', 'pvalue': '1'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E282460'}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683738, 'code': '1', 'msg': '', 'data': {'session_id': 'dcf938360a7e47cd9eff2d2d927634f8', 'result': 2}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P1502', 'pvalue': '5235'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E2650E5'}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683732, 'code': '1', 'msg': '', 'data': {'session_id': '459f337bcb0443b2b2b73cd1bae14682', 'result': 2}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P1502', 'pvalue': '5235'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E282460'}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683612, 'code': '1', 'msg': '', 'data': {'session_id': '2550c2a7e53f425f93e0fcb168733c7b', 'result': 2}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P3', 'pvalue': '1'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E2650E5'}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683770, 'code': '1', 'msg': '', 'data': {'session_id': 'cec308a481fa4bef9cead277d7f7ec0e', 'result': 2}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P3', 'pvalue': '1'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E277130'}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683794, 'code': '1', 'msg': '', 'data': {'session_id': '98c722f57f8043a5a4245f857b74dbb7', 'result': 2}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/get_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'device_model': 'WLPA19', 'device_mac': '2CAA8E277A8C', 'target_pid_list': []}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683761, 'code': '1', 'msg': '', 'data': {'property_list': [{'pid': 'P1', 'value': '1', 'ts': 0}, {'pid': 'P1501', 'value': '34', 'ts': 1632408665648}, {'pid': 'P1502', 'value': '2702', 'ts': 1632408681205}, {'pid': 'P1503', 'value': '0', 'ts': 1632068032052}, {'pid': 'P1504', 'value': '-55', 'ts': 1632408681205}, {'pid': 'P1505', 'value': '0', 'ts': 1632068032052}, {'pid': 'P1506', 'value': '0', 'ts': 1632068032052}, {'pid': 'P1509', 'value': '0', 'ts': 1632068032052}, {'pid': 'P1511', 'value': '', 'ts': 0}, {'pid': 'P1513', 'value': '0', 'ts': 0}, {'pid': 'P1514', 'value': '0', 'ts': 0}, {'pid': 'P1528', 'value': '0', 'ts': 0}, {'pid': 'P1529', 'value': '0', 'ts': 0}, {'pid': 'P1530', 'value': '0', 'ts': 0}, {'pid': 'P1531', 'value': '0', 'ts': 0}, {'pid': 'P3', 'value': '1', 'ts': 1632408677989}, {'pid': 'P5', 'value': '1', 'ts': 1632068031330}, {'pid': 'P7', 'value': '-4', 'ts': 1632068032052}]}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/get_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'device_model': 'WLPA19', 'device_mac': '2CAA8E2650E5', 'target_pid_list': []}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683726, 'code': '1', 'msg': '', 'data': {'property_list': [{'pid': 'P1', 'value': '1', 'ts': 0}, {'pid': 'P1501', 'value': '100', 'ts': 1632408668636}, {'pid': 'P1502', 'value': '2702', 'ts': 1632408681078}, {'pid': 'P1503', 'value': '0', 'ts': 1632068026112}, {'pid': 'P1504', 'value': '-53', 'ts': 1632408681078}, {'pid': 'P1505', 'value': '0', 'ts': 1632068026112}, {'pid': 'P1506', 'value': '0', 'ts': 1632068026112}, {'pid': 'P1509', 'value': '0', 'ts': 1632068026112}, {'pid': 'P1511', 'value': '', 'ts': 0}, {'pid': 'P1513', 'value': '0', 'ts': 0}, {'pid': 'P1514', 'value': '0', 'ts': 0}, {'pid': 'P1528', 'value': '0', 'ts': 0}, {'pid': 'P1529', 'value': '0', 'ts': 0}, {'pid': 'P1530', 'value': '0', 'ts': 0}, {'pid': 'P1531', 'value': '0', 'ts': 0}, {'pid': 'P3', 'value': '1', 'ts': 1632408677639}, {'pid': 'P5', 'value': '1', 'ts': 1632068025398}, {'pid': 'P7', 'value': '-4', 'ts': 1632068026112}]}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/get_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'device_model': 'WLPA19', 'device_mac': '2CAA8E25CF8B', 'target_pid_list': []}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683767, 'code': '1', 'msg': '', 'data': {'property_list': [{'pid': 'P1', 'value': '1', 'ts': 0}, {'pid': 'P1501', 'value': '100', 'ts': 1632355772662}, {'pid': 'P1502', 'value': '2702', 'ts': 1632355772662}, {'pid': 'P1503', 'value': '0', 'ts': 1632068032278}, {'pid': 'P1504', 'value': '-66', 'ts': 1632400018342}, {'pid': 'P1505', 'value': '0', 'ts': 1632068032278}, {'pid': 'P1506', 'value': '0', 'ts': 1632068032278}, {'pid': 'P1509', 'value': '0', 'ts': 1632068032278}, {'pid': 'P1511', 'value': '', 'ts': 0}, {'pid': 'P1513', 'value': '0', 'ts': 0}, {'pid': 'P1514', 'value': '0', 'ts': 0}, {'pid': 'P1528', 'value': '0', 'ts': 0}, {'pid': 'P1529', 'value': '0', 'ts': 0}, {'pid': 'P1530', 'value': '0', 'ts': 0}, {'pid': 'P1531', 'value': '0', 'ts': 0}, {'pid': 'P3', 'value': '0', 'ts': 1632400018342}, {'pid': 'P5', 'value': '1', 'ts': 1632068031563}, {'pid': 'P7', 'value': '-4', 'ts': 1632068032278}]}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/get_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'device_model': 'WLPA19', 'device_mac': '2CAA8E2588E0', 'target_pid_list': []}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683813, 'code': '1', 'msg': '', 'data': {'property_list': [{'pid': 'P1', 'value': '1', 'ts': 0}, {'pid': 'P1501', 'value': '100', 'ts': 1632355772782}, {'pid': 'P1502', 'value': '2702', 'ts': 1632355772782}, {'pid': 'P1503', 'value': '0', 'ts': 1632068030165}, {'pid': 'P1504', 'value': '-49', 'ts': 1632400018938}, {'pid': 'P1505', 'value': '0', 'ts': 1632068030165}, {'pid': 'P1506', 'value': '0', 'ts': 1632068030165}, {'pid': 'P1509', 'value': '0', 'ts': 1632068030165}, {'pid': 'P1511', 'value': '', 'ts': 0}, {'pid': 'P1513', 'value': '0', 'ts': 0}, {'pid': 'P1514', 'value': '0', 'ts': 0}, {'pid': 'P1528', 'value': '0', 'ts': 0}, {'pid': 'P1529', 'value': '0', 'ts': 0}, {'pid': 'P1530', 'value': '0', 'ts': 0}, {'pid': 'P1531', 'value': '0', 'ts': 0}, {'pid': 'P3', 'value': '0', 'ts': 1632400018938}, {'pid': 'P5', 'value': '1', 'ts': 1632068029365}, {'pid': 'P7', 'value': '-4', 'ts': 1632068030165}]}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/get_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'device_model': 'WLPA19', 'device_mac': '2CAA8E25FA65', 'target_pid_list': []}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683560, 'code': '1', 'msg': '', 'data': {'property_list': [{'pid': 'P1', 'value': '1', 'ts': 0}, {'pid': 'P1501', 'value': '100', 'ts': 1632406605432}, {'pid': 'P1502', 'value': '4347', 'ts': 1632407553703}, {'pid': 'P1503', 'value': '0', 'ts': 1632400247241}, {'pid': 'P1504', 'value': '-58', 'ts': 1632408647381}, {'pid': 'P1505', 'value': '0', 'ts': 1632400247241}, {'pid': 'P1506', 'value': '0', 'ts': 1632400247241}, {'pid': 'P1509', 'value': '0', 'ts': 1632400247241}, {'pid': 'P1511', 'value': 'a070745e1f194dfa8ff790dd60c20252', 'ts': 1631245707998}, {'pid': 'P1513', 'value': '0', 'ts': 0}, {'pid': 'P1514', 'value': '0', 'ts': 0}, {'pid': 'P1528', 'value': '0', 'ts': 0}, {'pid': 'P1529', 'value': '0', 'ts': 0}, {'pid': 'P1530', 'value': '0', 'ts': 0}, {'pid': 'P1531', 'value': '0', 'ts': 0}, {'pid': 'P3', 'value': '0', 'ts': 1632408647381}, {'pid': 'P5', 'value': '1', 'ts': 1632368769459}, {'pid': 'P7', 'value': '-4', 'ts': 1632400247241}]}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/get_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'device_model': 'WLPA19', 'device_mac': '2CAA8E282460', 'target_pid_list': []}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683769, 'code': '1', 'msg': '', 'data': {'property_list': [{'pid': 'P1', 'value': '1', 'ts': 0}, {'pid': 'P1501', 'value': '100', 'ts': 1632408668811}, {'pid': 'P1502', 'value': '2702', 'ts': 1632408681270}, {'pid': 'P1503', 'value': '0', 'ts': 1632111188749}, {'pid': 'P1504', 'value': '-59', 'ts': 1632408681270}, {'pid': 'P1505', 'value': '0', 'ts': 1632111188749}, {'pid': 'P1506', 'value': '0', 'ts': 1632111188749}, {'pid': 'P1509', 'value': '0', 'ts': 1632111188749}, {'pid': 'P1511', 'value': '', 'ts': 0}, {'pid': 'P1513', 'value': '0', 'ts': 0}, {'pid': 'P1514', 'value': '0', 'ts': 0}, {'pid': 'P1528', 'value': '0', 'ts': 0}, {'pid': 'P1529', 'value': '0', 'ts': 0}, {'pid': 'P1530', 'value': '0', 'ts': 0}, {'pid': 'P1531', 'value': '0', 'ts': 0}, {'pid': 'P3', 'value': '1', 'ts': 1632408681270}, {'pid': 'P5', 'value': '1', 'ts': 1632111187980}, {'pid': 'P7', 'value': '-4', 'ts': 1632111188749}]}}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/get_property_list
2021-09-23 10:51:23 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'device_model': 'WLPA19', 'device_mac': '2CAA8E277130', 'target_pid_list': []}
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:23 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683752, 'code': '1', 'msg': '', 'data': {'property_list': [{'pid': 'P1', 'value': '1', 'ts': 0}, {'pid': 'P1501', 'value': '100', 'ts': 1632408668446}, {'pid': 'P1502', 'value': '2702', 'ts': 1632408680775}, {'pid': 'P1503', 'value': '0', 'ts': 1632068034077}, {'pid': 'P1504', 'value': '-54', 'ts': 1632408680775}, {'pid': 'P1505', 'value': '0', 'ts': 1632068034077}, {'pid': 'P1506', 'value': '0', 'ts': 1632068034077}, {'pid': 'P1509', 'value': '0', 'ts': 1632068034077}, {'pid': 'P1511', 'value': '', 'ts': 0}, {'pid': 'P1513', 'value': '0', 'ts': 0}, {'pid': 'P1514', 'value': '0', 'ts': 0}, {'pid': 'P1528', 'value': '0', 'ts': 0}, {'pid': 'P1529', 'value': '0', 'ts': 0}, {'pid': 'P1530', 'value': '0', 'ts': 0}, {'pid': 'P1531', 'value': '0', 'ts': 0}, {'pid': 'P3', 'value': '1', 'ts': 1632408671854}, {'pid': 'P5', 'value': '1', 'ts': 1632068033442}, {'pid': 'P7', 'value': '-4', 'ts': 1632068034077}]}}
2021-09-23 10:51:24 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:24 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/get_property_list
2021-09-23 10:51:24 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': 1632408683, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'device_model': 'WLPA19', 'device_mac': '2CAA8E25E3D6', 'target_pid_list': []}
2021-09-23 10:51:24 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:24 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:24 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408683778, 'code': '1', 'msg': '', 'data': {'property_list': [{'pid': 'P1', 'value': '1', 'ts': 0}, {'pid': 'P1501', 'value': '39', 'ts': 1631281545951}, {'pid': 'P1502', 'value': '3105', 'ts': 1631281545951}, {'pid': 'P1503', 'value': '0', 'ts': 1631281436754}, {'pid': 'P1504', 'value': '-60', 'ts': 1631281941198}, {'pid': 'P1505', 'value': '0', 'ts': 1631281436754}, {'pid': 'P1506', 'value': '0', 'ts': 1631281436754}, {'pid': 'P1509', 'value': '0', 'ts': 1631281436754}, {'pid': 'P1511', 'value': '', 'ts': 0}, {'pid': 'P1513', 'value': '0', 'ts': 0}, {'pid': 'P1514', 'value': '0', 'ts': 0}, {'pid': 'P1528', 'value': '0', 'ts': 0}, {'pid': 'P1529', 'value': '0', 'ts': 0}, {'pid': 'P1530', 'value': '0', 'ts': 0}, {'pid': 'P1531', 'value': '0', 'ts': 0}, {'pid': 'P3', 'value': '0', 'ts': 1631281941198}, {'pid': 'P5', 'value': '0', 'ts': 1631282396253}, {'pid': 'P7', 'value': '-4', 'ts': 1631281436754}]}}
2021-09-23 10:51:25 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:25 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/get_event_list
2021-09-23 10:51:25 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] json: {'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'begin_time': 1632405084641, 'event_type': '', 'app_name': 'com.hualai.WyzeCam', 'count': 10, 'app_version': '2.18.43', 'order_by': 2, 'event_value_list': ['1', '13', '10', '12'], 'sc': '9f275790cab94a72bd206c8876429f3c', 'device_mac_list': [], 'event_tag_list': [], 'sv': '782ced6909a44d92a1f70d582bbe88be', 'end_time': 1632408684641, 'phone_system_type': '1', 'app_ver': 'com.hualai.WyzeCam___2.18.43', 'ts': 1623612037763, 'device_mac': '', 'access_token': '**Sanitized**'}
2021-09-23 10:51:25 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:25 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:25 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408684984, 'code': '1', 'msg': '', 'data': {'event_list': [{'user_id': None, 'event_id': '2CAA8E2B8CAB011632408454', 'device_mac': '2CAA8E2B8CAB', 'device_model': 'WYZEC1-JZ', 'event_category': 0, 'event_value': '1', 'event_ts': 1632408454000, 'event_ack_result': 0, 'is_feedback_correct': 0, 'is_feedback_face': 0, 'is_feedback_person': 0, 'file_list': [{'file_id': '9170625c33a849aba2230e6e6d9a29cb', 'type': 1, 'url': 'https://wyze-device-alarm-file.s3.us-west-2.amazonaws.com/2CAA8E2B8CAB/2021-09-23/2CAA8E2B8CAB011632408454_1632408454000_1_1_0/9170625c33a849aba2230e6e6d9a29cb.jpg?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJNFQFXEM46KZVY7A/20210923/us-west-2/s3/aws4_request&X-Amz-Date=20210923T145124Z&X-Amz-SignedHeaders=host&X-Amz-Signature=44adc317f06eff6596f411b78f5f3395539327df9410e06379335ce78f7dff21', 'status': 2, 'en_algorithm': 0, 'en_password': '', 'is_ai': 0, 'ai_tag_list': [], 'ai_url': '', 'file_params': {}}, {'file_id': 'fa3d8bb61f2a4cb79a6089c2f969a2f6', 'type': 2, 'url': 'https://wyze-device-alarm-file.s3.us-west-2.amazonaws.com/2CAA8E2B8CAB/2021-09-23/2CAA8E2B8CAB011632408454_1632408454000_1_2_0/fa3d8bb61f2a4cb79a6089c2f969a2f6.mp4?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJNFQFXEM46KZVY7A/20210923/us-west-2/s3/aws4_request&X-Amz-Date=20210923T145124Z&X-Amz-SignedHeaders=host&X-Amz-Signature=5faa5316d3535367c693c10708dfc756f8c5f144775251d1204a5a89bc8763af', 'status': 2, 'en_algorithm': 0, 'en_password': '', 'is_ai': 0, 'ai_tag_list': [], 'ai_url': '', 'file_params': {}}], 'event_resources': [{'resource_type': 's3', 'file_id': '9170625c33a849aba2230e6e6d9a29cb', 'type': 1, 'url': 'https://wyze-device-alarm-file.s3.us-west-2.amazonaws.com/2CAA8E2B8CAB/2021-09-23/2CAA8E2B8CAB011632408454_1632408454000_1_1_0/9170625c33a849aba2230e6e6d9a29cb.jpg?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJNFQFXEM46KZVY7A/20210923/us-west-2/s3/aws4_request&X-Amz-Date=20210923T145124Z&X-Amz-SignedHeaders=host&X-Amz-Signature=44adc317f06eff6596f411b78f5f3395539327df9410e06379335ce78f7dff21', 'status': 2, 'en_algorithm': 0, 'en_password': '', 'is_ai': 0, 'ai_tag_list': [], 'ai_url': '', 'file_params': {}}, {'resource_type': 's3', 'file_id': 'fa3d8bb61f2a4cb79a6089c2f969a2f6', 'type': 2, 'url': 'https://wyze-device-alarm-file.s3.us-west-2.amazonaws.com/2CAA8E2B8CAB/2021-09-23/2CAA8E2B8CAB011632408454_1632408454000_1_2_0/fa3d8bb61f2a4cb79a6089c2f969a2f6.mp4?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJNFQFXEM46KZVY7A/20210923/us-west-2/s3/aws4_request&X-Amz-Date=20210923T145124Z&X-Amz-SignedHeaders=host&X-Amz-Signature=5faa5316d3535367c693c10708dfc756f8c5f144775251d1204a5a89bc8763af', 'status': 2, 'en_algorithm': 0, 'en_password': '', 'is_ai': 0, 'ai_tag_list': [], 'ai_url': '', 'file_params': {}}], 'event_params': {}, 'recognized_instance_list': [], 'tag_list': [], 'read_state': 0}, {'user_id': None, 'event_id': '2CAA8E2B8CAB011632408062', 'device_mac': '2CAA8E2B8CAB', 'device_model': 'WYZEC1-JZ', 'event_category': 0, 'event_value': '1', 'event_ts': 1632408062000, 'event_ack_result': 0, 'is_feedback_correct': 0, 'is_feedback_face': 0, 'is_feedback_person': 0, 'file_list': [{'file_id': '82be70685d5d4aa3bbd8170907ce6201', 'type': 1, 'url': 'https://wyze-device-alarm-file.s3.us-west-2.amazonaws.com/2CAA8E2B8CAB/2021-09-23/2CAA8E2B8CAB011632408062_1632408062000_1_1_0/82be70685d5d4aa3bbd8170907ce6201.jpg?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJNFQFXEM46KZVY7A/20210923/us-west-2/s3/aws4_request&X-Amz-Date=20210923T145124Z&X-Amz-SignedHeaders=host&X-Amz-Signature=d4ba33f5856be691d072500085ceabea927e7eec7a56bf1db373ce7ab9195aa7', 'status': 2, 'en_algorithm': 0, 'en_password': '', 'is_ai': 0, 'ai_tag_list': [], 'ai_url': '', 'file_params': {}}, {'file_id': '25e5d6c564424f2c94908035f370be27', 'type': 2, 'url': 'https://wyze-device-alarm-file.s3.us-west-2.amazonaws.com/2CAA8E2B8CAB/2021-09-23/2CAA8E2B8CAB011632408062_1632408062000_1_2_0/25e5d6c564424f2c94908035f370be27.mp4?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJNFQFXEM46KZVY7A/20210923/us-west-2/s3/aws4_request&X-Amz-Date=20210923T145124Z&X-Amz-SignedHeaders=host&X-Amz-Signature=940cf119ff76e66d91359e745ac581f9908f64f72baba95aaf32078fcce342b5', 'status': 2, 'en_algorithm': 0, 'en_password': '', 'is_ai': 0, 'ai_tag_list': [], 'ai_url': '', 'file_params': {}}], 'event_resources': [{'resource_type': 's3', 'file_id': '82be70685d5d4aa3bbd8170907ce6201', 'type': 1, 'url': 'https://wyze-device-alarm-file.s3.us-west-2.amazonaws.com/2CAA8E2B8CAB/2021-09-23/2CAA8E2B8CAB011632408062_1632408062000_1_1_0/82be70685d5d4aa3bbd8170907ce6201.jpg?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJNFQFXEM46KZVY7A/20210923/us-west-2/s3/aws4_request&X-Amz-Date=20210923T145124Z&X-Amz-SignedHeaders=host&X-Amz-Signature=d4ba33f5856be691d072500085ceabea927e7eec7a56bf1db373ce7ab9195aa7', 'status': 2, 'en_algorithm': 0, 'en_password': '', 'is_ai': 0, 'ai_tag_list': [], 'ai_url': '', 'file_params': {}}, {'resource_type': 's3', 'file_id': '25e5d6c564424f2c94908035f370be27', 'type': 2, 'url': 'https://wyze-device-alarm-file.s3.us-west-2.amazonaws.com/2CAA8E2B8CAB/2021-09-23/2CAA8E2B8CAB011632408062_1632408062000_1_2_0/25e5d6c564424f2c94908035f370be27.mp4?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJNFQFXEM46KZVY7A/20210923/us-west-2/s3/aws4_request&X-Amz-Date=20210923T145124Z&X-Amz-SignedHeaders=host&X-Amz-Signature=940cf119ff76e66d91359e745ac581f9908f64f72baba95aaf32078fcce342b5', 'status': 2, 'en_algorithm': 0, 'en_password': '', 'is_ai': 0, 'ai_tag_list': [], 'ai_url': '', 'file_params': {}}], 'event_params': {}, 'recognized_instance_list': [], 'tag_list': [], 'read_state': 0}, {'user_id': None, 'event_id': '2CAA8E2B8CAB011632406604', 'device_mac': '2CAA8E2B8CAB', 'device_model': 'WYZEC1-JZ', 'event_category': 0, 'event_value': '1', 'event_ts': 1632406604000, 'event_ack_result': 0, 'is_feedback_correct': 0, 'is_feedback_face': 0, 'is_feedback_person': 0, 'file_list': [{'file_id': 'b25fa394f94140e8b1d64097fe650d9e', 'type': 1, 'url': 'https://wyze-device-alarm-file.s3.us-west-2.amazonaws.com/2CAA8E2B8CAB/2021-09-23/2CAA8E2B8CAB011632406604_1632406604000_1_1_0/b25fa394f94140e8b1d64097fe650d9e.jpg?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJNFQFXEM46KZVY7A/20210923/us-west-2/s3/aws4_request&X-Amz-Date=20210923T145124Z&X-Amz-SignedHeaders=host&X-Amz-Signature=c2d022442033507f77c0d3eb138f820eecf99482918379efb669b1040680442f', 'status': 2, 'en_algorithm': 0, 'en_password': '', 'is_ai': 0, 'ai_tag_list': [], 'ai_url': '', 'file_params': {}}, {'file_id': 'ea29c465558945a4bd7e72408966776c', 'type': 2, 'url': 'https://wyze-device-alarm-file.s3.us-west-2.amazonaws.com/2CAA8E2B8CAB/2021-09-23/2CAA8E2B8CAB011632406604_1632406604000_1_2_0/ea29c465558945a4bd7e72408966776c.mp4?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJNFQFXEM46KZVY7A/20210923/us-west-2/s3/aws4_request&X-Amz-Date=20210923T145124Z&X-Amz-SignedHeaders=host&X-Amz-Signature=3a9d875e302f09616aa974e774e4a6d0d7b038566b1b427ce63dada978b697a3', 'status': 2, 'en_algorithm': 0, 'en_password': '', 'is_ai': 0, 'ai_tag_list': [], 'ai_url': '', 'file_params': {}}], 'event_resources': [{'resource_type': 's3', 'file_id': 'b25fa394f94140e8b1d64097fe650d9e', 'type': 1, 'url': 'https://wyze-device-alarm-file.s3.us-west-2.amazonaws.com/2CAA8E2B8CAB/2021-09-23/2CAA8E2B8CAB011632406604_1632406604000_1_1_0/b25fa394f94140e8b1d64097fe650d9e.jpg?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJNFQFXEM46KZVY7A/20210923/us-west-2/s3/aws4_request&X-Amz-Date=20210923T145124Z&X-Amz-SignedHeaders=host&X-Amz-Signature=c2d022442033507f77c0d3eb138f820eecf99482918379efb669b1040680442f', 'status': 2, 'en_algorithm': 0, 'en_password': '', 'is_ai': 0, 'ai_tag_list': [], 'ai_url': '', 'file_params': {}}, {'resource_type': 's3', 'file_id': 'ea29c465558945a4bd7e72408966776c', 'type': 2, 'url': 'https://wyze-device-alarm-file.s3.us-west-2.amazonaws.com/2CAA8E2B8CAB/2021-09-23/2CAA8E2B8CAB011632406604_1632406604000_1_2_0/ea29c465558945a4bd7e72408966776c.mp4?X-Amz-Expires=1200&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJNFQFXEM46KZVY7A/20210923/us-west-2/s3/aws4_request&X-Amz-Date=20210923T145124Z&X-Amz-SignedHeaders=host&X-Amz-Signature=3a9d875e302f09616aa974e774e4a6d0d7b038566b1b427ce63dada978b697a3', 'status': 2, 'en_algorithm': 0, 'en_password': '', 'is_ai': 0, 'ai_tag_list': [], 'ai_url': '', 'file_params': {}}], 'event_params': {}, 'recognized_instance_list': [], 'tag_list': [], 'read_state': 0}]}}
2021-09-23 10:51:25 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-09-23 10:51:25 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/get_property_list
2021-09-23 10:51:25 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': 1632408685, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '08316950-9799-4d01-9cb5-d16c1c2c9a86', 'app_name': 'com.hualai.WyzeCam', 'device_model': 'WYZEC1-JZ', 'device_mac': '2CAA8E2B8CAB', 'target_pid_list': []}
2021-09-23 10:51:25 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-09-23 10:51:25 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-09-23 10:51:25 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1632408685249, 'code': '1', 'msg': '', 'data': {'property_list': [{'pid': 'P1', 'value': '0', 'ts': 1616240536141}, {'pid': 'P1001', 'value': '1', 'ts': 1631600428000}, {'pid': 'P1002', 'value': '1', 'ts': 1631600428000}, {'pid': 'P1003', 'value': '1', 'ts': 1631600428000}, {'pid': 'P1004', 'value': '1', 'ts': 1631600428000}, {'pid': 'P1005', 'value': '1', 'ts': 1631600428000}, {'pid': 'P1006', 'value': '0', 'ts': 1596077581000}, {'pid': 'P1007', 'value': '0', 'ts': 1631904722875}, {'pid': 'P1008', 'value': '0', 'ts': 0}, {'pid': 'P1010', 'value': '1', 'ts': 0}, {'pid': 'P1017', 'value': '0', 'ts': 1596077581000}, {'pid': 'P1018', 'value': '0', 'ts': 1601500801937}, {'pid': 'P1019', 'value': '0', 'ts': 1573154847356}, {'pid': 'P1020', 'value': '1', 'ts': 1616191609013}, {'pid': 'P1021', 'value': '0', 'ts': 1632408063000}, {'pid': 'P1022', 'value': '0', 'ts': 0}, {'pid': 'P1033', 'value': '0', 'ts': 1631600428000}, {'pid': 'P1047', 'value': '1', 'ts': 0}, {'pid': 'P1048', 'value': '1', 'ts': 0}, {'pid': 'P1701', 'value': '', 'ts': 0}, {'pid': 'P1702', 'value': '', 'ts': 0}, {'pid': 'P1703', 'value': '', 'ts': 0}, {'pid': 'P1704', 'value': '', 'ts': 0}, {'pid': 'P1705', 'value': '', 'ts': 0}, {'pid': 'P1706', 'value': '', 'ts': 0}, {'pid': 'P1707', 'value': '', 'ts': 0}, {'pid': 'P1708', 'value': '', 'ts': 0}, {'pid': 'P1709', 'value': '', 'ts': 0}, {'pid': 'P1710', 'value': '', 'ts': 0}, {'pid': 'P1711', 'value': '', 'ts': 0}, {'pid': 'P18', 'value': '1', 'ts': 1631600428000}, {'pid': 'P2', 'value': '0', 'ts': 1624583258682}, {'pid': 'P3', 'value': '1', 'ts': 1632408071000}, {'pid': 'P4', 'value': '1', 'ts': 0}, {'pid': 'P5', 'value': '1', 'ts': 1632068019445}]}}
Not OP, but I am having the exact same problem with my 2 Wyze white bulbs (that can change temps). I have them in a scene.morning and a scene.night. And every time the scene gets activated, the bulbs have 25% chance of working correctly. It will either:
If I reactivated the scene manually 2 or 3 times, then it will eventually have the correct brightness and temperature.
core-2021.9.7 supervisor-2021.09.0 Home Assistant OS 6.4 HA-WyzeAPI 2021.9.5
That is so strange... I will have to experiment with scenes
Come to think of it, I think I've seen that behavior where brightness or color_temp may be correct, but the other will be wrong.
I haven't used scenes a ton, but I've experienced lights failing to update when manually calling the service in developer tools or when adjusting the light with a UI card. Sometimes I'll move the slider and a second later it will jump partially back. For example, adjust 300 -> 200, and then it jumps to 220.
I wrote a script to fire the light.turn_on service a few times in a row with a short delay in between, and that is pretty successful at updating the lights like I want.
Yep, same here even without scenes. When I try to update the Wyze bulbs with the UI slider, it does jump back and forth like you said. Sometimes, it takes a few tries to get the correct temp and brightness to stick and appear correctly.
I also have this weird behavior where sometimes when I manually turn on the bulb, it will turn on but the toggle will immediately go to off (lights stay on though). And vice versa. Not sure if it's related. But Wyze bulbs has been very buggy in HA recently (it was very reliable a couple of months ago).
@teijiIshida it is likely because of the new rate limit. Wyze has been dropping our requests to their servers but we are working on a solution
Just a thought - if it were a rate limit issue, wouldn't spamming light.turn_on just make the problem worse? Perhaps I don't quite understand rate limiting. I've run into it with a few other services, where it says "you can only make X requests every Y minutes, and any requests after you hit the cap are ignored". Unless "Y" for Wyze is <1s?
Out of curiosity, how can Wyze tell the difference between my phone making a request and my HA server making the same request? From my uneducated point of view, it seems like you could exactly reproduce the request sent by the phone. Don't worry about it if it's a long answer.
@reidprichard My understanding is that they aren't rate limiting globally. Only some of the calls are being limited, so the turn on call for instance probably isn't being limited.
I'm sure what there's probably some difference in the headers that we're sending vs what the app is, or some of the parameters. Keep in mind this is all reverse engineered, so while the info that the community has created via reverse engineering is closed enough to work... It's probably easy to identify on the backend.
We're working on some stuff to address the rate limiting. However, what it's going to end up looking like will be that the integration will only be able to eat up about 75% of what we're to understand the limit to be. This may ultimately cause issues if you're using the official app and this integration from the same connection... But we'll see how that goes.
The other side effect is that our polling updates will not be 100% predicable intervals anymore. We're going to be aiming for idea intervals but with 1 request post second at most. So depending on where items are in the que, something could update right at 30 seconds or at 40 seconds.
@reidprichard
sorry, I didn't even address your log in my previous reply. I'm not seeing a problem in that log... you sent 8 commands, I can see all 8 going out with valid responses and you poll 8 times with results. I've been noticing some oddities in wyze's API today so I'm not really sure what they're doing behind the scenes lately.
I have the original "white-only" bulbs, but I was noticing similar behavior until the most recent update (2021.9.7). Now, my Plugs are doing this too (both versions), where their state doesn't update correctly...
Sorry, haven't had time for HA in the past few weeks. @yoinx, that's odd. I'm certain some of the bulbs failed to update. Is it possible the logs aren't capturing the issue for some reason? Is there any value in me providing additional logs? It may be awhile before I can do further testing, as my HA install has broken.
By some miracle I was able to fix my other issue, so I'm back in operation.
I took another log. This time, I kept watching the log for the next status update after I observed one bulb failing to update. I've broken the log down into relevant sections.
2021-10-16 21:07:34 DEBUG (MainThread) [custom_components.wyzeapi.light] Setting color temp
2021-10-16 21:07:34 DEBUG (MainThread) [custom_components.wyzeapi.light] Turning on light
2021-10-16 21:07:34 DEBUG (MainThread) [custom_components.wyzeapi.light] Setting color temp
2021-10-16 21:07:34 DEBUG (MainThread) [custom_components.wyzeapi.light] Turning on light
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-10-16 21:07:34 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': 1634432854, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '8f566df9-eae1-45fc-a5e9-9c027150b6ee', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P1502', 'pvalue': '6250'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E25CF8B'}
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1634432854675, 'code': '1', 'msg': '', 'data': {'session_id': 'f79e9bfb2b7b48f6b8661156f7f6272b', 'result': 2}}
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-10-16 21:07:34 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': 1634432854, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '8f566df9-eae1-45fc-a5e9-9c027150b6ee', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P3', 'pvalue': '1'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E2588E0'}
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1634432854795, 'code': '1', 'msg': '', 'data': {'session_id': '4da4abb4ef034e358fbdb72747ee42eb', 'result': 2}}
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-10-16 21:07:34 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': 1634432854, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '8f566df9-eae1-45fc-a5e9-9c027150b6ee', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P3', 'pvalue': '1'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E25CF8B'}
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1634432854857, 'code': '1', 'msg': '', 'data': {'session_id': '52babe900ffc4e5a890877438f3fd4ad', 'result': 2}}
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-10-16 21:07:34 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': 1634432854, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '8f566df9-eae1-45fc-a5e9-9c027150b6ee', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P1502', 'pvalue': '6250'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E2588E0'}
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-10-16 21:07:34 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1634432854850, 'code': '1', 'msg': '', 'data': {'session_id': 'c2ac61e8f5ce4c95b651401b29b727eb', 'result': 2}}
2021-10-16 21:07:37 DEBUG (MainThread) [custom_components.wyzeapi.light] Setting color temp
2021-10-16 21:07:37 DEBUG (MainThread) [custom_components.wyzeapi.light] Turning on light
2021-10-16 21:07:37 DEBUG (MainThread) [custom_components.wyzeapi.light] Setting color temp
2021-10-16 21:07:37 DEBUG (MainThread) [custom_components.wyzeapi.light] Turning on light
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-10-16 21:07:37 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': 1634432857, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '8f566df9-eae1-45fc-a5e9-9c027150b6ee', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P3', 'pvalue': '1'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E25CF8B'}
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1634432857596, 'code': '1', 'msg': '', 'data': {'session_id': '39c35887beae4863ba60069d33196567', 'result': 2}}
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-10-16 21:07:37 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': 1634432857, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '8f566df9-eae1-45fc-a5e9-9c027150b6ee', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P1502', 'pvalue': '2754'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E25CF8B'}
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1634432857454, 'code': '1', 'msg': '', 'data': {'session_id': '4c8a3d1712a44f668beeafe0d071b87b', 'result': 2}}
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-10-16 21:07:37 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': 1634432857, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '8f566df9-eae1-45fc-a5e9-9c027150b6ee', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P3', 'pvalue': '1'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E2588E0'}
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1634432857608, 'code': '1', 'msg': '', 'data': {'session_id': '5d89da889d594a0ba4d32639a48ae685', 'result': 2}}
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/set_property_list
2021-10-16 21:07:37 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': 1634432857, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '8f566df9-eae1-45fc-a5e9-9c027150b6ee', 'app_name': 'com.hualai.WyzeCam', 'property_list': [{'pid': 'P1502', 'pvalue': '2754'}], 'device_model': 'WLPA19', 'device_mac': '2CAA8E2588E0'}
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-10-16 21:07:37 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1634432857548, 'code': '1', 'msg': '', 'data': {'session_id': '86d6ed5573844616a820d3283896f84c', 'result': 2}}
2021-10-16 21:08:00 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-10-16 21:08:00 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/get_property_list
2021-10-16 21:08:00 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': 1634432879, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '8f566df9-eae1-45fc-a5e9-9c027150b6ee', 'app_name': 'com.hualai.WyzeCam', 'device_model': 'WLPA19', 'device_mac': '2CAA8E2588E0', 'target_pid_list': []}
2021-10-16 21:08:00 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-10-16 21:08:00 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-10-16 21:08:00 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1634432880033, 'code': '1', 'msg': '', 'data': {'property_list': [{'pid': 'P1', 'value': '1', 'ts': 0}, {'pid': 'P1501', 'value': '100', 'ts': 1634432482069}, {'pid': 'P1502', 'value': '6250', 'ts': 1634432856348}, {'pid': 'P1503', 'value': '0', 'ts': 1634422318385}, {'pid': 'P1504', 'value': '-54', 'ts': 1634432858823}, {'pid': 'P1505', 'value': '0', 'ts': 1634422318385}, {'pid': 'P1506', 'value': '0', 'ts': 1634422318385}, {'pid': 'P1509', 'value': '0', 'ts': 1634422318385}, {'pid': 'P1511', 'value': '', 'ts': 0}, {'pid': 'P1513', 'value': '0', 'ts': 0}, {'pid': 'P1514', 'value': '0', 'ts': 0}, {'pid': 'P1528', 'value': '0', 'ts': 0}, {'pid': 'P1529', 'value': '0', 'ts': 0}, {'pid': 'P1530', 'value': '0', 'ts': 0}, {'pid': 'P1531', 'value': '0', 'ts': 0}, {'pid': 'P3', 'value': '1', 'ts': 1634432858823}, {'pid': 'P5', 'value': '1', 'ts': 1634422317711}, {'pid': 'P7', 'value': '-4', 'ts': 1634422318385}]}}
2021-10-16 21:08:00 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Request:
2021-10-16 21:08:00 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] url: https://api.wyzecam.com/app/v2/device/get_property_list
2021-10-16 21:08:00 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': 1634432879, 'sv': '9d74946e652647e9b6c9d59326aef104', 'access_token': '**Sanitized**', 'phone_id': '8f566df9-eae1-45fc-a5e9-9c027150b6ee', 'app_name': 'com.hualai.WyzeCam', 'device_model': 'WLPA19', 'device_mac': '2CAA8E25CF8B', 'target_pid_list': []}
2021-10-16 21:08:00 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] headers: None
2021-10-16 21:08:00 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] data: None
2021-10-16 21:08:00 DEBUG (MainThread) [wyzeapy.wyze_auth_lib] Response Json: {'ts': 1634432880029, 'code': '1', 'msg': '', 'data': {'property_list': [{'pid': 'P1', 'value': '1', 'ts': 0}, {'pid': 'P1501', 'value': '100', 'ts': 1634432482003}, {'pid': 'P1502', 'value': '2754', 'ts': 1634432858750}, {'pid': 'P1503', 'value': '0', 'ts': 1634422317193}, {'pid': 'P1504', 'value': '-61', 'ts': 1634432858750}, {'pid': 'P1505', 'value': '0', 'ts': 1634422317193}, {'pid': 'P1506', 'value': '0', 'ts': 1634422317193}, {'pid': 'P1509', 'value': '0', 'ts': 1634422317193}, {'pid': 'P1511', 'value': '', 'ts': 0}, {'pid': 'P1513', 'value': '0', 'ts': 0}, {'pid': 'P1514', 'value': '0', 'ts': 0}, {'pid': 'P1528', 'value': '0', 'ts': 0}, {'pid': 'P1529', 'value': '0', 'ts': 0}, {'pid': 'P1530', 'value': '0', 'ts': 0}, {'pid': 'P1531', 'value': '0', 'ts': 0}, {'pid': 'P3', 'value': '1', 'ts': 1634432858750}, {'pid': 'P5', 'value': '1', 'ts': 1634422316347}, {'pid': 'P7', 'value': '-4', 'ts': 1634422317193}]}}
It seems like Wyze is only rate-limiting (or whatever is happening) commands to change brightness or color temp. Calling the light.turn_on service with no data always works. However, the second I specify brightness or color_temp it begins failing ~25% of the time. For now, I think I'll do some scripting to turn the lights on, wait a second, then spam several commands to change the brightness and color_temp to desired values.
Edit: Also, to help other people work around this - it seems like applying a scene in Home Assistant somewhat avoids this issue. Wonder if it repeats the command until it sees the state change as desired?
@yoinx I just realized something. Back when I used IFTTT, I never had issues with setting bulbs. There was a slight lag (I think just due to IFTTT's servers), but I never noticed a bulb failing to set. Does IFTTT have special access to Wyze or something? I wonder if this integration could copy whatever IFTTT is doing.
@yoinx I just realized something. Back when I used IFTTT, I never had issues with setting bulbs. There was a slight lag (I think just due to IFTTT's servers), but I never noticed a bulb failing to set. Does IFTTT have special access to Wyze or something? I wonder if this integration could copy whatever IFTTT is doing.
I have no idea if they do or not. However, unless you know of a way to legally MITM their servers... I doubt anyone is going to reverse engineer what they're doing.
@yoinx I just realized something. Back when I used IFTTT, I never had issues with setting bulbs. There was a slight lag (I think just due to IFTTT's servers), but I never noticed a bulb failing to set. Does IFTTT have special access to Wyze or something? I wonder if this integration could copy whatever IFTTT is doing.
This rate limiting has only been an issue recently. I'd bet that IFTTT is having the same problem unless they worked with Wyze to whitelist their IP from the rate limiting.
@1h8fulkat @reidprichard Wyze developed the IFTTT integration themselves so I imagine they have provided a special path for them to be able to access devices.
Hey, can someone test the latest stable release? It has some changes to the bulbs that might have resolved this issue
I just tested several routines by running them manually (turning on/off the bulbs, changing temperatures, changing brightness). They all work in one try! So far it seems like the new fix works. I'll get back to this thread in a week to further confirm if it works 100% of the time.
Edit: After 1 week of testing, I can confirm that my automations trigger correctly 100% of the time in one try with the new fix. Cheers!
Thanks @JoshuaMulliken
What timing! I just replaced all my Wyze bulbs because this was bugging me.
I screwed in one of my old Wyze bulbs, and it looks to be working perfect on my end. It failed to update roughly 10% of the time, but that might have been just because I was making changes faster than the bulb could keep up.
Thanks for your hard work @JoshuaMulliken !
Great! That sounds like good feedback! I will go ahead and close this issue. If any problems come up please report here
Describe the bug When I change brightness or color of my Tunable White Wyze Bulbs, they will often fail to respond. This is most notable in my group of eight bulbs - trying to control them almost always results in one or two bulbs failing to change color/brightness. Occasionally the errant bulb(s) will correct after a short lag, but often it will remain in its prior state indefinitely. I've restarted the bulbs, my router/modem, my Home Assistant server, and my Home Assistant host, and nothing seemed to improve this behavior. Curiously, there is never a problem turning the group on or off.
To Reproduce
Expected behavior The brightness or color of each bulb updates accordingly.
System configuration System: Home Assistant OS v4.20 HA Version: core-2021.9.0 WyzeApi Version: 2021.8.1
home-assistant.log