homebridge-dahua-alerts
Version:
Routes motion alerts for Dahua, Alhua and Lorex camera streams to `homebridge-camera-ffmpeg`
199 lines • 8.18 kB
JSON
{
"pluginAlias": "dahua-alerts",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Motion alerts for dahua and lorex camera streams in `homebridge-camera-ffmpeg`.<br/>[Buy me a ☕coffee☕](https://www.buymeacoffee.com/kusha)",
"footerDisplay": "Alerts not working? Raise an [Issue](https://github.com/kushagharahi/homebridge-dahua-alerts/issues)!<br />[⭐Star⭐ Project on GitHub](https://github.com/kushagharahi/homebridge-dahua-alerts/stargazers)",
"schema": {
"type": "object",
"properties": {
"host": {
"title": "host",
"type": "string",
"required": false,
"placeholder": "127.0.0.1",
"description": "Host of your Dahua NVR - Required if not overritten in camera(s)"
},
"user": {
"title": "user",
"type": "string",
"required": false,
"placeholder": "admin",
"description": "Username of your Dahua NVR - Required if not overritten in camera(s)"
},
"pass": {
"title": "pass",
"type": "string",
"required": false,
"placeholder": "000000",
"description": "Password of your Dahua NVR - Required if not overritten in camera(s)"
},
"homebridgeCameraFfmpegHttpPort": {
"title": "homebridge-camera-ffmpeg HTTP port",
"type": "number",
"required": true,
"placeholder": "8080",
"description": "homebridge-camera-ffmpeg HTTP port to accept motion notifications"
},
"useHttp": {
"title": "Use Http",
"type": "boolean",
"required": false,
"description": "Use HTTP instead of HTTPs by default."
},
"eventTypes": {
"title": "Event Types",
"type": "object",
"required": true,
"properties": {
"VideoMotion": {
"title": "Video Motion",
"type": "boolean",
"default": true,
"description": "Notify on motion detection events",
"required": false
},
"AlarmLocal": {
"title": "Alarm",
"type": "boolean",
"description": "Notify on alarm detection events",
"required": false
},
"SmartMotionHuman": {
"title": "Smart Motion (Human)",
"type": "boolean",
"description": "Notify on smart motion detection (human) events",
"required": false
},
"SmartMotionVehicle": {
"title": "Smart Motion (Vehicle)",
"type": "boolean",
"description": "Notify on smart motion detection (vehicle) events",
"required": false
},
"CrossLineDetection": {
"title": "Cross Line Detection",
"type": "boolean",
"description": "Notify on tripwire events",
"required": false
},
"CrossRegionDetection": {
"title": "Cross Region Detection",
"type": "boolean",
"description": "Notify on intrusion events",
"required": false
}
}
},
"cameras": {
"title": "Cameras",
"type": "array",
"required": true,
"minLength": 1,
"items": {
"title": "Camera",
"type": "object",
"properties": {
"index": {
"title": "Camera Index",
"type": "number",
"required": true,
"placeholder":"0",
"description": "Index of your camera. From the camera stream you take X from CAM X and subtract 1. So for CAM 1, the index would be 0"
},
"cameraName": {
"title": "Camera Name",
"type": "string",
"required": true,
"description": "Camera name you set in homebridge-camera-ffmpeg"
},
"cameraCredentials": {
"title": "Override Camera Connection Credentials<br />Required if using a standalone camera (without NVR) and/or on a different host/user/pass than the ones (un)defined at the top level",
"type": "object",
"required": false,
"properties": {
"host": {
"title": "host",
"type": "string",
"required": false,
"placeholder": "127.0.0.1",
"description": "Host of your Dahua camera"
},
"user": {
"title": "user",
"type": "string",
"required": false,
"placeholder": "admin",
"description": "Username of your Dahua camera"
},
"pass": {
"title": "pass",
"type": "string",
"required": false,
"placeholder": "000000",
"description": "Password of your Dahua camera"
},
"useHttp": {
"title": "Use Http",
"type": "boolean",
"required": false,
"description": "Use HTTP instead of HTTPs by default."
}
}
}
}
}
}
}
},
"layout":[
{
"key": "host"
},
{
"key": "user"
},
{
"key": "pass"
},
{
"key": "homebridgeCameraFfmpegHttpPort"
},
{
"key": "useHttp"
},
{
"key": "eventTypes",
"type": "section",
"expandable": true,
"expanded": false,
"items":[
"eventTypes.VideoMotion",
"eventTypes.AlarmLocal",
"eventTypes.SmartMotionHuman",
"eventTypes.SmartMotionVehicle",
"eventTypes.CrossLineDetection",
"eventTypes.CrossRegionDetection"
]
},
{
"key": "cameras",
"items": [
"cameras[].index",
"cameras[].cameraName",
{
"key": "cameras[].cameraCredentials",
"type": "section",
"expandable": true,
"expanded": false,
"items":[
"cameras[].cameraCredentials.host",
"cameras[].cameraCredentials.user",
"cameras[].cameraCredentials.pass",
"cameras[].cameraCredentials.useHttp"
]
}
]
}
]
}