Get Label
ha_config_get_labelRetrieve Home Assistant label configurations: list all labels or fetch a specific one by ID. Use this to inspect label details before assigning them to entities, devices, or areas.
Instructions
Get label info - list all labels or get a specific one by ID.
Without a label_id: Lists all Home Assistant labels with their configurations. With a label_id: Returns configuration for that specific label.
EXAMPLES:
List all labels: ha_config_get_label()
Get specific label: ha_config_get_label("my_label_id")
Use ha_config_set_label() to create or update labels. Use ha_set_entity(labels=["label1", "label2"]) to assign labels to entities, ha_set_device(labels=[...]) for devices, or ha_set_area_or_floor(kind="area", labels=[...]) for areas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label_id | No | ID of the label to retrieve. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||