OpenGarage › Forums › OpenGarage Firmware › IFTTT through Blynk
- This topic has 8 replies, 6 voices, and was last updated 1 year, 11 months ago by Ray.
-
AuthorPosts
-
August 5, 2017 at 1:50 pm #526
bgnomeParticipantI have only had OpenGarage up and running for a couple of days now and think I have a reliable solution for those who want to use IFTTT through Blynk. This is an alternative to setting up port forwarding through the router, which not everyone is able to do.
You need to have the Webhook service set up and your key entered in the firmware of the OG.For the trigger, you can use any service you want. I have applets with button widget, Alexa, and Android Device (trigger when my phone connects to my wifi). I tried GPS with Life360 but the lag in response was too long.
For the action, you will use the Webhook service:
URL (Replace xxx with your Blynk token)
http://cloud.blynk.cc:8080/xxx/pin/V1
Method
PUT
Content type
application\json
Body
["1"]
Now, I have found that this leaves the V1 high in Blynk instead of a momentary on\off like the button is supposed to function. So I wrote a separate applet that triggers when the OG is activated and resets it to 0.
For the trigger, you will use the Webhook service:
Receive a web request
Event name
opengarage
For the action, you will use the Webhook service again:
URL (Replace xxx with your Blynk token)
http://cloud.blynk.cc:8080/xxx/pin/V1
Method
PUT
Content type
application\json
Body
["0"]
In the future, I think it would be nice to have dedicated “open door” and “close door” functions that incorporate a check on the current status of the door. For example, If 10pm, then “close door” would be able to close the door if it was open but would not do anything if it was already closed. This functionality is already provided with the other garage door services on IFTTT. I lack the programming knowledge to incorporate this myself into the firmware or the apps at the moment but I will continue to play around with it.
August 7, 2017 at 7:45 am #537
AnonymousInactiveI’ve been doing a similar thing with Tasker on my Android. Except it uses V0 with blynk to determine the status of the door. I was thinking one could do the same with IFTTT, but I haven’t figured out how quite yet.
Basically, it makes a request (GET) to blynk: http://blynk-cloud.com/xxx/pin/V0 the return value of [“0”] means door is closed, [“255”] is open.
- This reply was modified 7 years, 3 months ago by .
August 7, 2017 at 5:56 pm #575
bgnomeParticipantYeah, I couldn’t figure out how to get IFTTT to read the data AND do something with it. It seems to be one or the other. I tried to perform multiple webhook actions through platform.ifttt.com but it wouldn’t let me.
But, the event “opengarage” pushes a string that is meant to be the Blynk notification. Using that, I can chain IFTTT applets together via apilio.io:
Check to see door is open before closing with IFTTT and apilio.io
August 7, 2017 at 7:21 pm #578
AnonymousInactiveYeah, I couldn’t figure out how to get IFTTT to read the data AND do something with it. It seems to be one or the other. I tried to perform multiple webhook actions through platform.ifttt.com but it wouldn’t let me.
But, the event “opengarage” pushes a string that is meant to be the Blynk notification. Using that, I can chain IFTTT applets together via apilio.io:
Ahh, I see. I also tried without success…
December 6, 2019 at 12:21 pm #2070
orcuaParticipantHi! I know this is a very old post, but I have a question Im trying to do the same with blynk but I couldnt reset the V1 state to 0, basically Im stuck in the first part, how do you create the opengarage event? with the first part you could send a webhook request but I couldnt attached it to an event.
thanks !
December 9, 2019 at 3:45 pm #2072June 29, 2020 at 12:57 pm #2325
govardhaParticipantFor anybody that stumbles onto this, please look at the link below to debug. Hope this ends up being useful.
I finally ended up getting this to work via curl
curl -H "Content-Type: application/json" --data @msg.json -X PUT "http://blynk-cloud.com/<my blynk key>/update/V1"
msg.json is a file which looks like this [ "1" ]
December 10, 2022 at 7:40 pm #2521
ChadParticipantI’ve been controlling my OpenGarage for years via IFTTT going through http://cloud.blynk.cc and activating pin V1 to simulate clicking the garage open/close button. With this shutting down in a few weeks, I’m curious if the same functionality will work once I migrate over the blynk.openthings.io? I have an Android device and I’m hoping that once I reset the Legacy Blynk app, I’ll be able to set up the customer server per https://openthings.freshdesk.com/support/solutions/articles/5000872170-using-blynk-legacy-app-with-openthings-blynk-token
December 10, 2022 at 7:40 pm #2524
RayKeymasterYes you can do the same with blynk.openthings.io
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenGarage › Forums › OpenGarage Firmware › IFTTT through Blynk