-
Notifications
You must be signed in to change notification settings - Fork 40
(RPi) Add Second Garage Door Opener
This page has instructions on how to add a second Garage Door file. The second garage file is sensorless.
This only works if you have followed my existing tutorial after 06/26/2016.
The first command you want to run is: cd /home/pi/HAP-NodeJS/accessories
This command returns you to HAP-NodeJS accessories folder.
The second command you want to run is: sudo wget https://goo.gl/fjtN86 -O GarageDoorOpener2_accessory.js
This command downloads a second Garage Door Accessory file so that you can have a second garage
Next you want to run this command: sudo cp /home/pi/HAP-NodeJS/python/garage.py /home/pi/HAP-NodeJS/python/garage2.py
This will duplicate your existing garage.py file in the python folder. We will edit this later on in the tutorial to change the pin your second relay is connected to
Next you want to run this command: sudo nano /home/pi/HAP-NodeJS/python/garage2.py
This will open the python file for the second garage. Change the relay variable to the pin number of the second relay.
Completing these steps finishes the process of adding a second garageDoorOpener. Hope that helps!