mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.66k stars 169 forks source link

BUG: Turning off a camera's notifications doesn't actually turn them off. #1313

Open rozza-m opened 3 months ago

rozza-m commented 3 months ago

Describe the bug

Using home assistant to turn off notifications for a camera does not actually turn them off. After turning it off in HA, the toggle shows as off inside the Wyze app but notifications still happen until the toggle is turned on and off again in the Wyze app. I don't know if this is something that can be fixed (perhaps the API has a separate state for the UI and the behaviour itself?) or if it's a bug at Wyze's end.

Affected Bridge Version

v2.9.12

Bridge type

Home Assistant

Affected Camera(s)

V4

Affected Camera Firmware

4.52.7.0367

docker-compose or config (if applicable)

No response

mrlt8 commented 3 months ago

hmm, could be a wyze issue?

We're setting P1 to adjust the notifications, but they may be setting another value for the v4? Could you try accessing this api endpoint on your bridge before and after toggling the notification option in the wyze app to see if another P value is changing?

http://<bridge-ip>:5000/api/<cam-name>/device_info
rozza-m commented 3 months ago

Ok so with my camera called "Garden Cam", it seems like switching "switch.garden_cam_notifications" does work. But switching "switch.wyze_cam_garden_cam_notifications" doesn't work (P1 changes to 2 which seems to show as Off in the app but allows notifications).

image

What's the purpose in those "Diagnostic" switches?

mrlt8 commented 3 months ago

hmm, I'm not actually sure why you have the power/motion/notification switches listed twice.. Motion and Notifications should be listed once under Diagnostic - reason being that they were more advanced features that may not be used as often as the other toggles.

I'll try digging around the wyze app to see if they're using another api endpoint to toggle the notifications on the latest app update.

rozza-m commented 3 months ago

How weird. All of my cameras have these twice, and the top one changes P1 to 1 (and back to 0) while the bottom one has the additional "wyze_cam" in the name and switches it to 2 (and back to 0).

rozza-m commented 2 months ago

Closing this, don't know why these additional sensors exist but note for anyone reading this: don't use the switches with the additional "wyze_cam" in the name.

rozza-m commented 1 week ago

With a new install (but the same cameras) I'm still getting this issue, but now I don't have the non-diagnostic switch.

image

image

rozza-m commented 1 week ago

I'm not that familiar with how HA works with MQTT but I think this is the setup topic? If so this could be the problem?

image

However, manually sending "0" to wyzebridge/garden-cam/notifications/set doesn't stick, only 1 and 2 actually cause P1 and wyzebridge/garden-cam/notifications to change

rozza-m commented 2 days ago

@mrlt8 any thoughts on this? I have an automation to turn notifications on when I leave the house, currently I don't have a way to do it without manually opening the wyze app 😞