I have a remotecotroller (taster) which work with 2x 1,5V batterys.
The taster sends via 868mhz a signal when I press the button and my garage door opens.
If I press it again, the garage door stopped
I think the taster sends always the same signal. So. If I press the button, it will close the contacts and it will send the signal. If I loss the button, the conats open and nothing will be happen.
Now I want to use it with my wemos.
Can I setup the wemos, to set it behind the conatcs. For example:
Put one contact into D2 pin and the other one into D3 pin.
The wemos close or opening the contact from d2 to d3.
Is it possible?
If yes, I can create a webserver on the wemos and if I send a command, the wemos close the contact for 400ms and after the delay it will be opening it.
So I simulate a finger press event. Now i can use a webserver command
if it's a secure system probably not... otherwise anyone could listen to the signal and then be able to enter into your garage... it's likely a rolling code.
I hacked a remote control for the garage door and garden's gate of a friend.
The remote is a radio from Cardin (S449-QZ2 operating at 433MHz with rolling code)
I've used the HomeSpan library so that the ESP would fit right into his HomeKit network as different devices and now he can use his iPhone and ask Siri "open the garden's gate" or "open the garage's door" and that will drive the the associated optocoupler and trigger the remote. The remote or the code is not really aware of the status of the door as there was no information available on the status so the command really just 'presses' on the remote and that will alternate between open or close.