Save a blueprint file
blueprints_save_blueprintSaves blueprint YAML to Home Assistant's blueprints folder. Set overwrite to replace an existing file.
Instructions
Save blueprint YAML to /config/blueprints//.
Calls the blueprint/save WebSocket command with yaml_content as the
payload and overwrite mapped to HA's allow_override flag; with
overwrite=False (default) it does not replace an existing file at
path, and with overwrite=True it does, losing the previous content.
Not for: fetching a blueprint from the internet first — use
blueprints_import_blueprint to get raw_data/suggested_filename.
Returns: Home Assistant's blueprint/save result (typically an empty
success payload).
Errors: Home Assistant raises a WebSocket error, surfaced by
ha._ws_call as a RuntimeError, when overwrite=False and a file
already exists at path.
Limits: blocks for the WebSocket round trip; the default 10 second
response wait in ha._ws_call applies. No confirm parameter — the
only overwrite guard is the overwrite flag itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Blueprint path relative to /config/blueprints/<domain>/, e.g. 'author/blueprint_name.yaml'. Typically the `suggested_filename` from `blueprints_import_blueprint`. | |
| domain | No | Blueprint domain folder to save under, 'automation' or 'script'. Defaults to 'automation'. | automation |
| overwrite | No | If True, replace an existing file at `path`. If False (default), Home Assistant refuses the save when a file already exists there. | |
| source_url | No | Origin URL to record as the blueprint's source_url metadata. Omit to save without one. | |
| yaml_content | Yes | Raw blueprint YAML text to persist, e.g. the `raw_data` field returned by `blueprints_import_blueprint`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||