Sunoo / homebridge-camera-ffmpeg

Homebridge Plugin Providing FFmpeg-based Camera Support
https://sunoo.github.io/homebridge-camera-ffmpeg/
Apache License 2.0
1.08k stars 225 forks source link

How to access V2 Cam motion sensor for Homekit automation #952

Closed HoTiCE2 closed 3 years ago

HoTiCE2 commented 3 years ago

Describe The Problem: I've just successfully flashed 4 x V2 Cams to the latest RTSP firmware 4.28.4.49 and everything works for streaming. I am however unable to access the motion sensor that is available in the Wyze native app. From reading online, it appears some are saying it should work.

I understand that we can create fake switches and motion sensors and tie them to a real sensor automation but I am trying to see if I can access the native motion sensor that is on the camera. Is this possible?

To Reproduce: Nothing to reproduce, the motion sensor is simply not available.

Logs: Even in debug mode, nothing occurs when there is motion in front of the camera

Homebridge Config:

"name": "Camera Driveway",
                    "manufacturer": "Wyze",
                    "model": "Cam V2",
                    "motion": true,
                    "switches": true,
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -i rtsp://username:password@1[IP address]/live",
                        "stillImageSource": "-rtsp_transport tcp -i rtsp://username:password@[IP address]/still_image.jpg",
                        "vcodec": "copy",
                        "audio": true
                    }

.

Screenshots:

Environment:

Sunoo commented 3 years ago

Here are the various ways to get motion sensor from the camera to trigger a motion sensor in HomeKit. https://sunoo.github.io/homebridge-camera-ffmpeg/automation/

I’m not sure what Wyze RTSP supports natively, but if you switch to Dafang there is plugin for getting the motion sensor info over MQTT and into HomeKit.

HoTiCE2 commented 3 years ago

Gotcha but those just generate a dummy motion sensor that you can trigger with a distinct real sensor. I assume there is no way then to get access to the native motion sensor in the Wyze Cam V2

Sunoo commented 3 years ago

If the RTSP firmware supports FTP uploads or SMTP emails, you can trigger motion that way. I’m not familiar with that firmware.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.