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>"}.
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 | |||