Added the Openhab Cloud Connector
noted the 2 keys
created new account on myopenhab.org using same email id as the one used within the house on the Google devices
added basic Items file with this item: ‘Switch fire { ga=“Fireplace” }’
On my Android phone i tried to add the Openhab app
logged in to myopenhab when requested
Clicked ‘allow’ when asked to approve 0auth2
Then it appears to do something, but, it just takes me back to the beginning of the adding Openhab service. myopenhab.org shows Google Assistant added
Google Account page for applications security does not show Openhab as approved as a 3rd party app. This is where i think this is failing…
I’ve double checked the account secret/uuid, both appear correct
I got the metadata and tags mixed up (because I haven’t looked at them in awhile and that’s typically the problem).
Can you show me your actual item definition, pasted directly from your text file? The other thing that happens sometime is that smart quotes gets inserted and have to be edited out. Your earlier example has smart quotes.
Switch fire { ga=“Fireplace” }
And you may need to replace them with regular quotes:
Switch fire { ga="Fireplace" }
I believe that you won’t be able to add OH to Google Assistant if there are no devices tagged for GA.
Can you confirm that the item definition does not have the smart quotes, per my message above? I’m guessing that’s not the case, but just want to be sure.
myopenhab.org shows Google Assistant added
Google Account page for applications security also shows Openhab as approved as a 3rd party app.
That’s progress!
When i try and add Openhab in the Home app it still does not appear to add
Yeah, smart quotes have tripped up a lot of people in the past. On that note, code snippets are easier to read if you put them in code fences using the </> button.
Okay, so if you can access your system through myopenHAB, then the secret/UUID are fine.
Question: do any of your items not have labels? I realize that your earlier example did not:
Switch fire { ga="Fireplace" }
I vaguely recall that if any devices at all are missing labels, then GA won’t work (even if those devices aren’t exposed to GA).
i have a test items file that im using when trying to get GA working, my other tiems files are renamed during my testing.
in my test.items file i have a single item:
If that’s the case, I really don’t know what’s stumping you here. Best I can suggest is to go back to square one by removing OH from Google and Google from myopenhab, then trying to link them again.
Actually, let’s try an alternative. Instead of text files, try creating an item in MainUI and add the Google Assistant metadata. If that doesn’t work, then the problem is somewhere else.