I haven’t read the whole thread so if I miss some important detail let me know.
Based on @rossko57’s reply it sounds like you had Simple Mode enabled, you’ve now disabled it, and are having problems deleting the automatically created Items.
Sometimes, when you delete an Item using PaperUI without first deleting the Link the Link to the Item remains. Links are stored in a separate place from the Items. If that Link hangs around, PaperUI will see that the Item still exists, but it will exist in a broken way.
To see if you have zombie Links, take the name of an Item (let’s call it Foo) that you think should be gone but is still showing up in PaperUI. Then run the following command:
grep Foo /var/lib/openhab2/jsondb/*.json
If it returns nothing that means Foo does not exist in the JSONDB at all.
If it appears in org.eclipse.smarthome.core.items.Item.json it means that the Item has not been deleted at all and it still exists.
If it only appears in org.eclipse.smarthome.core.thing.link.ItemChannelLink.json that means the Item is a zombie. The Item is gone but the Link remains. Stop openHAB, open that file for editing, search down for the entry that includes "itemName": "Foo"
. The entry will look something like:
"mg_Test -\u003e mqtt:topic:test:test": {
"class": "org.eclipse.smarthome.core.thing.link.ItemChannelLink",
"value": {
"channelUID": {
"segments": [
"mqtt",
"topic",
"test",
"test"
]
},
"configuration": {
"properties": {
"profile": "system:default"
}
},
"itemName": "mg_Test"
}
}
Delete the whole thing. Be careful not to leave a trailing comma if it happens to be the last entry in the file.
Restart OH and watch for errors in openhab.log.