About
This project contains two related elements. Really, these two elements should be pulled into separate repos, but this is just a weekend hobby project... so, you know, convenience and what-not.
door-server.py
this is the server that runs locally on the raspberry pi in order to monitor the status of the connected automation hat and the doorbell itself. This should be installed and run on the raspberyy pi itself.- (everything else) is the homebridge plugin to enable communication between the doorbell accessory and the homebridge
Note that because this has local dependencies and isn't intended to be published as a true homebridge-plugin, it must be installed at a particular directory: ~/doorbell/
Administration on the Raspberry Pi
To SSH:
- Make sure the Raspberry Pi is running
- Run
ssh pi@raspberrypi.local
in a terminal window - Enter the password for the Raspberry Pi
Homebridge config on the Raspberry Pi is configured here
~/.homebridge/config.json
To shutdown run: sudo shutdown -h now
To run the plugin locally on the raspberry pi (instead of from npm):
DEBUG=* /usr/bin/homebridge -D -P doorbell/
Some helpful articles:
Debugging
Hardcoded filepaths exist in /src/doorbell-interface.ts
. These are obviously fragile.