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

Record video #58

Open remko2000 opened 4 years ago

remko2000 commented 4 years ago

I istalled this plugin and I get my dafang in homebridge. But I experienced some problems. I don't get audio (if I turn cameraaudio on in homebridge I get ffmpeg exitcode 1). I also want tohave a option to record video. This is the relevant piece of my json:

{ "platform": "Dafang", "mqtt": { "hostBroker": false, "port": 1883, "host": false, "debug": true }, "cameras": [ { "cameraName": "Garagecam", "cameraRTSPStreamUrl": "rtsp://xx.x.x.xx:8554/unicast", "mqttTopic": "schoenmakersloot/dafang/#", "folder": "/home/pi/dafang/recordings/", "accessories": [ { "name": "Record Video", "type": "recordVideo" }

The camera appears in homekit but no recordbutton. I also get an error in homebridge:

[5/1/2020, 16:55:18] Loading 2 platforms... [5/1/2020, 16:55:18] [Config] Initializing config platform... [5/1/2020, 16:55:18] [Config] Running in Service Mode [5/1/2020, 16:55:18] [Dafang] Initializing Dafang platform... [5/1/2020, 16:55:18] [Dafang] MQTT Client connecting to localhost : 1883 [5/1/2020, 16:55:18] [Dafang] MQTT Service Initialised [5/1/2020, 16:55:18] [Dafang] Subscribing to Channel schoenmakersloot/dafang/# [5/1/2020, 16:55:18] [Dafang] Configuring Dafang Accessory : Record Video Switch [5/1/2020, 16:55:18] One of your plugins incorrectly registered an external accessory using the platform name (Dafang) and not the plugin identifier. Please report this to the developer! [5/1/2020, 16:55:18] Garagecam is running on port 33645. [5/1/2020, 16:55:18] Please add [Garagecam] manually in Home app. Setup Code: xxx-xx-xxx [5/1/2020, 16:55:18] Initializing platform accessory 'Record Video'...

I do get a recordswitch in Homebridge Config UI X and it records when I activate it but no switch in homekit (no audio). How can I solve this error and how do I add audio to my camera? My camera is a Xiaomi Xiaofang 1S. I already delete persist and accessoiresfolder in homebridge.