Get Category
ha_config_get_categoryRetrieve Home Assistant categories for a domain scope like automations or scripts, or get a specific category by ID. Organize automations, scripts, scenes, and helpers into groups.
Instructions
Get category info - list all categories for a scope or get a specific one by ID.
Without a category_id: Lists all Home Assistant categories for the given scope. With a category_id: Returns configuration for that specific category.
Categories are domain-scoped organizational groups for automations, scripts, scenes, and helpers.
CATEGORY PROPERTIES:
ID (category_id), Name
Icon (optional)
EXAMPLES:
List automation categories: ha_config_get_category("automation")
List script categories: ha_config_get_category("script")
List helper categories: ha_config_get_category("helpers")
Get specific category: ha_config_get_category("automation", category_id="my_category_id")
Use ha_config_set_category() to create or update categories. Use ha_set_entity(categories={"automation": "category_id"}) to assign categories to entities.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Domain scope for categories (e.g., 'automation', 'script', 'scene', 'helpers'). | |
| category_id | No | ID of the category to retrieve. If omitted, lists all categories for the scope. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||