yes this was the plan, I am checking all needed stuff at the moment and I would add it to myopenhab to have google home skill. This skill can than be activated by Google assistant.
Ok sounds great ! Are you familiar with opehab-cloud (if you re the Florian I assume, than yes )?
There is no official direct API as far as I found…it is cloud based, similar to Alexa.
So short Update:
I learned really well how this needs to be done. I managed to run and test the example cloud project of google also.
Some parts are little strange. For smarthome apps the fullfillment wont go over API.AI and Google App Engine, which would be some kinda symmetric to what we developed with dan for Alexa as node app on AWS Lambda. But for smarthome action apps Google states that it is only working with Actions SDK (a CLI based tool gactions).
Since Response Timing, Stability and Latency are really important, and to avoid additional hosting, my current approach is to add our IntentHandlers directly to the cloud in new submodules. In some ways similiar to the end-to-end example of Google at github.
So currently my state is this and Iam continuing to implement the fullfillment (our openhab-cloud cloud backend logic for incoming intents):
The general steps in creating a Smart Home app are:
Setup an OAuth 2.0 server for account linking. DONE
Create a Actions on Google developer project.
DONE
Create an action package, declaring support for Smart Home intents.
DONE
Provide fulfillment of Smart Home intents.
WIP
Test and submit your app for approval.
WIP
I need a little more time, since I dev mainly in the night during Ramadan
Thanks for the update! It’s not related to this subject but I’m curious about what you had to do to setup the Oauth 2.0 server? I might have to do something like this for my Wink bindings, do you have some code that I could look at?
hi,
oAuth Support is a feature of oh cloud. There was a discussion at ESH about authentication possibilities for OH2. But I dont know the current state.
So adding oAuth Support would be sth. for the whole project running on gateway. For the backend side, we use it already.
here a short feedback:
The smarthome app setup on actions on google console is done. It was easy in the beginning and just made me go crazy at the end.
At the moment I am implementing all the intents (for which I need little more time) as a Google Cloud Function, a Serverless-Architecture feature of Google. This is Googles answer to AWS Lambda and is only in beta status, but usable and the better architectural way from my point of view.
The nodejs example from Google at github takes another way and puts all logic on the smarthome provider backend. I started that way and switched to Google Cloud Functions because this will be similiar like we did with the Alexa Skill which runs the openHAB Skill Business Logic on AWS Lambda.
Last but not least, I need to say that Alexa Skill development is much better documented, concepts are easier realized, complexity-wise and dont have “baby bugs”.
For Actions on Google I found already 2 problems/bugs. The most painfull one is, that the created AoG openHAB skill cant be tested with my Google account. There are two options:
A smartphone running Google Assistant, where you “activate” and do account linking
Device web simulator in Actions console, where you fire voice commands to test your backend and the skill logic.
-> Both are not working for me. This problem (https://stackoverflow.com/questions/42153333/why-i-cant-use-google-action-in-web-simulator)
occured also to other devs, where the only solution is to pair a real Google device to your Google mail account. Than the web simulator starts working and the skill occurs in the smartphone Google Assistant app for account linkage.
So as german I need to order a real Google Home from US, since it is not released here yet. Thats really frustrating!
I will go on with the mock assistant platform to test the Google Cloud Function with the openHAB logic and let you know if you can start and help with testing.
Sorry for not having it finished but it is more difficult as expected and I had others stuffs to finish, too.
PS: I was also quite busy privately and ramadan was crazy hot this year.
@fourthwall
Thanks!
Atm I test with mock assistant plattform. For ginal testing I will need the device or you guys van help to test…
Iam almost done and finishing last things. Hope to share it soon and will need testers for this one.
If ok I would contact you as soon I got it?
The Google Home will arrive in few new countries (Canada, Australia, France, Germany and Japan) in less than one month. You will have a larger public very soon.