OpenGarage Forums OpenGarage Firmware IFTTT through Blynk

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #526

    bgnome
    Participant

    I 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.

    #537

    Anonymous
    Inactive

    I’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 .
    #575

    bgnome
    Participant

    Yeah, 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

    #578

    Anonymous
    Inactive

    Yeah, 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…

    #2070

    orcua
    Participant

    Hi! 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 !

    #2072

    Ray
    Keymaster

    @orcua: is this a specific question for OpenGarage or a general question about Blynk?

    #2325

    govardha
    Participant

    For anybody that stumbles onto this, please look at the link below to debug. Hope this ends up being useful.

    https://blynkapi.docs.apiary.io/#reference/0/write-pin-value-via-put/write-pin-value-via-put?console=1

    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" ]

    #2521

    Chad
    Participant

    I’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

    #2524

    Ray
    Keymaster

    Yes you can do the same with blynk.openthings.io

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

OpenGarage Forums OpenGarage Firmware IFTTT through Blynk