I’ve started again with a fresh install of openHABien 3 with the main aim of getting my old HEOS MK1 speakers to work with Google assistant.
Taking the UI route, I’ve got the speakers configured as far as items, but I am a little stuck on working out how to put the information shown in the .item file into the metadata code window in the UI.
The document says:
Assumptions for UI: The examples below assume that the user is using a text editor to create a
.items
file. While the way of defining an Item using the graphical, interactive UI is different, the elements and the nature of an Item definition are identical using either method.
Source: Items | openHAB
However, what I see in the UI is considerably different and I cannot find any examples of what it should look like. To start with, I am trying to set up just the mute item:
Using the UI, under:
Items > Mute > Add Metadata > Google Assistant
I have set:
- Google Assistant Class = Speaker
- Name = Mute
- Room Hint = Living Room
Switching to the code view I see:
value: Speaker
config:
name: Mute
roomHint: Living room
Although I can see there are similarities to .items, I don’t know what the keys and values should be in the new UI view.
OpenHAB is listed in my Google account, and although I have linked it in Google Home app, OpenHAB does not show under the list of linked services (under “Works with Google”). I assume this is because my item metadata is missing vital information.
One would like to think that setting the Google Assistant class to Speaker would result in the UI showing the attribute fields for that class:
Is this the case, or does one have to add extra information under the code tab?
I’m sure there could be a million things wrong, but I feel I am missing metadata, so if anyone can provide any examples of item metadata or tell me how the attributes map between the items file and UI metadata code, I’d be most grateful. If I can get it working, I will gladly raise a PR to update the documentation for OH 3.
Thanks