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"}).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"automation_id": "<automation_id>",
"config": "<config>"
},
"name": "create_or_update_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| automation_id | Yes | ||
| config | Yes |