homeassistant-config

homeassistant-config is a skill for Claude Code from narrowstacks/claude-homeassistant-plugins. It costs 66 tokens per session (1,515 once invoked), scanned A, original, MIT.

Configuration guidance for Home Assistant, a system for controlling smart-home devices. It covers YAML files, automations, scripts, templates, and ways to split configuration into multiple files.

In plain words
What is it for?
Writing rules that react to device events, controlling lights or other devices, creating reusable scripts and calculated sensors, and checking configuration structure.
Why use it?
It helps prevent YAML errors and makes automations and large Home Assistant setups easier to organize and troubleshoot.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the homeassistant-config plugin — 1 skill shipped together

Good fit Writing rules that react to device events, controlling lights or other devices, creating reusable scripts and calculated sensors, and checking configuration structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/narrowstacks/claude-homeassistant-plugins/homeassistant-config
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add narrowstacks/claude-homeassistant-plugins --skill homeassistant-config
Clone the repo
git clone --depth 1 https://github.com/narrowstacks/claude-homeassistant-plugins

Made for: Claude Code.

Or install homeassistant-config, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for homeassistant-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/narrowstacks/claude-homeassistant-plugins/homeassistant-config/github.svg)](https://agentmods.dev/skills/narrowstacks/claude-homeassistant-plugins/homeassistant-config)
Your own site
<a href="https://agentmods.dev/skills/narrowstacks/claude-homeassistant-plugins/homeassistant-config"><img src="https://agentmods.dev/badge/skills/narrowstacks/claude-homeassistant-plugins/homeassistant-config/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for homeassistant-config

Your own site · 80×15
<a href="https://agentmods.dev/skills/narrowstacks/claude-homeassistant-plugins/homeassistant-config"><img src="https://agentmods.dev/badge/skills/narrowstacks/claude-homeassistant-plugins/homeassistant-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,515 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.01515
Opus 5 $0.00033 $0.00758
Sonnet 5 $0.00013 $0.00303
Haiku 4.5 $0.00007 $0.00152

Measured 10d ago against content hash 26e12594445e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

homeassistant-config scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

homeassistant-config/skills/homeassistant-config/SKILL.md · 261 lines

How it starts

The opening of the file, as written. The whole thing — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Home Assistant Configuration

Create and manage Home Assistant configuration files with proper YAML syntax, automations, scripts, and templates.

When to Use This Skill

Use when working with:

  • Main configuration.yaml files and includes
  • Automations (triggers, conditions, actions)
  • Scripts with parameters
  • Jinja2 templates and template sensors
  • File organization and splitting
  • YAML syntax validation
  • Home Assistant troubleshooting

Core YAML Rules

Critical syntax requirements:

  • Indentation: 2 spaces per level (never tabs)
  • Lists: Start with - at same indentation
  • Strings: Quote 'on', 'off', 'yes', 'no' to avoid boolean conversion
  • Case sensitive: 'on' ≠ 'On' ≠ 'ON'
  • Comments: Use #

Example structure:

automation:
  - alias: "Descriptive Name"
    triggers:
      - trigger: state
        entity_id: sensor.example
    actions:
      - action: light.turn_on

File Organization

Basic Includes

# configuration.yaml
automation: !include automations.yaml
script: !include scripts.yaml
sensor: !include sensors.yaml

Directory Includes

# Merge as list (files start with -)
automation: !include_dir_list automations/
sensor: !include_dir_merge_list sensors/

# Merge as named dict
script: !include_dir_merge_named scripts/

Secrets Management

Store sensitive data in secrets.yaml (add to .gitignore):

# secrets.yaml
api_key: "abc123"

# configuration.yaml
platform: service
api_key: !secret api_key

Automations

Current Syntax (2024+)

- alias: "Name"
  triggers:
    - trigger: [type]
  conditions:
    - condition: [type]
  actions:
    - action: [service]

Common Triggers

State: trigger: state with entity_id, from, to, for Time: trigger: time with at Numeric: trigger: numeric_state with above/below Sun: trigger: sun with event: sunset/sunrise Template: trigger: template with value_template

Common Actions

Service call:

- action: light.turn_on
  target:
    entity_id: light.bedroom
  data:
    brightness: 255

Read the full file on GitHub · 261 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 261 lines · 66 tokens per session scan A 26e12594445e

Subscribe to this mod's changes

homeassistant-config is a skill published in the GitHub repository narrowstacks/claude-homeassistant-plugins (3 stars, last pushed 10mo ago), licensed MIT. It adds 66 tokens to every session and 1,515 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

jetson-diagnostic

Read-only Jetson health snapshot for identity, memory, GPU, thermal, power, storage, services, and top processes.

NVIDIA/skills · 30 tokens

doca-socket-relay

Use this skill when the operator is driving the DOCA Socket Relay to bridge a socket-oriented host application onto a BlueField DPU peer without rewriting it — picking the deployment shape (in-process, sidecar, or BlueField service container), configuring the host-side socket and the DPU-side forwarding endpoint…

NVIDIA/skills · 236 tokens

offensive-z-wave

Z-Wave attack methodology — sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting…

SnailSploit/Claude-Red · 113 tokens

hsb-flash

Flash the FPGA on an HSB board connected to an NVIDIA devkit. Supports HSB Lattice boards (FPGA versions 2407, 2412, 2507, 2510) and Leopard Imaging VB1940 "all-in-one" cameras (FPGA versions 2507, 2510). Uses release-specific YAML manifests and board-type-specific program commands. Lattice and VB1940 commands must…

NVIDIA/skills · 94 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens