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

[BUG] - Multiple camera fail with HAP error, hard crash of homebridge #43

Open
kaicherry opened this issue Nov 28, 2019 · 0 comments
Open

Comments

@kaicherry
Copy link

kaicherry commented Nov 28, 2019

Describe the bug
Adding multiple cameras to the config cause homebridge to crah; the HAP subsystem reports the error that two devices cannot have the same "id"

Expected behavior
Multiple (2 in this instance) cameras working

Config
... {
"platform": "Dafang",
"mqtt": {
"hostBroker": false,
"port": 1883,
"host": "localhost",
"debug": true,
"mongoUrl": "mongodb://localhost:27017/mqtt"
},
"cameras": [
{
"cameraName": "TRAK-R",
"videoConfig": {
"source": "-rtsp_transport tcp -i rtsp://192.168.87.69:8554/unicast",
"stillImageSource": "-rtsp_transport tcp -i rtsp://192.168.87.69:8554/unicast",
"vcodec": "copy",
"videoFilter": "none",
"maxFPS": 20,
"maxStreams": 4,
"maxBitrate": 284,
"debug": true,
"audio": false
},
"cameraRTSPStreamUrl": "rtsp://192.168.87.69:8554/unicast",
"mqttTopic": "hiddensprings/trakr/#",
"folder": "/root/Videos/",
"accessories": [
{
"name": "TRAK-R Sensor",
"type": "richMotionSensor",
"threshold": 300000
},
{
"name": "TRAK-R NV Sensor",
"type": "nightVisionSensor",
"threshold": 0
},
{
"name": "TRAK-R NV",
"type": "nightVisionSwitch"
},
{
"name": "TRAK-R Video",
"type": "recordVideo"
},
{
"name": "TRAK-R Audio",
"type": "recordAudio"
},
{
"name": "TRAK-R Image",
"type": "captureImage"
},
{
"name": "E14 Storage Sensor",
"type": "storageSensor"
},
{
"name": "E14 Clear Storage Switch",
"type": "clearStorage"
},
{
"name": "TRAK-R Reset",
"type": "resetFFMPEG"
},
{
"name": "TRAK-R Brightness",
"type": "brightness"
}
]
},
{
"cameraName": "WACH-R",
"videoConfig": {
"source": "-rtsp_transport tcp -i rtsp://192.168.87.248:8554/unicast",
"stillImageSource": "-rtsp_transport tcp -i rtsp://192.168.87.248:8554/unicast",
"vcodec": "copy",
"videoFilter": "none",
"maxFPS": 20,
"maxStreams": 4,
"maxBitrate": 284,
"debug": true,
"audio": false
},
"cameraRTSPStreamUrl": "rtsp://192.168.87.248:8554/unicast",
"mqttTopic": "hiddensprings/wachr/#",
"folder": "/root/Videos/",
"accessories": [
{
"name": "WACH-R Sensor",
"type": "richMotionSensor",
"threshold": 300000
},
{
"name": "WACH-R NV Sensor",
"type": "nightVisionSensor",
"threshold": 0
},
{
"name": "WACH-R NV",
"type": "nightVisionSwitch"
},
{
"name": "WACH-R Video",
"type": "recordVideo"
},
{
"name": "WACH-R Audio",
"type": "recordAudio"
},
{
"name": "WACH-R Image",
"type": "captureImage"
},
{
"name": "E14 Storage Sensor",
"type": "storageSensor"
},
{
"name": "E14 Clear Storage Switch",
"type": "clearStorage"
},
{
"name": "WACH-R Reset",
"type": "resetFFMPEG"
},
{
"name": "WACH-R Brightness",
"type": "brightness"
}
]
}
]
} ...

Logs
See Description

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: 13.x
  • Node Version v12.13.1

Additional context
Clearing cases, etc does not prevent or fix the issue.

Steps to Reproduce:

  • Add additional camera to the array
  • Start 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