Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record video #58

Open
remko2000 opened this issue May 1, 2020 · 0 comments
Open

Record video #58

remko2000 opened this issue May 1, 2020 · 0 comments

Comments

@remko2000
Copy link

remko2000 commented May 1, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant