Remove label from device
labels_remove_label_from_deviceRemove a label from one Home Assistant device while keeping its other labels intact. Use it to untag a device from a label without deleting the label everywhere.
Instructions
Remove a label from a device, keeping its other labels.
Reads the device's current labels list from the device registry,
drops label_id if present, and writes the remaining list back via WS
config/device_registry/update.
Use when: untagging one device from a label without touching its other
labels.
Not for: deleting the label itself everywhere — use
labels_delete_label.
Returns: dict with device_id, the resulting labels list, the raw WS
result, and ok.
Errors: on a WS failure, returns {"device_id": ..., "label_id": ..., "ok": false, "error": "<message>"}.
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": {
"device_id": "<device_id>",
"label_id": "<label_id>"
},
"name": "labels_remove_label_from_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label_id | Yes | Label registry ID to remove; obtain it from labels_list_labels. | |
| device_id | Yes | Device registry ID to untag; obtain it from devices_list_devices. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||