I’m running openhab 4.3.0 with zigbe2mqtt enabled.
In my installation I have some Zigbee radioator thermostats.
Today I want to install the rest of my rooms with this zigbee equipment.
Because I’m a little bit lazy, I want to use the copy item and channels features
from the openhab web ui.
So fare it seems to work. But for the existing things I did not found a copy option.
By the way, all my items were ui generated.
So I tried to use the RestApi from the DevExplorer page.
There I use the get-item, copy and past the result in the put-item api.
After that I changed the values to the correct settings for the new thing and sent the post request.
The api call was successfull, but in the openhab ui the thing stays as disabled.
No every try to correct this error results in failues.
From the ui, openhab tells me that the new item could not be deleted , because it was created by file. I checked all folders and could not find a thins file.
Then I try to correct the error with the rest api, use the delete api.
Also this fails.
Here the output
{
"error": {
"message": "Cannot delete Thing mqtt:topic:ArasMqttBroker:AZET_Th as it is not editable.",
"http-code": 409
},
"entity": {
"channels": [
{
"linkedItems": [],
"uid": "mqtt:topic:ArasMqttBroker:1cc8a11d46:Valve_Position",
"id": "Valve_Position",
"channelTypeUID": "mqtt:number",
"itemType": "Number",
"kind": "STATE",
"label": "Valve_Position",
"description": "",
"defaultTags": [],
"properties": {},
"configuration": {
"commandTopic": "zigbee2mqtt/KUET_Th/set",
"min": 0,
"formatBeforePublish": "{\"valve_position\": \"%.0f\"}",
"stateTopic": "zigbee2mqtt/KUET_Th",
"transformationPattern": [
"JSONPATH:$.valve_position"
],
"max": 255
}
},
{
"linkedItems": [],
"uid": "mqtt:topic:ArasMqttBroker:1cc8a11d46:KUET_Th_Battery",
"id": "KUET_Th_Battery",
"channelTypeUID": "mqtt:number",
"itemType": "Number",
"kind": "STATE",
"label": "KUET_Th_Battery",
"description": "",
"defaultTags": [],
"properties": {},
"configuration": {
"stateTopic": "zigbee2mqtt/KUET_Th",
"transformationPattern": [
"JSONPATH:$.battery"
]
}
}
],
"statusInfo": {
"status": "UNINITIALIZED",
"statusDetail": "DISABLED"
},
"editable": false,
"label": "AZET_Th",
"bridgeUID": "mqtt:broker:ArasMqttBroker",
"configuration": {},
"properties": {},
"UID": "mqtt:topic:ArasMqttBroker:AZET_Th",
"thingTypeUID": "mqtt:topic"
}
}
Even the try to update the items with the correct values ( put-api) gives the same result.
So what could I do?
Intention is to delete this wrong item…