Homebridge

homebridge-rpi

  1. install with sudo npm -g i homebridge-rpi of from UI
  2. ensure this command works: rpi info
  3. allow remote connections in sudo raspi-config -> Interfacing Options -> Remote GPIO ()
  4. enable and start pigpiod: sudo systemctl enable pigpiod + sudo systemctl start pigpiod
  5. check that pigs hwver gives an output such as 9445664
  6. setup getState script: https://github.com/ebaauw/homebridge-rpi#install-getstate-script

homebridge-gpio-device

  1. install wiringpi: sudo apt-get install wiringpi or clone and ./build

UPS

Use a power bank between the charger and the power input of the Pi

Resources