Add Paper UI item to a group?

I don’t use PaperUI created Items. But I just created one and when I created the Item I was given the option to click on

image

and choose an Item.

Then I went to the Item and clicked edit and was able to change the Group as well.

Something weird is going on with yours and I’m not sure what is going on for you.

In a pinch, you can add the Item to a Group through the REST API UI (installed from the Misc tab):

Or you can edit the JSONDB manually.

  1. Stop OH. Do not edit jsondb while OH is running.
  2. Edit /var/lib/openhab2/jsondb/org.eclipse.smarthome.core.items.Item.json
  3. Go down to the entry for your Item and add the Group name with quotes to the array of “groupNames”
{
  "foo": {
    "class": "org.eclipse.smarthome.core.items.ManagedItemProvider$PersistedItem",
    "value": {
      "groupNames": ["barGroup"],
      "itemType": "Switch",
      "label": "foo"
    }
  }
}
  1. Start OH.