Home Assistant · Automations
Home Assistant Blueprints, Explained and Written
A blueprint is an automation with the hard parts already solved and the choices left as fill-in fields: pick the motion sensor, pick the light, set the timeout — done, no YAML. Blueprints are how the Home Assistant community ships its best patterns, and they are also, written yourself, how a household keeps twelve near-identical automations from becoming twelve separate maintenance problems. This guide covers finding and vetting blueprints, importing and using them, what “take control” really does, and writing a simple blueprint of your own.
Published Nov 21, 2026
What a blueprint actually is
A blueprint is a YAML file that describes an automation (or a script, or a template) with inputs where the specifics go. The blueprint author writes the logic once — trigger, conditions, the careful edge cases — and declares the inputs a user must supply: these entities, those numbers, this selector. When you create an automation from a blueprint, Home Assistant stores your input choices and renders the underlying automation from them. The automation you get behaves like any other, with one difference: edit the blueprint or re-import a newer version of it, and every automation made from it updates too. That single fact is both the power and the risk of the system, and it shapes everything below.
The inputs are typed with selectors — an entity picker filtered to lights, a number slider for minutes, a target picker for an area — which is why a good blueprint feels like a small settings page rather than a form full of traps. When you evaluate a blueprint, the input design is the quality signal: a blueprint that asks for exactly the decisions a household should make, with sensible defaults, is one whose author understood the problem. One that exposes forty knobs is a YAML file wearing a costume.
Finding them, and vetting what you find
The center of the ecosystem is the community Blueprints Exchange on the Home Assistant forums, where blueprints are posted with their documentation, discussion, and revision history in one thread. Blueprints also live on GitHub and in gists, and the built-in Marketplace surfaces community material as well. Importing is uniform: Settings → Automations & scenes → Blueprints → Import blueprint, paste the URL (a forum topic, a GitHub file, a gist), review the preview Home Assistant shows you, and confirm. My Home Assistant links — the “import this blueprint” badges on forum posts and documentation — shortcut the same flow.
Vet before you import, with the same skepticism you would apply to any code that will run your house. Read the thread: is the author active, are recent comments reporting success on current releases, does the blueprint ask for inputs that make sense for what it claims to do? Prefer blueprints whose YAML you can read — the preview is right there — and be wary of anything that calls external services you did not expect. A blueprint runs with the full power of your automations; the motion-activated-light blueprint from a maintained thread is a community treasure, and the standard is simply that you looked before you installed.
Using one, and the “take control” decision
From the Blueprints screen, “Use blueprint” starts a new automation with the input form. Fill it in, name the automation for the room and job rather than the blueprint (“Hallway motion light,” not “Blueprint automation 3”), and save. The automation then appears in your list like any other, marked as blueprint-based. Traces and debugging work the same way, with the blueprint’s logic rendered underneath.
Sooner or later you will want to change something the blueprint does not expose as an input. That is what Take control is for: it converts the blueprint automation into a regular, fully editable automation — a one-way door. The converted automation is yours to edit in YAML or the visual editor, and it stops following the blueprint from that moment. The decision rule is simple: take control when your change is permanent and specific to this one automation; stay on the blueprint when the change is really an improvement every copy should get (in which case it belongs upstream, or in your own fork of the blueprint). Households usually end up with a healthy mix — community blueprints where the pattern is standard, taken-control copies where the house is idiosyncratic, and no guilt about either.
Writing your own: smaller than you think
The moment a household writes its third copy of the same automation with different entities, it owns a blueprint waiting to be written. The structure is modest: a blueprint: block naming the blueprint, its domain (automation, script, or template), and its inputs with selectors and defaults — then the automation body, with inputs referenced as variables. A motion-light blueprint, for instance, takes a motion sensor, a light target, and a no-motion timeout, and its body is the trigger-condition-action pattern from the automations guide with the three inputs standing where the entity IDs used to be.
Two habits separate a blueprint your future self thanks you for from one that gets taken control of and abandoned. First, defaults that make it work untouched: a reasonable timeout, the obvious mode, the sensible brightness — the blueprint should be correct the moment the required inputs are picked, with the optional inputs there for tuning rather than rescue. Second, a description written for the person filling the form, which in a household is usually also you, in eight months, having forgotten everything. Name inputs by the decision (“How long after motion stops should the light turn off?”), not by the variable. Store your blueprints in the config’s blueprints folder, keep them in whatever backup covers your configuration, and version them by editing the file — every automation made from the blueprint picks up the change, which is the entire point.
Script and template blueprints: the other two domains
Automation blueprints get the attention, but the same mechanism serves scripts and templates. A script blueprint packages a reusable sequence — the “announce and flash the lights” routine, the bedtime shutdown — with inputs for the pieces that vary, so every automation calls the same maintained version instead of embedding its own copy of the steps. A template blueprint packages a sensor definition: the computed value a household wants in several rooms, defined once with the room’s entities as inputs. Both follow the automation pattern exactly — import or write the file, create instances from the form, take control when one instance outgrows the pattern. If your automations already feel tidy but your scripts are a museum of near-duplicates, that is the sign the second domain is where your next blueprint belongs.
Blueprints versus copies: the maintenance math
It is worth being concrete about what the blueprint model buys, because the alternative — duplicating a good automation and editing the copies — looks free and is not. Ten motion-light automations built as copies behave identically on day one. In month four you discover the lights should not trigger while the vacuum runs, or the timeout is wrong for hallways, and the fix is either ten edits (of which nine will happen) or one edit to a blueprint that all ten follow. The copies also drift in the small ways that make a house feel haunted: one hallway got the new brightness, another did not, and nobody remembers why. The blueprint’s countervailing cost is real too — the pattern must be genuinely shared, and forcing a one-off automation into a blueprint’s shape wastes more time than it saves. The judgment call is the count: two copies is a coincidence, three is a pattern, and patterns are what blueprints are for.
There is a second, quieter benefit: a household blueprint library is documentation. The set of blueprint files in your configuration describes how your house behaves — the patterns you settled on, with the inputs each instance chose — in a form a future maintainer (or a future you, post-holiday and forgetful) can read in minutes. Community blueprints extend the same courtesy in the other direction: importing one is also importing the author’s documentation of the pattern, which is why the maintained, well-described blueprint beats the clever one every time.
Where blueprints fit in the bigger picture
Blueprints are not a replacement for understanding automations; they are how understanding gets reused. The healthy progression this site recommends: learn the trigger-condition-action model on two or three hand-built automations, adopt community blueprints for the standard patterns (motion lighting is the canonical one), take control when the house outgrows a pattern, and write your own when a pattern repeats. Each stage uses the previous one’s knowledge, and none of it locks you in — a blueprint is a file, an automation is a file, and both are yours, stored locally, with no service in the middle. That is the local-first philosophy applied to automation itself, and it is why blueprints have become the community’s default way of sharing its best work.
Official documentation and references
- Home Assistant — Using blueprints — importing, using, and taking control, from the official docs
- Home Assistant Community — home of the Blueprints Exchange, where blueprints are published and discussed
- My Home Assistant — the link service behind the one-click blueprint import badges
Frequently asked questions
Where do I find blueprints?
The community Blueprints Exchange on the Home Assistant forums is the main source, with blueprints documented and discussed in their threads. Blueprints also live on GitHub and in gists, and import works from any of those URLs.
How do I import a blueprint?
Settings → Automations & scenes → Blueprints → Import blueprint, then paste the URL of the forum topic, GitHub file, or gist. Home Assistant previews the blueprint before adding it. Forum posts often carry a My Home Assistant badge that starts the same flow in one click.
What does “take control” do?
It converts a blueprint-based automation into a regular automation you can edit freely — including parts the blueprint never exposed as inputs. It is one-way: the converted automation no longer updates when the blueprint changes.
When should I write my own blueprint?
When you have built the same automation a third time with different entities. A blueprint turns that repeated pattern into one file with fill-in inputs, so the next ten copies are a form each — and a fix to the pattern lands everywhere at once.

