automations

Define and manage Home Assistant automations in YAML with triggers, conditions, and actions.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/renne/skills --skill automations
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: automations
Source: https://github.com/renne/skills/tree/main/home-assistant/automations
Command: npx skills add https://github.com/renne/skills --skill automations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill empowers users to create custom, event-driven automations within their Home Assistant smart home setup, reducing manual intervention and enhancing home functionality.

Core Features & Use Cases

  • Trigger Definition: Set up automations to start based on various events like state changes, time, sun position, or webhooks.
  • Condition Logic: Implement precise control by defining conditions that must be met before actions are executed, including time-based and state-based rules.
  • Action Execution: Define sequences of actions, such as controlling lights, sending notifications, or calling services.
  • Advanced Features: Utilize automation modes, variables, blueprints, and choose/parallel/repeat structures for complex scenarios.
  • Use Case: Automatically turn on porch lights at sunset, but only if nobody is home and after 6 PM.

Quick Start

Use the automations skill to create a new automation that turns on the living room light when motion is detected in the hallway after 10 PM.

Frequently Asked Questions about automations

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

FAQPage Schema
How do I write Home Assistant automations in YAML?▼

To write Home Assistant automations in YAML, you define triggers, conditions, and actions. This event-driven structure lets you precisely control smart home flows by specifying state changes, time schedules, or webhook events that execute service calls.

Can I use conditions to prevent a Home Assistant automation from running?▼

Yes, you can use conditions to prevent a Home Assistant automation from running. By implementing state-based or time-based rules, the automation actions only execute when specific criteria are met, ensuring precise control over your smart home devices.

How do I create an event-driven automation flow in Home Assistant?▼

You create an event-driven automation flow in Home Assistant by setting up triggers that respond to state changes, sun position, time, or webhooks. This initiates a sequence of actions, such as sending notifications or controlling lights, based on real-time events.

What are Home Assistant automation modes and when do I need them?▼

Home Assistant automation modes control how an automation behaves when triggered again while already running. You need these modes, along with variables and choose/parallel/repeat structures, to manage complex scenarios and prevent conflicting smart home actions.

Does Home Assistant support reusing automation configurations with blueprints?▼

Yes, Home Assistant supports reusing automation configurations with blueprints. Blueprints allow you to create templates for event-driven flows, making it easier to deploy complex trigger, condition, and action logic across multiple devices without rewriting YAML.

Why is my Home Assistant automation not triggering at sunset?▼

Your Home Assistant automation might not trigger at sunset if the condition logic is not met. Automations require both the sun position trigger and specific conditions, such as time-based rules or presence detection, to be satisfied before executing actions.