-->
Page 1 of 1

Nodemcu ifttt webhook relay triggering

PostPosted: Mon Nov 09, 2020 5:06 am
by GreenBlood
Hi, can someone post a link to a working example of how I can get my nodemcu (with 4 relays) to trigger for a set amount of time?

I want to use the relays to trigger a remote control for some blinds installed in my home, (I can’t find anything that I can use that will learn the rf 868mhz codes and retransmit them like the BroadLink Pro does for 433mhz) so I need to trigger the physical buttons on my existing remote.

There are 4 buttons on the remote, up down stop and select.
I want to say to Alexa “open the blinds” and the nodemcu to trigger the relay pressing the ‘up’ button momentarily. This will cause all blinds to open fully. And “Alexa, close the blinds” etc

But that is not exactly what I want every time, I want the blinds to start opening, then stop one by one at a certain point. Ie after 3 seconds for blind 1, 5 seconds after blind 2etc.
So I can use the select button to toggle between blinds to stop them individually.
If anyone can help I’d be very grateful. I’ve tried numerous examples on the net I have found (ie fauxmo espalexa etc) but I’ve not had success with any so far.
Cheers!
Steve

Re: Nodemcu ifttt webhook relay triggering

PostPosted: Sun Nov 15, 2020 9:25 am
by Luc Volders
Look into the time and timealarm libraries.
Time lets you set the exact time which it gets from a NTP server.
Timealarms lets you set a multitude of alarms which can nset things on or off.

Both libraries are in the Arduino IDE.

Luc

Re: Nodemcu ifttt webhook relay triggering

PostPosted: Sun Nov 15, 2020 4:10 pm
by GreenBlood
My issue is more to do with getting a relay to trigger from ifttt virtual buttons. I can’t seem to get it working reliably.