Here are the details of how I have this working:
This is all assuming you're using the friendly web interface to configure your Homebridge server. This can all be done with config.json, but it's less friendly.
In Homebridge configuration for Homebridge Camera FFmpeg:
Camera video source as (replace LOGIN, PASSWORD, HOSTNAME, PORT, and CAMERA as configured in SecuritySpy - update width and height to match your camera's resolution):
- Code: Select all
-re -i http://LOGIN:PASSWORD@HOSTNAME:PORT/++video?cameraNum=CAMERA&width=2560&height=1440
Still image source as (replace LOGIN, PASSWORD, HOSTNAME, PORT, and CAMERA as configured in SecuritySpy - update width and height to match your camera's resolution):
- Code: Select all
-i http://LOGIN:PASSWORD@HOSTNAME:PORT/++image?cameraNum=CAMERA&width=2560&height=1440
Check Enable Motion Sensor and/or Enable Doorbell under Automation.
Under Global Automation, choose any unused HTTP Port under HTTP Server.
Save the configuration and restart your Homebridge server.
In SecuritySpy, camera configuration, Actions, create a script to run when motion is detected. The script should be (replace HOSTNAME with the hostname of your Homebridge server, PORT with the HTTP Port you chose above, and CAMERANAME with the name of the camera you chose when you configured it in Homebridge, replacing any spaces with %20 [url encoding]):
- Code: Select all
do shell script "/usr/bin/curl -s http://HOSTNAME:PORT/doorbell?CAMERANAME"
You can replace "doorbell" with "motion" to indicate motion instead of a doorbell.
You can now get notifcations on your Macs, iOS devices, Apple TVs, Apple Watches, and Homepods (which chime when there is a doorbell notification.) They will all be turned on by default on Homekit. You have to turn the notifications off individually for each device where you don't want them.
-Mike