andrewshilliday / garage-door-controller

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

An open & close button for each door. #47

Closed DervMan closed 7 years ago

DervMan commented 7 years ago

My garage door opener requires a separate button for open & close. Any chance we can provide the option for this type of door? Can't seem to DM you, let me have your email and I'll send you the details for accessing my door opener.

andrewshilliday commented 7 years ago

Can you send a link to the controller? That might be a bit complicated of an update. One alternative could be to get a (single button) wireless garage door opener and wire that into the raspberry pi instead of going directly to the opener.

DervMan commented 7 years ago

Annoyingly my door remote has two buttons too, so although it's a good idea it wouldn't work!

danblade commented 7 years ago

Andrew has written his code very well.

I was able to copy and paste the lines of code in the config.jason file.

"left" : { "name" : "CLOSE", "relay_pin" : 23, "state_pin" : 27, "approx_time_to_close" : 15, "approx_time_to_open" : 15 },

Simply paste it below and change the name "left" to "middle" (or whatever) and change the pin numbers to an unused set. I utilized this excellent code for a commercial door opener which requires stop, open, and close. It works perfectly! (I did go with the sainsmart_4_channel_relay instead of the 2 channel relay.)

garage door buttons

The stop utilizes a break in power so you use the other side of the relay... (if you get into it, you will understand...).

sainsmart_4_channel_relay

Andrew, Thank you for writing this!

andrewshilliday commented 7 years ago

My pleasure! I'm glad it's working out for you!

zackoch commented 7 years ago

You could just treat each button like a separate door yeah?

danblade commented 7 years ago

Exactly what I did. On Mar 23, 2017 7:43 PM, "zackoch" notifications@github.com wrote:

You could just treat each button like a separate door yeah?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andrewshilliday/garage-door-controller/issues/47#issuecomment-288901995, or mute the thread https://github.com/notifications/unsubscribe-auth/AR0YO4CnG5bf0-ZZE3CKwzguLCDDI3Owks5roxHCgaJpZM4Lm8zD .

andrewshilliday commented 7 years ago

So you're all good then? OK to close out this issue?

DervMan commented 7 years ago

I'm making do with a second door icon. It works but I get duplicate emails. Not had time to play. Go ahead and close the ticket as it works for me.