-
-
Notifications
You must be signed in to change notification settings - Fork 232
Closed as not planned
Labels
Description
Describe The Problem:
Im trying to setup HomeKit Security Video with my camera. Feed and snapshot works fine. Motion automation enabled and triggered with external sensor and tested manually by get url http://homebridgeip/motion?Door
. Response shows status ok and motion triggered - but nothing happens and I see error in logs.
To Reproduce:
Setup motion automation
Enable HKSV
Trigger motion sensor
Logs:
My mjpeg camera config where I've tried to enable/disbale prebuffer - both doesn't work.
[16/05/2025, 19:27:03] [PluginUpdate] [Door] Recording stream request received for stream ID: 2
[HDS ::ffff:192.168.1.51] Encountered unexpected error for recording stream 2: TypeError: Cannot read properties of undefined (reading 'length')
at CameraRecordingStream.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/camera/RecordingManagement.ts:1020:34)
at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:196:27)
at Object.next (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:177:57)
at fulfilled (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:167:62)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
[16/05/2025, 19:27:03] [PluginUpdate] [Door] Recording stream closed for stream ID: 2, reason: 5
Homebridge Config:
{
"name": "Door",
"motion": true,
"doorbell": true,
"motionTimeout": 5,
"videoConfig": {
"source": "-f mjpeg -i http://ip:9999/?action=stream",
"stillImageSource": "-i http://ip:9999/?action=snapshot",
"maxStreams": 8,
"forceMax": false,
"encoderOptions": "-preset veryfast -tune zerolatency",
"debug": true,
"recording": true,
"prebuffer": false
}
}
Environment:
- Node.js Version: v22.15.0
- Homebridge Version: v1.9.0
- Homebridge Camera FFmpeg Version: 4.0.1
- Homebridge Config UI X Plugin Version: v4.73.0
- Operating System: Raspbian
f-vt