Add Tags / Labels to entities

This is something I don’t understand it’s not already in HA :slight_smile:

In your automations you can select a device/entity based on type and/or Location/Area.
But why isn’t there an option to add (multiple) tags to an entity?

In an automation you could choose one (ore more) labels the action to be executed on.

Sure there are ‘groups’, but that is rather clumsy compared to using labels.

Regards,
Marco

There is. You can assign custom attributes with Customize.

e.g.

configuration.yaml

homeassistant:
  customize: !include customize.yaml

customize.yaml

sensor.my_entity:
  tag: Any value you want
  foo: bar
  
cover.my_other_entity:
  day: 7
  bloop: true

https://www.home-assistant.io/docs/configuration/customizing-devices/#customizing-entities

2 Likes

Thanks for the quick reply, will look into it!

2024.4 - added labels.

Created a FR to add a yaml support for labels

1 Like

Closed as implemented in 2024.4