Skip to article frontmatterSkip to article content
Core extensions

Label management

If you liked it then you should have put a label on it 🏷️

Labels in Home Assistant can be freely created / be made up by you and used to create your own organizational structure by tagging devices, entities, or areas with one or more labels. Labels can be used to filter items shows in tables in the user interface, or to target actions in for example automations, or scripts.

Spook provides that allows you to manage and automate the areas in Home Assistant programatically. Great for creating “dynamic” labels, or for creating labels on the fly.

Screenshot of the developer actions tools, listing the new actions to manage labels.

Actions¶

Spook adds the following new actions to your Home Assistant instance:

Create a label¶

Adds a new label to your Home Assistant instance.

Screenshot of the create label action in the developer tools.
Action properties
ActionCreate an label đź‘»
Action namehomeassistant.create_label
Action targetsNo
Action responseNo response
Spook's influenceNewly added action
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
namestringYesBattery powered
descriptionstringNoLabel to tag all battery powered devices
iconstringNomdi:battery
colorstringNoindigo

Delete a label¶

Delete a new label to your Home Assistant instance.

Screenshot of the delete label action in the developer tools.
Action properties
ActionDelete a label đź‘»
Action namehomeassistant.delete_label
Action targetsNo
Action responseNo response
Spook's influenceNewly added action
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
label_idstringYesbattery_powered

Add a label to an area¶

Adds one or more labels(s) to an area.

Screenshot of the add a label to an area action in the developer tools.
Action properties
ActionAdd a label to an area đź‘»
Action namehomeassistant.add_label_to_area
Action targetsNo
Action responseNo response
Spook's influenceNewly added action
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
label_idstring | list of stringsYesliving_space
area_idstring | list of stringsYesliving_room

Remove a label from an area¶

Removes one or more label(s) from an area.

Screenshot of the remove a label from an area action in the developer tools.
Action properties
ActionRemove a label from an area đź‘»
Action namehomeassistant.remove_label_from_area
Action targetsNo
Action responseNo response
Spook's influenceNewly added action
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
label_idstring | list of stringsYesliving_space
area_idstring | list of stringsYesliving_room

Add a label to a device¶

Adds one or more labels(s) to a device.

Screenshot of the add a label to a device action in the developer tools.
Action properties
ActionAdd a label to a device đź‘»
Action namehomeassistant.add_label_to_device
Action targetsNo
Action responseNo response
Spook's influenceNewly added action
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
label_idstring | list of stringsYesbattery_powered
device_idstring | list of stringsYesdc23e666e6100f184e642a0ac345d3eb

Remove a label from a device¶

Removes one or more label(s) from a device.

Screenshot of the remove a label from a device action in the developer tools.
Action properties
ActionRemove a label from a device đź‘»
Action namehomeassistant.remove_label_from_device
Action targetsNo
Action responseNo response
Spook's influenceNewly added action
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
label_idstring | list of stringsYesbattery_powered
device_idstring | list of stringsYesdc23e666e6100f184e642a0ac345d3eb

Add a label to an entity¶

Adds one or more labels(s) to an entity.

Screenshot of the add a label to an entity action in the developer tools.
Action properties
ActionAdd a label to an entity đź‘»
Action namehomeassistant.add_label_to_entity
Action targetsNo
Action responseNo response
Spook's influenceNewly added action
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
label_idstring | list of stringsYesbattery_powered
entity_idstring | list of stringsYessensor.outside_temperature

Remove a label from an entity¶

Removes one or more label(s) from an entity.

Screenshot of the remove a label from an entity action in the developer tools.
Action properties
ActionRemove a label from an entity đź‘»
Action namehomeassistant.remove_label_from_entity
Action targetsNo
Action responseNo response
Spook's influenceNewly added action
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
label_idstring | list of stringsYesbattery_powered
entity_idstring | list of stringsYessensor.outside_temperature

Blueprints & tutorials¶

There are currently no known blueprints or tutorials for the enhancements Spook provides for this integration. If you created one or stumbled upon one, please let us know in our discussion forums.

Features requests, ideas, and support¶

If you have an idea on how to further enhance this integration, for example, by adding a new action, entity, or repairs detection; feel free to let us know in our discussion forums.

Are you stuck using these new features? Or maybe you’ve run into a bug? Please check the page on where to go for help.