homebridge-video-doorbell-rpi
Raspberry Pi video doorbell plugin for homebridge.
This plugin is based on homebridge-camera-rpi by moritzmhmk licensed under MIT license.
Prerequisite
- camera module activated (
raspi-config
) - module
bcm2835-v4l2
loaded (addbcm2835-v4l2
to/etc/modules
and reboot) - ffmpeg installed (
sudo apt install ffmpeg
you probably need to compile ffmpeg by yourself if it isn't available in the package manager)
Installation (as homebridge plugin)
npm install -g homebridge-video-doorbell-rpi
edit config.json
and add platform rpi-doorbell
restart homebridge
add extra camera accessory in the home app (the setup code is the same as for homebridge)
Installation (standalone)
optionally install in opt
:
cd /optsudo mkdir homebridge-video-doorbell-rpisudo chown pi homebridge-video-doorbell-rpi
install:
git clone https://github.com/Supereg/homebridge-video-doorbell-rpicd homebridge-video-doorbell-rpinpm install
test:
node standalone.js
optionally create systemd service /etc/systemd/system/hap-doorbell-rpi.service
:
[Unit]Description=HAP Video Doorbell RPi [Service]ExecStart=/usr/local/bin/node /opt/homebridge-video-doorbell-rpi/standalone.js -c /etc/homebridge-video-doorbell-rpi.conf.jsonWorkingDirectory=/opt/homebridge-video-doorbell-rpiRestart=alwaysRestartSec=10User=pi [Install]WantedBy=multi-user.target
create config file /etc/homebridge-video-doorbell-rpi.conf.json
:
id
is used to generate the uuid and defaults to name
when not defined
enable and start the service:
sudo systemctl enable hap-doorbell-rpisudo systemctl start hap-doorbell-rpi
Options
Note: rotate
currently only works for 0
and 180
degrees.