Home Assistant Automations at Scale

    1

    Draft, audit, and debug Home Assistant YAML automations with conflict detection and security-safe defaults.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Home Assistant Automations at Scale

    Example session with this skill installed

    Write a Home Assistant automation to turn on the porch light when motion is detected after sunset, but turn it off after 5 minutes of no motion. Use a mode that handles re-triggers.

    • Read your context and instructions
    • Compiled the home assistant automations

    I have drafted a motion-activated lighting automation using the restart mode. This ensures that every time motion is detected, the 5-minute timer resets, preventing the light from turning off while someone is still outside. I used entity_id for portability and included a for duration on the trigger to prevent flapping.

    Porch Motion Automation

    - id: porch_light_motion_control
      alias: "Outdoor: Porch Light on Motion"
      description: "Turns on porch light at night when motion is detected and off after 5 minutes of quiet."
      mode: restart
      trigger:
        - platform: state
          entity_id: binary_sensor.porch_motion
          from: "off"
          to: "on"
      condition:
        - condition: state
          entity_id: sun.sun
          state: "below_horizon"
      action:
        - service: light.turn_on
          target:
            entity_id: light.porch_light
        - wait_for_trigger:
            - platform: state
              entity_id: binary_sensor.porch_motion
              from: "on"
              to: "off"
              for:
                minutes: 5
        - service: light.turn_off
          target:
            entity_id: light.porch_light
    

    Next steps

    1. Copy this YAML into your automations.yaml file.
    2. Run python scripts/ha_check.py automations.yaml to ensure no other automation is fighting for control of light.porch_light.
    3. Go to Developer Tools -> YAML -> Reload Automations to apply the changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    No loops, no fights, safe locks and heating.

    Write, review and debug Home Assistant automations, scripts and scenes in YAML - correct triggers, conditions and modes, no feedback loops, safe defaults for heating, locks and alarms - and check them with a loop/conflict detector before reloading. Use when the user wants a smart-home automation, a Home Assistant YAML fix, or asks why an automation fires twice, never fires, or fights another one.

    Includes an EXPERT.md reference (exact parameters, thresholds, failure diagnosis). Tested scripts: scripts/ha_check.py.

    Only analyzes YAML files; cannot read UI-only automations or expanded blueprints. Requires manual script execution for conflict detection.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 28 days ago

    Permissions

    Terminal / Shell
    Read Files
    Listed28 days ago

    What's inside

    Frequently Asked Questions

    This skill solves the common issues of 'automation fights' and logic loops that lead to instability. It enforces best practices like duration filters for sensors and security conditions for critical hardware, ensuring your smart home behaves predictably.

    The skill is designed for any LLM-based agent that supports YAML text processing. While it works best with models optimized for coding, it includes specific guardrails to prevent the AI from using brittle device IDs, ensuring the output is compatible with standard Home Assistant environments.

    You will receive a disciplined framework for drafting YAML automations, a set of security-safe defaults, and the 'ha_check.py' validation script. This combination allows you to generate, audit, and debug complex Jinja2 templates and automation traces efficiently.

    Yes, it is specifically designed to handle advanced Jinja2 templating for dynamic triggers and state-based logic. It ensures that complex templates remain readable and follow Home Assistant's specific syntax requirements for data processing.

    This skill focuses on raw YAML, scripts, and scenes to ensure portability and version control. It does not support UI-only automations or runtime-expanded blueprints, as these are often less transparent for deep debugging and conflict detection.

    The skill includes built-in trace analysis steps that help you interpret state strings and time zone offsets. By passing your current code and logs to the skill, it can diagnose why a specific trigger failed or why a condition wasn't met.

    New in Workflow Automation