Remove Device
ha_remove_deviceRemove orphaned devices from the Home Assistant device registry to eliminate stale entries. Safely uses config entry removal for disconnected devices.
Instructions
Remove an orphaned device from the Home Assistant device registry.
WARNING: This removes the device entry from the registry.
Use only for orphaned devices that are no longer connected
Active devices will typically be re-added by their integration
Associated entities may also be removed
This uses the config entry removal which is the safe way to remove devices. If the device has multiple config entries, they must all be removed.
EXAMPLES:
Remove orphaned device: ha_remove_device("abc123def456")
NOTE: For most use cases, consider disabling the device instead: ha_set_device(device_id="abc123", disabled_by="user")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | Device ID to remove from the registry |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||