homebridge-garage-piface
v2.0.3
Published
Exposes a garage door and/or a Gate accessory to HomeBridge that uses a RaspberryPi with PiGave board
Downloads
40
Maintainers
Readme
homebridge-garage-piface
Breaking Note
From version 2.x the plugin uses the node-pifacedigital dependency instead of piface-node-12.
Please install new necessary libraries as explained below.
Description
Garage and/or Gate Opener plugin for HomeBridge for Raspberry Pi with PiFace board.
This plugin is suitable for any device as a garage door or a gate motor that needs a brief contact (switch) to trigger an action as a opening or a closing.
This fork is adapted from homebridge-garage-gate-opener by MForge.org
Installation
On a fresh installation you should enable SPI.
Therefore start raspi-config
-> Interface Options
-> SPI
-> Yes
.
Reboot the RPi.
Install necessary libraries
git clone https://github.com/piface/libmcp23s17.git
cd libmcp23s17/
make
sudo make install
cd ..
git clone https://github.com/piface/libpifacedigital.git
cd libpifacedigital/
make
sudo make install
cd ..
Install the plugin
Use Homebridge web UI or
hb-service add homebrige-garage-piface
Configuration
config.json
"accessories": [
{
"accessory": "GaragePiFace",
"name": "Garage",
"switchOutput": 0,
"switchPressTimeInMs": 1000, // optional
"switchValue": 1, // optional
"closedSensorInput": 0, // optional
"closedSensorValue": 1, // optional
"openSensorInput": 1, // optional
"openSensorValue": 1, // optional
"pollInMs": 4000, // optional
"opensInSeconds": 10 // optional
}
]