@mashborn,
I think you should create a dedicated bucket.
I recognized that the readme doesnt explain the GCF stuff.
Try to follow this: https://cloud.google.com/functions/docs/tutorials/storage
and create a bucket e.g. _bucket and follow the deployment steps.
I had problems once with buckets. So make sure you have a payment method added. This is tricky as hell, otherwise exception in GCLI.
And you shouldnt need to create a GCP project, cause if you follow the steps in readme,
you will have a GCP project automatically. Since you are using Actions SDK of Google Assistant. Under the hood it generates the GCP project to host it there.
Hope this helps a little.
Deploying function (may take a while - up to 2 minutes)…done.
availableMemoryMb: 256
entryPoint: openhabGoogleAssistant
httpsTrigger:
url: https://us-central1-openhab-assistant-123123.cloudfunctions.net/openhabGoogleAssistant
labels:
deployment-tool: cli-gcloud
name: projects/openhab-assistant-123123/locations/us-central1/functions/openhabGoogleAssistant
serviceAccountEmail: openhab-assistant-123123@appspot.gserviceaccount.com
sourceArchiveUrl: gs://myopenhab-bucket/us-central1-projects/openhab-assistant-123123/locations/us-central1/functions/openhabGoogleAssistant-abcdefghi.zip
status: ACTIVE
timeout: 60s
updateTime: ‘2018-01-26T12:36:11Z’
versionId: ‘1’
Not so much a binding, it’s a Google Assistant skill. You’ll authorize the Google account to use openhab and then the Assistant will be able to see specifically tagged items.
and special thanks to @MARZIMA … great effort. However I’m stuck in the same position as others e.g. @holmes.j
Function execution took 521 ms, finished with status: 'crash'
Error: getaddrinfo ENOTFOUND https://MYCORRECTDOMAIN https://MYCORRECTDOMAIN:443
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
openhabGoogleAssistant: Cloud function called:{"inputs":{"intent":"action.devices.SYNC"}],"requestId":"16969298799395762247"}
Function execution started
Where “MYCORRECTDOMAIN” is properly setup with Let’s encrypt certificates. It’s gcloud.mydomainname.de (no not seestaedt.de ) and I have even verified it with google search console and put it in the domain verification section in the google cloud console.
My own openhab cloud instance is working and I can see the exposed items (actually for testing purpose exactly one item). During the enrollment process on my Android Pixel 2 in Google Home my Openhab Cloud instance is properly logging the oauth requests.
I’ve set up the whole thing three times. I even switched from an AWS EC2 to a google compute instance for my own openhab cloud server to have it “internal” to Google.
Has anyone figured out a solution for this behaviour? As mentioned elsewhere in this thread I tried to switch from free trial to blaze plan a couple of times.
I tried a nslookup on the copy and pasted domain name from the log file above. I return the IP of my openhab cloud instance. And I even tried this nslookup from a google cloud base compute instance.
After spending two days on this I’m lost - I have no further clue what to do - any help would be appreciated.
Thanks Elmar
P.S. I thought about whether the deployment on a US based server but a german google assistant could be a problem
I tried to set the locale to DE-DE in the dashboard for testing the action - but google refused to set it to a german locale
I am not sure,
but I remember you were looking for alternatives since you doubt „the App will get done“. Why you didnt do that? Iam serious! I doubt you found a free Google Assistant integration.
You imply ppl have to do a readme update in a way like it is „normal“ that you get served and it is overdue.
Again stay fair. If you want something - Do it yourself.
Yes,
still under Setup.
They are setting up OH. I will make pressure tomirrow again. I cant do much more than that…
I think we are fine for the v1.0 release of the Action.