Import Blueprint
ha_import_blueprintImport Home Assistant blueprints from GitHub, community forums, or direct YAML URLs. Overwrite to re-import and refresh automations.
Instructions
Import a blueprint from a URL.
Imports a blueprint from GitHub, Home Assistant Community forums, or any direct URL to a blueprint YAML file. Set overwrite=true to re-import a blueprint that is already installed (equivalent to the UI's "Re-import blueprint" action) - Home Assistant then reloads all automations/scripts that use it.
EXAMPLES:
Import from GitHub: ha_import_blueprint("https://github.com/user/repo/blob/main/blueprint.yaml")
Import from HA Community: ha_import_blueprint("https://community.home-assistant.io/t/motion-light/123456")
Import direct YAML: ha_import_blueprint("https://example.com/my-blueprint.yaml")
Re-import an installed blueprint: ha_import_blueprint("https://example.com/my-blueprint.yaml", overwrite=True)
SUPPORTED SOURCES:
GitHub repository URLs (will be converted to raw URLs)
Home Assistant Community forum posts with blueprint code
Direct URLs to YAML blueprint files
RETURNS:
Import result with the blueprint path where it was saved
Blueprint metadata (name, domain, description)
overrides_existing: true when an installed blueprint was overwritten
Error details if import fails
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to import blueprint from (GitHub, Home Assistant Community, or direct YAML URL) | |
| overwrite | No | Overwrite the blueprint if it is already installed (re-import). Home Assistant reloads all automations/scripts using the blueprint. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||