This Home Assistant integration allows you to create virtual devices and assign any entities to them.
Additionally, it enables assigning any entity to any existing device, regardless of which integration it comes from.
It is especially useful when you want to:
- Group related entities under a single device
- Reorganize entities independently of their original integration
- Assign entities to existing devices that they were not originally linked to
- Improve clarity and structure in the Home Assistant UI
This integration is installed via HACS:
- In Home Assistant, go to HACS → Integrations → Custom Repositories.
- Enter the repository URL:
https://github.com/catgiggle/HomeAssistant-TemplateDevice. - Set the type to Integration and click Add.
- Install the integration through HACS.
- Restart Home Assistant.
- The integration will appear under Configuration → Integrations.
You can add multiple instances of this integration. Each instance represents a virtual device.
| Parameter | Description |
|---|---|
Display name |
Name shown in the Home Assistant UI. |
Internal name |
Unique identifier used as an entity prefix and internal reference. |
- Create virtual devices in Home Assistant
- Assign any entity to any device (including existing devices)
- Assign entities across different integrations
- Remove entity assignments at any time
- Organize entities independently of their source integration
- Improve UI clarity by grouping related entities
- Works with all entity types
This integration provides the following services:
Assigns an entity to a device.
| Field | Description |
|---|---|
entity_id |
The entity to assign |
device_id |
The target device |
Removes an entity from its assigned device.
| Field | Description |
|---|---|
entity_id |
The entity to unassign |
Returns the assignment status of entities and devices.
- Returns
"ok"if the entity exists - Returns
"unavailable"if the entity or device does not exist
- This integration does not modify original entities or their source integrations.
- Assignments are purely organizational and affect how devices are presented in Home Assistant.
- Removing the integration does not modify original entities.
- The integration requires at least one configured instance (virtual device) or a YAML configuration entry to initialize properly.
