Controls 4 channel relays with a Raspberry Pi using HomeKit.
The hardware is quite simple to construct.
- Raspberry Pi 3 Model B
- 4-relay module pins are connected to 4 GPIO pins (GPIO-17, 27, 22, 05).
The raspberry pi can then control the state of the relays
- Install homebridge using:
sudo npm install --unsafe-perm -g homebridge
- Install this plugin using:
sudo npm install -g --unsafe-perm homebridge-relays
- Update your configuration file. See
config.json
in this repository for a sample.