Forum Replies Created
-
AuthorPosts
-
LesParticipantAttached are
1. Instructions for setting up an Open garage agent for Google Assistant to communicate with OG through Blynk api
2. OpenGarageAgent.zip – the agent to import into DiagFlow
3. opengarage_firebase.js – the code to load into FireBase to process request. Must insert your Blynk api key.Notes:
1. Open and close links may need to adjust the pin (v1 and v2 currently)
2. Not currently able to authenticate directly with Blynk so api key must be added to firebase code.
3. It’s a work in progress so feedback welcome.
4. If your interested in running in your own node.js server instead of firebase, let me know.- This reply was modified 6 years, 11 months ago by Les.
Attachments:
You must be logged in to view attached files.
LesParticipantHey Jeff, thanks for the link….I see 3 references.
Some of the reference/docs are perhaps a little dated, because I see reference to OG checking if the garage door is open before opening and same for closed which i believe is in the latest firmware. Also only found pin V1 for triggering as opposed to separate pin for open vs close command (and V0 as mentioned above for status).So I’ve had success in creating the app, will publish instructions in next post. If someone would like to test it please let me know how it works. I’m hoping to get my OG in a month or so, will test then.
Note: I’ve made two assumptions (which most likely need adjustment based on what the proper PIN is for blynk to open vs close):
OPEN = “http://blynk-cloud.com/your_blynk_id/update/v1?value=1”;
CLOSE = “http://blynk-cloud.com/your_blynk_id/update/v2?value=1”;
I should also note I saw on the selling page “Remote access through cloud-based app for iOS and Android.” so if cloud app other than blynk also has webhooks it would also be possible to use that instead of Blynk.
LesParticipantHey Ray, Jeff,
Thank you both for the answers.
Let’s start by tackling the status request, then the setting. So to get the status we need to perform the get request:
http://blynk-cloud.com/auth_token/get/V0 Please let me know if it’s not V0What answer do we get back if its open vs closed? I’m going to start working on the app to interpret results and communicate with Blynk & Assistant, will write after I get somewhere.
LesParticipantThanks for the quick response. I found Google Home Helper but I don’t think it would integrate with Blynk.
So i started searching for a bridge (none exists), but I’ve looked through a few assistant tutorials and I think I could create one and happy to share if it works. The question becomes approach, hopefully you can shed some light here.
If I understand correctly Blynk has a public facing site with webhooks to allow for opening/closing the garage.
1. Is there a webhook to return status? If so what does it return open/closed,exact distance?
2. If there is no webhook, does the firmware monitor status and can it notify a service upon change? -i’m thinking a command to enter status into a google sheet: https://sheets.googleapis.com/v4/spreadsheets/spreadsheetId/values/range?valueInputOption=valueInputOption or probably better for mass use instead of individual would be to post to a google firebase -
AuthorPosts