Google Home - Actions (API) now available!


(Tadey Stasevych) #363

Hello Viktor, thanks for reply.

I am running openhab-cloud on AWS EC2 Ubuntu instance. Cloud works great when using with OpenHAB app.

So yes, I am getting same exact error in Google Home app as you do.

What does you log say? (gcloud beta functions logs read openhabGoogleAssistant)

Thanks, Tadey


(Gary Lau) #364

can the google home api package running without openhab cloud? all running locally?

any tutorial to teach how to make it run all locally?

Thanks.


(Tadey Stasevych) #365

You must use oauth2 authentication for Google Actions, which is only supported with OpenHAB-cloud.


(Gaël Grasset) #366

@MARZIMA Don’t know if it can help for the QA process, but Homeseer solution can be controlled by Google assistant since last summer. Even if Homeseer have some “all-in-one” devices, their solution is essentially web based with some plugins (equivalent to bindings in openhab) and can be installed on any machine, including a raspberry pi.
From the way I see it, there are some similarities in the overall architecture of their solution, can the process they got through be used as a reference by Google ?
In the meantime, thanks for your dedication and hard work :smiley:


(Kyle Borreson) #367

There’s a couple home automation aggregators controllable now through
assistant… Yonomi recently got approval as well. Odds are we just need to
be patient.


(Mehmet Arziman) #368

I dont think that they started with the official access to the APIs. Some been there before anyone was able to integrate.
So guys, again I did my part and wait for their feedback since they been at CES.
Iam not sure if the referencing to others help, since we dont know how long they even took for QA process.
They told me there is no really official OSS smarthome integration beside one unofficial.


(Viktor Kostov) #369

Checked the function logs (completely forgot about it).
I had following error:
{"severity: "ERROR"
textPayload: “Error: getaddrinfo ENOTFOUND ‘YOUR-CLOUD-HOST’ :443
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)” "
}
So I figured out that for some reason google functions was deployed with wrong configuration (functions/config.js). After fixing URL and redeploying “gcloud beta functions deploy …” it solved my problems and it started to work. Thank you for your advice! :slight_smile:


(Tadey Stasevych) #370

I am glad you got your setup working. I still have issues ;-(

2018-01-18 15:46:48.538 CST
openhabGoogleAssistant
zr8uc0z0lw42
ReferenceError: data is not defined at IncomingMessage.<anonymous> (/user_code/rest.js:46:53) at emitNone ``(events.js:91:20) at IncomingMessage.emit (events.js:185:7) at endReadableNT (_stream_readable.js:974:12) at ``_combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickDomainCallback ``(internal/process/next_tick.js:128:9)
Expand all | Collapse all {
insertId: "000000-9cdec294-5355-49a5-873b-0bdb34d21bf9"
labels: {…}
logName: "projects/openhab-gassist/logs/cloudfunctions.googleapis.com%2Fcloud-functions"
receiveTimestamp: "2018-01-18T21:46:57.581052675Z"
resource: {…}
severity: "ERROR"
textPayload: "ReferenceError: data is not defined
at IncomingMessage.<anonymous> (/user_code/rest.js:46:53)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)"
timestamp: "2018-01-18T21:46:48.538Z"

Two oauth IDs were created. Which one of the two are you using:
image

Thanks,
Tadey


(Viktor Kostov) #371

I have created new of type “Web application”:


(ChrisH) #372

what is ESH?


(furax54) #373

Eclipse SmartHome


(Kyle Borreson) #374

The framework that OH2 is based/built on.


(Jason Holmes) #375

Google can’t seem to find my domain. Did you have to do anything special for it? I have my subdomain set up as an A record w/ dnsimple.

openhabGoogleAssistant
m381v7to0v38
Error: getaddrinfo ENOTFOUND https://openhab.thejholmes.com https://openhab.thejholmes.com:443 at errnoException (dns.js:28:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)

(Flole) #376

Sometimes DNS takes some time. I am able to resolve the DNS name you wrote, so it should work.


(Pumbadinho) #377

Just to be sure, the issues described here are issues to get Google Home working before official release?
Later this will all be included in Google Home Binding?


(Stress Nero) #378

Hello i am also trying to get this beta running i am at the point where i need to fill in (url": “https://YOUR-URL/openhabGoogleAssistant”) what are you guys using for that can i use my duckdns,org domain or the myopenhab.org and if you are not using myopenhab site how are you securing the site apart from httpasswd?


(Lucky) #379

look up nginx reverse proxy


(Stress Nero) #380

ok thanks, that’s the way i have it. I just wanted to make sure that no passwd was needed in the string or something.


(Viktor Kostov) #381

Not really. May be DNS is not resolved. It does not work still?


(Stress Nero) #382

Hi Now i am at the Account Linkage & OAuth2 where do get this info from
Client ID:
Client secret:
Authorization URL: https:///oauth
Token URL: https:///token

I think i got the client secret and client id from the google api console.
Now trying to figure out
Authorization URL: https:///oauth
Token URL: https:///token
should that be my https://duck.duckdns.org:port/oauth