If youāre hitting the ENOTFOUND issue try removing āhttps://ā from the host url in functions/config.js , it fixed the issue on my side, my config.js now look like this:
I hope it help! I got the hint that the problem might be coming from the https after trying to do a DNS lookup for my domain on https://www.dnsqueries.com/en/dns_lookup.php , it didnāt worked with the https:// prefix.
And huge thanks to @MARZIMA for the hard work on this
the ID/secret can be generated in the google cloud console āAPI und Diensteā -> Zugangsdaten
There you have to create web application oauth credential - you can leave the URL stuff blank there
Youāll also have to insert the token and id/secret to the openhab cloud mongo db ā¦ Itās somewhere in this thread
I have same issue. I have done own cloud instance as per instructions but now facing issues related to oauth2 configuration and local openhab not connecting to my cloud instance. Local instance is able to connect myopenhab cloud instance. Suggest me - how to enable oauth2 on my cloud instance and local openhab connection with own AWS cloud instance
Thanks for the infoā¦ I have been wondering that very thing since watching this thread for some time. I have just bought a home mini and would like to use it with Openhab but I donāt want to connect to any cloud servicesā¦ although of course you need to connect to google itself. Iām in Australia, and the latency to US servers is a consideration, and the more intermediaries I have to use the slower it gets.
Have you created, or is there otherwise documentation on how to do the method you describe?
First, letās talk security. To be safe, you need at least 2 routers/switches. The openhab-cloud/openhab-google assistant will seat behind your modem/router with the necessary ports opened. Your openhab server seats behind the second router, no port opened.
install openhab-cloud first
deploy openhab google assistant afterwards on the same machine
When you say āsecond routerā, what exactly do you mean? I have a single router (gateway) that my openhab/raspi sits behind.I havenāt installed openhab-cloud (in fact I dont even know what that is) but I can do so if its required. I have port forwarding on my router for incoming OH connections.
actuallyā¦ minor correctionā¦ my OH is running on a Pine64, not the raspi.
Thatās good. You are able to configure everything.
I have an issue with Assistance account linking. I have provided endpoint as https://< cloud host >/oauth/authorize and error reported as Cannnot GET /oauth/authorize. Dont know how to enable oauth service on openhab cloud instance. Please suggest if any step missing
What code changes and how do you deploy openhab-google-assistant locally?
Got something you can share? I have noticed a bit of latency, but I have a hard time imagining hosting it locally would improve many things. Iād love to be wrong though.
This oauth issue has been resolved. Its my bad - in url added /oauth/ instead of /oauth2/
However, another issue still not resolved. Local openhab running on Raspberry pi is not connecting to my cloud instance but it can connect to myopenhab.org instance. Please suggest.
Yes I did that. Whenever change the host name from OH cloud to my OH cloud host., log shows that āShutting cloud serviceā¦ā but no more logs to connect to my host. However, when I changed from my OH cloud host to myopenhab.org host then I can see logs that indicating āShutting cloud instanceā and āConnecting to myopenhab.org with client id ā¦ā