ha-automation

Create and debug Home Assistant automations, scripts, blueprints, and Jinja2 templates.

Updated Jun 11, 2026
One-click install
npx skills add https://github.com/brillianodhiya/VisionScript --skill ha-automation-brillianodhiya
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ha-automation
Source: https://github.com/brillianodhiya/VisionScript/tree/main/.agents/skills/ha-automation
Command: npx skills add https://github.com/brillianodhiya/VisionScript --skill ha-automation-brillianodhiya

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing Home Assistant automations by hand often leads to YAML syntax errors, broken Jinja2 templates, incorrect trigger formats, and blueprint inputs that silently fail. This Skill provides correct patterns and debugging guidance so automations work the first time. ## Core Features & Use Cases - Automation Authoring: Build automations with correct trigger, condition, action, and mode syntax covering state, time, sun, zone, MQTT, webhook, and template triggers. - Jinja2 Templating: Write and debug template expressions with proper filters, defaults, conditionals, and loops using Developer Tools. - Blueprint Creation: Convert standalone automations into reusable blueprints with parameterized inputs and typed selectors. - Use Case: You want lights to turn off when everyone leaves but only after sunset. This Skill gives you the correct zone trigger, sun condition, and service call structure, plus guidance on choosing the right automation mode. ## Quick Start Ask the assistant to create a Home Assistant automation that turns on a light at sunset with a brightness condition, and it will produce valid YAML using this skill.

Frequently Asked Questions about ha-automation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Home Assistant automation in YAML?▼

Define an automation with an alias, a trigger (such as state, time, or sun), optional conditions, and an action that calls a service with a target entity. Set the mode field to single, restart, queued, or parallel depending on retrigger behavior.

How to write Jinja2 templates in Home Assistant?▼

Use states('entity.id') to read states and state_attr() for attributes, then apply filters like float, int, round, or default for safe conversions. Test every template in Developer Tools > Template before deploying it in an automation.

How do I convert an automation into a Home Assistant blueprint?▼

Add a blueprint block with name, description, domain, and input definitions using selectors such as entity, number, or boolean. Replace hardcoded values in triggers and actions with !input variable_name tags, then place the file in config/blueprints/automation/.

Why is my Home Assistant automation not triggering?▼

Triggers fail when entity IDs or state values do not match exactly, since states are case-sensitive. Verify the exact state in the States tab of Developer Tools and add a for: duration to avoid false triggers from brief changes.

Why does my Jinja2 template show an error in Home Assistant?▼

Template errors usually come from undefined variables or incorrect filter syntax. Add the | default() filter for optional values, confirm entity IDs exist, and validate the expression in Developer Tools > Template.

When should I not use this automation skill?▼

It does not cover Home Assistant installation, integration setup, Lovelace dashboard configuration, or Frigate NVR camera setup. Use dedicated dashboard or Frigate skills for those tasks instead.