Get an automation's stored config
automations_get_automation_configFetch the stored configuration of a Home Assistant automation by its config ID, returning triggers, conditions, actions, and mode as a dictionary.
Instructions
Get the stored config of one automation (automations.yaml) as a dict.
Requests /api/config/automation/config/<id> over HTTP and returns
the parsed JSON, or None on a 404 — including for automations defined
in packages/YAML without an id, since those have no config-id route.
Not for: the automation's current runtime state — use
automations_list_automations or entities_get_entity for that.
Returns: dict with id, alias, trigger/triggers,
condition/conditions, action/actions and mode, or None when
no automation has that config id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| automation_id | Yes | Automation config id — the entity's `id` attribute, e.g. '1733294456585' — not its entity_id. A leading 'automation.' is stripped, but the rest must still be the config id (read it from `entities_get_entity(entity_id)` -> attributes.id), which differs from the entity's object_id for UI-created automations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |