Homebridge
homebridge-rpi
- install with
sudo npm -g i homebridge-rpiof from UI - ensure this command works:
rpi info - allow remote connections in
sudo raspi-config-> Interfacing Options -> Remote GPIO () - enable and start pigpiod:
sudo systemctl enable pigpiod+sudo systemctl start pigpiod - check that
pigs hwvergives an output such as9445664 - setup
getStatescript: https://github.com/ebaauw/homebridge-rpi#install-getstate-script
homebridge-gpio-device
- install wiringpi:
sudo apt-get install wiringpior clone and./build
UPS
Use a power bank between the charger and the power input of the Pi