sahilchaddha / homebridge-dafang

Homebridge Plugin for Xiaomi Dafang / Wyze Cam IP Camera => Hey Siri, Start Video Recording
MIT License
204 stars 34 forks source link

No second camera controls #49

Closed Boniata closed 4 years ago

Boniata commented 4 years ago

Hi, I have two Xiaomi Dafang with the hack and working perfectly in my homebridge/home app except for the fact that i can´t control the second one, the control accesories doesn't appear in my home app. i have the same configuration in my config.json (with different names) i have tried to reset accesories with no result. What am i doing wrong? This is my code: "cameras": [ { "cameraName": "Camara Salon", "cameraRTSPStreamUrl": "rtsp://root:ismart12@xxx.xxx.x.xx:8554/unicast", "mqttTopic": "myhome/Camara1/#", "disableStream": false, "folder": "/Users/sahilchaddha/Sahil/Recordings/", "segmentLength": 60, "maxDirSize": 2048, "checkStorageSizeInterval": 300, "recordingDirectoryPathFormat": "MMM-D-YY", "recordingFilenameFormat": "M_DYYYY h_mm_ss_a", "accessories": [ { "name": "Salon Motion Sensor", "type": "richMotionSensor", "threshold": 300000 }, { "name": "Motion Detection Switch", "type": "motionDetection" }, { "name": "Horizontal Left", "type": "moveCamera", "axis": "horizontal", "direction": "left" }, { "name": "Horizontal Right", "type": "moveCamera", "axis": "horizontal", "direction": "right" }, { "name": "Vertical Up", "type": "moveCamera", "axis": "vertical", "direction": "up" }, { "name": "Vertical Down", "type": "moveCamera", "axis": "vertical", "direction": "down" }, { "name": "Reset Streaming", "type": "resetFFMPEG" } ], "videoConfig": { "source": "-rtsp_transport tcp -i rtsp://root:ismart12@xxx.xxx.x.xx:8554/unicast", "stillImageSource": "-rtsp_transport http -i rtsp://xxx.xxx.x.xx:8554/unicast -vframes 1 -r 1", "maxStreams": 5, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 25, "vcodec": "h264_omx", "debug": true, "audio": "2way -f alsa default" } }, { "cameraName": "Camara Habitacion", "cameraRTSPStreamUrl": "rtsp://root:ismart12@xxx.xxx.x.xx:8554/unicast", "mqttTopic": "myhome/Camara2/#", "disableStream": false, "folder": "/Users/sahilchaddha/Sahil/Recordings/", "segmentLength": 60, "maxDirSize": 2048, "checkStorageSizeInterval": 300, "recordingDirectoryPathFormat": "MMM-D-YY", "recordingFilenameFormat": "M_DYYYY h_mm_ss_a", "accessories": [ { "name": "Habitacion Motion Sensor", "type": "richMotionSensor", "threshold": 300000 }, { "name": "Motion Detection Switch", "type": "motionDetection" }, { "name": "Habitacion Left", "type": "moveCamera", "axis": "horizontal", "direction": "left" }, { "name": "Habitacion Right", "type": "moveCamera", "axis": "horizontal", "direction": "right" }, { "name": "Habitacion Up", "type": "moveCamera", "axis": "vertical", "direction": "up" }, { "name": "Habitacion Down", "type": "moveCamera", "axis": "vertical", "direction": "down" } ], "videoConfig": { "source": "-rtsp_transport tcp -i rtsp://root:ismart12@xxx.xxx.x.xx:8554/unicast", "stillImageSource": "-rtsp_transport http -i rtsp://xxx.xxx.x.xx:8554/unicast -vframes 1 -r 1", "maxStreams": 5, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 25, "vcodec": "h264_omx", "debug": true, "audio": true } } ] },

Thanks for helping me

Boniata commented 4 years ago

i have just solved by myself... i have change the name for the second accessory "Motion Detection Switch" because had the same for the first camera and everything appears. Sorry and thanks anyway!