johnboiles / esp-garage-opener

(DEPRECATED: Use ESPHome instead) Control your garage door over MQTT with Home Assistant.
36 stars 10 forks source link

2 reed switches config #1

Open gsbrown opened 7 years ago

gsbrown commented 7 years ago

Hi, I am looking at implementing your setup because I currently have my garage door relay and reed switches hooked up to the rpi3 running home assistant. I am trying to move everything off of the pi to reduce the risk of having all my eggs in one pi basket. On to my question:

I have a relay for the garage door operation I have one magnetic reed switch to tell HA that the door is closed I have a second magnetic reed switch to tell HA that the door is open

How would I add that second switch to the code?

I am moving my home assistant garage door setup to a wemos d1 mini with a 5v relay shield.

thanks!

edit: come to think of it, I actually have a magnetic reed switch hooked up to the door into the garage from the house (this activates the garage lights when the door is opened), so I guess I would want that implemented as well, if possible (so 3 reed switches total, switch1 is garage door open, switch2 is garage door closed, switch3 is house door opened).

nick-zanobini commented 6 years ago

@gsbrown Any luck with the dual (open/close ) reed switch configuration?