homebridge-rasppi-gpio-garagedoor
homebridge-rasppi-gpio-garagedoor copied to clipboard
Enhancement: Gate Control
First off- thanks for the great plugin. I have it working on my garage and it is flawless.
My question for you is how hard would it be to have a version that didn't look for open/close sensors and just automatically defaulted to "closed" after a few seconds?
The reason I ask is because I have both a perimeter access gate and a garage door. The gate is too far away to wire up an open/closed sensor and it really doesn't matter since the gate automatically closes after about 30 seconds. It would be great if I could use the plugin to open the gate and have it just default back to closed after a set amount of time.
It should already do that, though I just merged a bug fix that was submitted by someone and haven't published it to npm yet.
But in your configure, try just leaving the sensor pins out and it should still work as you want.
-Ben L
On May 30, 2017, at 1:35 PM, ansuz07 [email protected] wrote:
First off- thanks for the great plugin. I have it working on my garage and it is flawless.
My question for you is how hard would it be to have a version that didn't look for open/close sensors and just automatically defaulted to "closed" after a few seconds?
The reason I ask is because I have both a perimeter access gate and a garage door. The gate is too far away to wire up an open/closed sensor and it really doesn't matter since the gate automatically closes after about 30 seconds. It would be great if I could use the plugin to open the gate and have it just default back to closed after a set amount of time.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Thanks for the response.
When I tried to set it up like that before, the door would just stay in the most recent state. While that works as a push button, it makes it tough to build any automation around the function (since you don't know what state the door will be in at any given point).
Oh, I see what you are asking about. You want it to automatically fall back to closed after a specific timeout. Yes, I think we can add that. I'm sorry that I've been so slow lately at responding.
If you're up to the challenge, you could make the change yourself, by adding a new config to the index.js and if it's set, then set a timer after a button is pressed to change the state back to the original state.
Or I can do it when I get to it :)
How far is your gate?
@benlamonica - Exactly. Sometimes you don't need the open monitor (like with an automatic gate) but would still like to be able to automate it to open (like when you cross a geo-fence boundary). No worries on the late response; we all have lives. I would take a look at the file, but my coding skills max out at a config.json configuration, sadly.
@toshibochan - far enough away to make running a physical wire problematic. Right now, I have the opener wired up to a delay switch that toggles current between the opener and the open monitor so "simulate" an open state for about 10 seconds before closing. Not a perfect fix, but functional enough.
Wifi reach in your gate? You can somehow put raspberry pi zero in your gate?
Opening the gate isn't the issue - I have a remote wired up that can handle that. Monitoring the state is the issue.
I could put another box dedicated to just the gate, but that is more investment than I want to make, especially since I don't actually care about the open/closed state
If you're up to the challenge, you could make the change yourself, by adding a new config to the index.js and if it's set, then set a timer after a button is pressed to change the state back to the original state.
I'm interested in this too! please, can you explain ? how to have a version that didn't look for open/close sensors and just automatically defaulted to "closed" after a few seconds? I also have the opener wired up to a delay switch ...
@ansuz07 what kind of delay switch have you used? have a foto?
This is the one I ended up using:
https://www.amazon.com/gp/product/B01LVTOW0L/ref=oh_aui_detailpage_o06_s00?ie=UTF8&psc=1
@ansuz07 tnx, how did you have connected? anyway, it could be better implement a timer in the index.js ( but i don't know how!)
I have it wired up where the Pi triggers the delay switch directly. The resting state supplies power to the door close sensor pin and the triggered state is wired directly to the gate opener with a 10s delay