manage_item
Modify OpenHAB items by creating or updating, deleting, changing state, managing tags and metadata. Use semantic_fix for hierarchy or semantic model fixes instead of create_or_update.
Instructions
Modify items. action: create_or_update, delete, update_state, add_tag, remove_tag, set_metadata, remove_metadata. WARNING: Do NOT use create_or_update for semantic model fixes (parentage, hierarchy). Use remediate action=semantic_fix instead. create_or_update safely merges existing groupNames and tags on update, but semantic relationships (hasLocation, isPointOf, isPartOf) must go through semantic_fix. WARNING: Do NOT use create_or_update for semantic model fixes (parentage, hierarchy). Use remediate action=semantic_fix instead. create_or_update safely merges existing groupNames and tags on update, but semantic relationships (hasLocation, isPointOf, isPartOf) must go through semantic_fix.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"itemName": "<itemName>"
},
"name": "manage_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Used by: add_tag, remove_tag | |
| state | No | Used by: update_state | |
| value | No | Used by: set_metadata | |
| action | Yes | ||
| config | No | Used by: set_metadata | |
| itemData | No | Used by: create_or_update | |
| itemName | Yes | ||
| namespace | No | Used by: set_metadata, remove_metadata |