├── .github └── ISSUE_TEMPLATE │ └── bug_report.md ├── .gitignore ├── .npmignore ├── .npmrc ├── .travis.yml ├── LICENSE ├── README.md ├── config.schema.json ├── eslint.config.json ├── jest.config.js ├── nodemon.json ├── package.json ├── requirements.txt ├── resources └── images │ ├── readme │ ├── anonymous_snapshot.jpg │ ├── camera.jpeg │ ├── camera2.jpeg │ ├── cloudkey-gen2plus.jpg │ ├── enable_rtsp.jpg │ └── hoobs-install.jpg │ └── test.jpg ├── scripts └── postinstall.js ├── src ├── characteristics │ ├── unifi-camera-accessory-info.ts │ ├── unifi-camera-doorbell.ts │ └── unifi-camera-motion-sensor.ts ├── index.ts ├── integration-tests │ └── detection-integration-test.ts ├── motion │ ├── detector │ │ ├── detector.py │ │ └── yolov5s.pt │ └── motion.ts ├── settings.ts ├── streaming │ ├── camera-config.ts │ ├── ffmpeg │ │ ├── protect-ffmpeg-codecs.ts │ │ ├── protect-ffmpeg-exec.ts │ │ ├── protect-ffmpeg-options.ts │ │ ├── protect-ffmpeg-record.ts │ │ ├── protect-ffmpeg-stream.ts │ │ └── protect-ffmpeg.ts │ ├── recording-delegate.ts │ ├── streaming-delegate.ts │ ├── unifi-camera-live.ts │ ├── unifi-camera-recording.ts │ └── unifi-camera-streaming.ts ├── unifi-protect-motion-platform.ts ├── unifi │ ├── unifi.test.ts │ └── unifi.ts └── utils │ ├── google-photos.ts │ ├── image-utils.ts │ ├── mqtt.ts │ ├── utils.test.ts │ └── utils.ts └── tsconfig.json /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/.npmignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | foreground-scripts: true 2 | loglevel: "verbose" 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/README.md -------------------------------------------------------------------------------- /config.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/config.schema.json -------------------------------------------------------------------------------- /eslint.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/eslint.config.json -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/jest.config.js -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/package.json -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/requirements.txt -------------------------------------------------------------------------------- /resources/images/readme/anonymous_snapshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/resources/images/readme/anonymous_snapshot.jpg -------------------------------------------------------------------------------- /resources/images/readme/camera.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/resources/images/readme/camera.jpeg -------------------------------------------------------------------------------- /resources/images/readme/camera2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/resources/images/readme/camera2.jpeg -------------------------------------------------------------------------------- /resources/images/readme/cloudkey-gen2plus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/resources/images/readme/cloudkey-gen2plus.jpg -------------------------------------------------------------------------------- /resources/images/readme/enable_rtsp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/resources/images/readme/enable_rtsp.jpg -------------------------------------------------------------------------------- /resources/images/readme/hoobs-install.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/resources/images/readme/hoobs-install.jpg -------------------------------------------------------------------------------- /resources/images/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/resources/images/test.jpg -------------------------------------------------------------------------------- /scripts/postinstall.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/scripts/postinstall.js -------------------------------------------------------------------------------- /src/characteristics/unifi-camera-accessory-info.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/characteristics/unifi-camera-accessory-info.ts -------------------------------------------------------------------------------- /src/characteristics/unifi-camera-doorbell.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/characteristics/unifi-camera-doorbell.ts -------------------------------------------------------------------------------- /src/characteristics/unifi-camera-motion-sensor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/characteristics/unifi-camera-motion-sensor.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/integration-tests/detection-integration-test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/integration-tests/detection-integration-test.ts -------------------------------------------------------------------------------- /src/motion/detector/detector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/motion/detector/detector.py -------------------------------------------------------------------------------- /src/motion/detector/yolov5s.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/motion/detector/yolov5s.pt -------------------------------------------------------------------------------- /src/motion/motion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/motion/motion.ts -------------------------------------------------------------------------------- /src/settings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/settings.ts -------------------------------------------------------------------------------- /src/streaming/camera-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/streaming/camera-config.ts -------------------------------------------------------------------------------- /src/streaming/ffmpeg/protect-ffmpeg-codecs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/streaming/ffmpeg/protect-ffmpeg-codecs.ts -------------------------------------------------------------------------------- /src/streaming/ffmpeg/protect-ffmpeg-exec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/streaming/ffmpeg/protect-ffmpeg-exec.ts -------------------------------------------------------------------------------- /src/streaming/ffmpeg/protect-ffmpeg-options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/streaming/ffmpeg/protect-ffmpeg-options.ts -------------------------------------------------------------------------------- /src/streaming/ffmpeg/protect-ffmpeg-record.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/streaming/ffmpeg/protect-ffmpeg-record.ts -------------------------------------------------------------------------------- /src/streaming/ffmpeg/protect-ffmpeg-stream.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/streaming/ffmpeg/protect-ffmpeg-stream.ts -------------------------------------------------------------------------------- /src/streaming/ffmpeg/protect-ffmpeg.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/streaming/ffmpeg/protect-ffmpeg.ts -------------------------------------------------------------------------------- /src/streaming/recording-delegate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/streaming/recording-delegate.ts -------------------------------------------------------------------------------- /src/streaming/streaming-delegate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/streaming/streaming-delegate.ts -------------------------------------------------------------------------------- /src/streaming/unifi-camera-live.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/streaming/unifi-camera-live.ts -------------------------------------------------------------------------------- /src/streaming/unifi-camera-recording.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/streaming/unifi-camera-recording.ts -------------------------------------------------------------------------------- /src/streaming/unifi-camera-streaming.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/streaming/unifi-camera-streaming.ts -------------------------------------------------------------------------------- /src/unifi-protect-motion-platform.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/unifi-protect-motion-platform.ts -------------------------------------------------------------------------------- /src/unifi/unifi.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/unifi/unifi.test.ts -------------------------------------------------------------------------------- /src/unifi/unifi.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/unifi/unifi.ts -------------------------------------------------------------------------------- /src/utils/google-photos.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/utils/google-photos.ts -------------------------------------------------------------------------------- /src/utils/image-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/utils/image-utils.ts -------------------------------------------------------------------------------- /src/utils/mqtt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/utils/mqtt.ts -------------------------------------------------------------------------------- /src/utils/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/utils/utils.test.ts -------------------------------------------------------------------------------- /src/utils/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/src/utils/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beele/homebridge-unifi-protect-camera-motion/HEAD/tsconfig.json --------------------------------------------------------------------------------