First of all I guess this is a question of feasibility.
My problem is that I very often forget to close the garage door during the day (I usually have numerous errands there and leave the door open). This of course pops into mind when I'm walking from my bathroom to my sleeping room when going to bed, undressed. I can't see the garage door from my front door, so I have the choice between putting my clothes on and go outside to check, or just outside nude and hope nobody sees me..
What I want to do is have a "sensor" (simple roller switch?) that senses if the garage door is open, in which case it for instance lights an led next to the garage door switch inside the house (the switch for the garage door is next to the front door). The switch is a simple switch, shorting two wires (24V), which either opens the door if it's closed, or closes it if it's open, it's not nescessary to keep the switch pressed for it to operate. I don't know if this drives a relay or just sends a signal to a microprocessor inside the garage door opener.
Is there a way to come up with something without having to pull out more wires between the house and the garage, but instead only use the existing two wires to control both the light (LED) and simultaneously control the garage door opener?
My thoughts so far:
-
An arduino connected to the wires from the garage port opener via a 5V regulator, or powered by a wall adapter. The sensor is close to the garagedoor opener on the ceiling, connected to the arduino with two short wires.
-
The led can perhaps be controlled by the polarity of voltage across the wires, and the arduino can control this polarity based on the state of the sensor, perhaps by the use of an H-bridge connected between the garage door opener and the garage door switch? If the door is open the polarity will be so that current flows through the led + resistor (+ in series with extra diode? Don't know the reverse voltage of the leds I have), or if it's closed the polarity is set so that it doesn't - and the led remains unlit.
Does this sound like it could be feasible?