andrewshilliday / garage-door-controller

Software to monitor and control garage doors via a raspberry pi
MIT License
327 stars 127 forks source link

To switch on the lights when the gate door opens. #42

Closed Gilles94500 closed 7 years ago

Gilles94500 commented 7 years ago

I use your fantastic garage-door-controller to control the garage door, the gate door and the lights (same way as the doors with a new entry in the config.json file ). My wife only uses the genuine gate remote control(mhouse).

I would like to switch on the lights when the gate door opens (and only at night ?)

I have connected the reed switches to the GPIO, so the raspberry GPIO is aware when the gate door opens even if it is not triggered by the raspberry.

Would be it possible to toggle the lights when the gate door opens?

It took me hours but I have successfully added the sysup-time to the webpage, but, unfortunately, I am not enough skilled in html, css, python, jquery, ajax, twisted python to change the logic of the program. Any help is wellcomed :)

Regards, Gilles

Gilles94500 commented 7 years ago

Don't worry, I have managed to do it by myself. It is not structured as your program but it works. My next step is to connect a daylight switch.