SecKatie / ha-wyzeapi

Home Assistant Integration for Wyze devices.
746 stars 114 forks source link

[Bug] Floodlight Pro Power and Notification toggle not functioning #572

Closed paulcusick3 closed 4 months ago

paulcusick3 commented 5 months ago

Describe the bug Flood light pro on 2.2.1.135 the notification toggle will not function. All others are working, v2, v3, Doorbell Pro

To Reproduce Steps to reproduce the behavior: Toggle in home assistant, does not toggle in Wyze App. Toggle in Wyze App does not toggle in home assitant

Expected behavior Notification on / off

System configuration System: Hass.io odroid-n2 HA Version: Core 2024.4.3 Supervisor 2024.04.0 Operating System 12.2 Frontend 20240404.2 WyzeApi Version:

home-assistant.log

2024-04-23 11:31:07.023 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [281472625866944] {'code': '3005', 'ts': 1713886266980, 'msg': 'unauthorized operation', 'data': {}, 'traceId': 'f33212909cc00059351ee9552dd8078d'}
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2543, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2580, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 971, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1043, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/wyzeapi/token_manager.py", line 45, in inner_function
    await func(*args, **kwargs)
  File "/config/custom_components/wyzeapi/switch.py", line 202, in async_turn_off
    await self._service.turn_off(self._device)
  File "/usr/local/lib/python3.12/site-packages/wyzeapy/services/camera_service.py", line 108, in turn_off
    await self._run_action(camera, "power_off")
  File "/usr/local/lib/python3.12/site-packages/wyzeapy/services/base_service.py", line 328, in _run_action
    check_for_errors_standard(response_json)
  File "/usr/local/lib/python3.12/site-packages/wyzeapy/utils.py", line 84, in check_for_errors_standard
    raise UnknownApiError(response_json)
wyzeapy.exceptions.UnknownApiError: {'code': '3005', 'ts': 1713886266980, 'msg': 'unauthorized operation', 'data': {}, 'traceId': 'f33212909cc00059351ee9552dd8078d'}
github-actions[bot] commented 4 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 4 months ago

This issue was closed because it has been stalled for 5 days with no activity.