Apply tags to items added/linked in Paper UI

After I worked out how the commands within the console needed to be phrased, I found this the best / easiest solution.

opening the console was my first task…

From a command prompt within the host machine

openhab-cli console

you’ll then get prompted for the password

habopen

It’s then a matter of correctly formatting the “smarthome:items addTag” command.

For example, why could I set the tags for Bath_Red but not for Mid_Red ???

The reason was that I wasn’t using the correct Item name.

I found the best way to locate the correct item name was to go as far as editing the item in PaperUI / Items and copying the text from the orange bar at the top…

Edit Bath_Red

The required command within the console is

smarthome:items addTag Bath_Red Lighting

Or what turned out to be for Mid_Red

smarthome:items addTag BackSuiteColour_Mid_Red Lighting

Now I can tag most items…

Good luck

Reference :- [Official Google Assistant Integration for openHAB](http://Official Google Assistant Integration for openHAB)

1 Like