Page 1 of 1

Help with momentary relay for Garage Door controller?

Posted: 12 May 2018, 03:32
by TommySharp
Hi everyone,

I have a garage door where it can be activated by momentarily closing a circuit.

I'm trying to do this with a Wemos D1 Mini and a relay board. I need the relay to "close" for 500ms and then open again.
Is anyone able to suggest how I can do this easily within ESPEasy?
2018-05-12_133141.png
2018-05-12_133141.png (17.19 KiB) Viewed 5155 times

Re: Help with momentary relay for Garage Door controller?

Posted: 12 May 2018, 04:10
by budman1758

Re: Help with momentary relay for Garage Door controller?

Posted: 12 May 2018, 04:35
by TommySharp
I was hoping to control it via MQTT just like I am querying the open/close status of the reed switch connected to the same Wemos D1 Mini.

However it looks like this HTTP call works well enough and sets GPIO5 to high for 500ms and then turns it off again.
Should work perfectly for my use case.

http://192.168.1.xxx/control?cmd=Pulse,5,1,500

Re: Help with momentary relay for Garage Door controller?

Posted: 12 May 2018, 06:25
by budman1758
I haven't used MQTT yet but I'm fairly sure it can do the same thing. No doubt someone will come along here and offer some help along those lines. :ugeek:

Re: Help with momentary relay for Garage Door controller?

Posted: 12 May 2018, 06:42
by grovkillen

Re: Help with momentary relay for Garage Door controller?

Posted: 12 May 2018, 10:16
by danmero
You need to declare a device only when you want to know the state of the device.
For output only you just pulse the GPIO since you don't care the state after.

Regards,