RPi GPIO based Garage Door plugin for Homebridge
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
and sudo apt install nodejs
sudo apt-get install libavahi-compat-libdnssd-dev
sudo npm install -g --unsafe-perm homebridge
sudo npm install --unsafe-perm mdns
and sudo npm rebuild --unsafe-perm
at /usr/local/lib/node_modules/homebridge
npm install -g git+https://github.com/LukeSkywalker92/homebridge-gpio-garagedoor.git
# Datei wpa_supplicant.conf in der Boot-Partition (Raspbian Stretch)
country=DE #omit if US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="wlan-bezeichnung"
psk="passwort"
key_mgmt=WPA-PSK
}
wget https://nodejs.org/dist/latest-v6.x/node-v6.10.0-linux-armv6l.tar.gz
tar -xvf node-v6.10.0-linux-armv6l.tar.gz
cd node-v6.10.0-linux-armv6l
sudo cp -R * /usr/local/
Configuration sample:
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "246-92-505"
},
"description": "Garagentor"
"accessories": [
{
"accessory": "GPIOGarageDoor",
"name": "Garagentor",
"doorSwitchPin": 23,
"doorSensorPin": 24,
"isNCSensor": true,
"doorOpensInSeconds": 25
}
]
}
Fields: