Home Assistant Automation Skill

Create YAML automations for Home Assistant with triggers, conditions, and actions.

18|2|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/markus41/claude --skill home-assistant-automation-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Home Assistant Automation Skill
Source: https://github.com/markus41/claude/tree/main/plugins/home-assistant-architect/skills/ha-automation
Command: npx skills add https://github.com/markus41/claude --skill home-assistant-automation-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and examples for creating and managing automations within the Home Assistant smart home platform, simplifying complex automation logic.

Core Features & Use Cases

  • YAML Automation Structure: Learn the complete structure for defining automations, including alias, ID, description, mode, variables, triggers, conditions, and actions.
  • Trigger & Condition Types: Explore various trigger platforms (state, time, sun, numeric state, template, event, device, webhook, MQTT) and condition types (state, numeric state, time, sun, zone, template, logical operators).
  • Action Patterns: Implement service calls, dynamic targets, delays, waits, choose/if-then-else logic, repeats, parallel actions, and response variable handling.
  • Use Case: Set up an automation that turns on your porch light at sunset, but only if no one is home and the temperature is below 50 degrees Fahrenheit.

Quick Start

Use the ha-automation skill to create a Home Assistant automation that turns on the living room lights when motion is detected after sunset.

Frequently Asked Questions about Home Assistant Automation Skill

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

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

Home Assistant automation YAML requires defining alias, ID, description, mode, variables, triggers, conditions, and actions. This structure allows you to create complex smart home routines by specifying event-driven logic and service calls.

What trigger platforms can I use for Home Assistant automations?

Home Assistant automations support state, time, sun, numeric state, template, event, device, webhook, and MQTT trigger platforms. These allow you to initiate routines based on diverse smart home events and environmental changes.

How do I add conditions to a Home Assistant smart home routine?

Conditions in Home Assistant automations validate state, numeric state, time, sun, zone, and template logic before executing actions. You can apply logical operators to ensure routines only run when specific criteria are met.

Can I use dynamic targets and choose logic in Home Assistant actions?

Home Assistant actions support service calls, dynamic targets, delays, waits, choose/if-then-else logic, repeats, and parallel actions. This enables complex event-driven sequences and response variable handling within your routines.

Do I need to understand Home Assistant entities to use YAML automations?

Creating Home Assistant YAML automations requires understanding the platform's entity model and service calls. You must reference specific entities to successfully implement triggers, conditions, and actions in your smart home routines.

What's the best way to turn on a porch light at sunset based on temperature and presence?

Use Home Assistant YAML automation with a sun trigger, state conditions for presence and numeric state for temperature below 50 degrees. This combination executes actions only when all specified criteria are satisfied.