SecKatie / ha-wyzeapi

Home Assistant Integration for Wyze devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Switch for Cam Pan V3 Privacy Mode

spuggy1968 opened this issue · comments

Like the Motion Detection On/Off Switch, it would be nice if on a Pan V3 there was a On/Off switch to put the camera in Privacy Mode. This would allow you to have the camera in plain sight inside your house, but create and automation that when your home it goes to Privacy so people would see the camera is not staring at them :)

commented

@brg468 will be able to confirm, but based on similar discussions with them in the past I doubt this is doable. All of these special camera options (Motion tracking, reset pan, etc) unfortunately dont use the standard wyze api and would likely need to be an entirely different project.

(We can dream of a day where Wyze allows direct local control, or its time for someone to completely emulate the app)

The switch.[name].power entity does literally exactly what you're asking for...

I have 2 Pan v3's and a Cam v3 that automatically turn on/off notifications/power (privacy mode) on my phone's GPS leaving/coming home.

Livingroom / Bedroom camera are model HL_PAN3, Kitchen camera is WYZE_CAKP2JFUS (Cam v3, non-pro model)

The only annoyance I've come across is occasionally the Wyze app still thinks the cameras are in privacy mode (never happened to more than 1 camera at a time, for whatever reason) when it opens up sometimes, but rarely. They'll be functioning as expected (motion detection/app notifications & recording to SD all working) but the live camera view shows it as in privacy mode for some reason. The fix is to hit the privacy mode toggle like you normally would to wake it up, and it'll load the video stream at that point. I'm thinking it's an app desync issue not querying the camera's privacy mode when it opens up and assuming it's last known state is still correct.

Here's my 2 automations, that work as of Wyze integration ver 0.1.27 // HA Core 2024.6.4 // HAOS 12.4

I had to duplicate the "on" functions when I'm leaving because for whatever reason, without them duplicated it would fail to activate a random camera (either notifications, or waking up from privacy mode...never both on the same camera, though.) every once in a very random while - duplicating it fixed it entirely for months now. All 3 cameras always come awake from privacy mode and notifications turn on as expected after duplicating the "on" part.

alias: S20 comes home
description: ""
trigger:
  - platform: device
    device_id: d6148ed9db82be219a90e96eef4612ee
    domain: device_tracker
    entity_id: 6d7ba0c4a0085a9fcb8939d84a646171
    type: enters
    zone: zone.home_2
condition: []
action:
  - device_id: d6148ed9db82be219a90e96eef4612ee
    domain: mobile_app
    type: notify
    message: Returning
    title: Entering GPS home
  - service: switch.turn_off
    target:
      entity_id:
        - switch.kitchen_cam_power
        - switch.kitchen_cam_notifications
        - switch.bedroom_cam_power
        - switch.bedroom_cam_notifications
        - switch.living_room_cam_notifications
        - switch.living_room_cam_power
    data: {}
alias: S20 leaves home
description: ""
trigger:
  - platform: device
    device_id: d6148ed9db82be219a90e96eef4612ee
    domain: device_tracker
    entity_id: 6d7ba0c4a0085a9fcb8939d84a646171
    type: leaves
    zone: zone.home_2
condition:
  - condition: and
    conditions:
      - condition: device
        device_id: d6148ed9db82be219a90e96eef4612ee
        domain: device_tracker
        entity_id: 6d7ba0c4a0085a9fcb8939d84a646171
        type: is_not_home
    enabled: false
action:
  - service: light.turn_off
    data: {}
    target:
      entity_id: light.all_lights
  - service: switch.turn_on
    target:
      entity_id:
        - switch.kitchen_cam_power
        - switch.kitchen_cam_notifications
        - switch.bedroom_cam_power
        - switch.bedroom_cam_notifications
        - switch.living_room_cam_notifications
        - switch.living_room_cam_power
    data: {}
  - delay:
      hours: 0
      minutes: 0
      seconds: 3
      milliseconds: 0
  - service: switch.turn_on
    target:
      entity_id:
        - switch.kitchen_cam_power
        - switch.kitchen_cam_notifications
        - switch.bedroom_cam_power
        - switch.bedroom_cam_notifications
        - switch.living_room_cam_notifications
        - switch.living_room_cam_power
    data: {}
  - device_id: d6148ed9db82be219a90e96eef4612ee
    domain: mobile_app
    type: notify
    message: Leaving
    title: Leaving GPS home
mode: single

Thanks @Kirby207, I agree that the power switch is already able to accomplish this. As far as I can tell pushing privacy mode or the power button in the app do the same thing. Closing this as complete.