Google assistant is not accepting openhab

I have an issue with the configuration of openhab and google assistant.

Huawei Android phone updated using google home vers 2.23.1.8
it’s working perfectly with other things like chromecast or lights,etc.etc.

Google home is connecting to my.openhab.org, going through user identification and I’m getting a page with “allow” and “deny”. I’m choosing “allow” and then I’m finding back to google home without any trace of openhab on the list of accepted things.

I have no idea where to find a kind of “log” to trace the mistake… any idea?

Remember to say “syncronize my devices” to Google.
If everything goes well, Google will respond with something like, “Okay synkronizising your devices for openhab… (other services)”. Google Home should show those items you have tagged for GA.
If it doesnt goes well, Google will respond with something like, “Sorry there seem to be a problem with openhab (other services)…”…
If Google doesnt say anything about openhab service, then tjek the service has been added correctly in your Google Home app.

thanks for the support.
I tried and no result.
On myopenhab.org i can see in the “event” list the corrected link with google home.
I feel google home can’t accept or recognize the link even if it has access to the Openhab API.

difficult to get support from google… nothing on support.google…

No result is NOT!! an option…

When you syncronize, Google will respond with either:

  1. okay, syncronizing openhab (and other services if you have any) …”.

or

  1. there seem to be a problem syncronizing openhab (or other services) …”.

or

  1. Google doesnt mention openhab at all.

Which one did you get?

This is highly important for troubbleshooting GA integration. cause it will tell you wether the integration service (openhab) is working or not. This is the very first step, imho, cause there is no reason to look for issues, before you have made sure the integration service (openhab) is running and working.

There is a small catch on the above. If you have the integration working allright, but no items are tagged, then Google will respond with #2. You need to have at least one item tagged.

Ignore whatever is listed on myopenhab.org at first.This we will look into afterwards.

Kim
I get nothing. I even made a small video…
after giving “allow”, i am getting a message from google home… “linking to openhab”… and after it’s coming back to the previous page… no one change got.

I made the same tests with other 2 android tablets, same result.

Maybe I should cancel all items in google home and start with openhab…

Hmm, is your openhab server online in myopenhab.org?

Yes since yesterday when I rebooted the server

Hey robi59,

if i understand u correctly, u do not see the openhab items in your google home app… thus not beeing able to voice command these?

If so… did you put a tag on each item you want to have available via google home?
like:
[“Lighting”]
[“Switchable”]
[“CurrentTemperature”]
[“Thermostat”]
and “recently” [“Blinds”]

Here is a home.items example for a light of mine:

Switch Zolderlicht "Zolder Licht" <light> (Zolder, Lichten) [ "Lighting" ] {channel="nikohomecontrol:onOff:123456578901:11:switch"}

Make sure the tag is put before the channel-ID.

After this make sure openhab is connected to the google home app.
You can check if the connection was succesfull by:
open google home app / add new device / already set up my device, and you should see this under “connected services”:
image

it also shows how many devices are synced to google via openhab. (aKa how many items have received a tag in the home.items file)

If you do not see this “openHAB” as connected… press the magnifying glass and seach for openhab + add

Then ask your google home device: “sync my devices”, afterwards go to “your house” in the app and refresh by swiping down.
They should popup as a “not assigned to a room” device.

Hope this helps.

Here is an example of Google and Alexa items with both metadata being used. You can use either ga=“Light” or simply [“Lighting”] as a tag. Hope this along with the other advise helps.

Switch CouchLight "Couch Light" <light>  ["Lighting"]  { channel="mqtt:topic:pibroker:sonoff2:power", ga="Light", alexa="PowerController.powerState" [category="LIGHT"] }

Switch OfficeLight "Office Light" <light>  ["Lighting"]  { channel="mqtt:topic:pibroker:sonoff55:power", ga="Light",alexa="PowerController.powerState", expire="180m,command=OFF" [category="LIGHT"] }

Switch FrontPorch_Light "Front Porch Lights" <light>  ["Lighting"]  { channel="mqtt:topic:pibroker:sonoff-7CB10D:power" }

Switch BedroomLight "Bedroom Light"    <light> ["Lighting"]  { channel="mqtt:topic:pibroker:zigbee2mqtt:power", ga="Light",alexa="PowerController.powerState", expire="120m,command=OFF" [category="LIGHT"] }
Dimmer BedroomLight_Level "Bedroom Light Level [%.0f %%]"    <light> ["Lighting"]  { channel="mqtt:topic:pibroker:zigbee2mqtt:dimmer", ga="Light",alexa="PowerController.powerState,BrightnessController.brightness" [category="LIGHT"] }

Switch PictureLight "Picture Light" <light> ["Lighting"] { channel="mqtt:topic:pibroker:sonoff4:power" }
1 Like

thanks. very difficult to handle with poor experience as me …

I tried to use REST API but it’s too complicated for me.
Any simple way (like editing the file) to add this tag? are they in which file? (I am using ubuntu as server)
tks

You can absolutely just edit the file.

i dont know anything about ubuntu… .but i believe you would then just be able to just do a search for this file in the installation folder:
home.items

if its non existant you can make one yourself.

Def. read this:

This is the file where i put every item i create.

thanks this night I will take a look I’m working on this matter after midnight :slight_smile:

Good luck :slight_smile:
either way… no tag = no google home as far as i know.

i also think the “myopenhab” is not needed for this.
i see this more as a way to access ur openhab welcome screen; to pick logs/paperUI/ basciUI … when not home.
But not 100% sure.

For remote logon to my rpi terminal i used https://www.dataplicity.com/ back in the days.
Havent used this in ages… so i am not sure how good or safe this is.
Just saying :slight_smile:

this is also interesting to just create a network drive for it:


i just have a w:/ drive on my pc where i have access to all these files like, sitemaps, items, rules, things
Each in the corresponding folder as u can see.

image
then i use a software to edit these files, notepad works as well, but i can advise visual studio frol microsoft (on a windows pc :))

You´re right… you dont need to expose any items to myopenhab. GA will work with out without as its 100% independable.
GA integration needs atleast one item beeing tagged/added with metadata, otherweise it will fail when you try to syncronize… I do believe its possible to connect the integration fine however, but without a minimum tag, syncronize will fail for sure, (which makes a bit sense, cause then there is nothing to syncronize).

If you run PaperUI items only, you´ll need to set the tags/metadata from either Rest API or using Karaf console.
If you use items files, just add the tag/metadata in there, according to the Google Assistant integration docs.

Notice - I think GA tags will be remove at some time in the future, so a small tip is - Use Metadata only.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.