Official Alexa Smart Home Skill for openHAB 2

My tip is to delete the database and readd your items with config files.
I was in the same situation. Everything was set up via paperui and I needed to add tags. The whole process is uncomfortable, a bit confusing as you have long lists and gets really annoying when you want to make changes. So trust me, use config files instead.

Anyway here is how you could do it:

Avoiding the terminal

  • Get Rest API Documentation (Paper UI-> Addons->Misc->Rest API Documentation->Install)
  • Get Name of item (the name not the label) via paper ui (or even via rest api)
  • Go to Resp API Doc: http://<ip>:8080/doc/index.html
  • Go to Items, “PUT /items/{itemname}/tags/{tag}”
    – Enter itemname and desired tag
    – Click “Try it out!”

More sophisticated way:

  • Open a terminal (on osx/linux you are good, using windows curl is needed to be downloaded first) and send the command:
curl -X PUT --header "Content-Type: application/json" --header "Accept: application/json" "http://<ip>:8080/rest/items/<itemname>/tags/<tagname>"

(replace <ip>,<itemname>,<tagname> with your values)

2 Likes