create_or_update_automation
Create a new automation or update an existing one by providing a unique ID and full configuration including alias, trigger, action, and mode.
Instructions
Create or overwrite a stored automation config via the HA REST API.
Args:
automation_id: Unique string ID for the automation (e.g. a timestamp like
"1716300000000"). Use a new value to create; pass the existing ID
to update in place.
config: Full automation config dict. Must include at least alias,
trigger, action, and mode. Do NOT include "id" — it is
injected automatically from automation_id.
Returns the raw HA response (usually {"result": "ok"}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| automation_id | Yes | ||
| config | Yes |