home-assistant

home-assistant is a skill for Claude Code from sammcj/agentic-coding. It costs 57 tokens per session (3,259 once invoked), scanned A, original, Apache-2.0.

A helper for managing Home Assistant, software that connects and automates smart-home devices. It works with devices, services, dashboards, automations, and their YAML configuration files.

In plain words
What is it for?
Use it to check device states, debug automations, modify dashboards, and create YAML for smart-home routines.
Why use it?
It helps you inspect what exists in your smart home, find similar setups, diagnose automation problems, and produce configuration that matches your installation.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to check device states, debug automations, modify dashboards, and create YAML for smart-home routines.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sammcj/agentic-coding/home-assistant
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 sammcj/agentic-coding --skill home-assistant
Clone the repo
git clone --depth 1 https://github.com/sammcj/agentic-coding

Made for: Claude Code.

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 home-assistant

README.md
[![agentmods](https://agentmods.dev/badge/skills/sammcj/agentic-coding/home-assistant/github.svg)](https://agentmods.dev/skills/sammcj/agentic-coding/home-assistant)
Your own site
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/home-assistant"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/home-assistant/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 home-assistant

Your own site · 80×15
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/home-assistant"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/home-assistant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,259 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 33
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.00057 $0.03259
Opus 5.5 $0.00023 $0.01304
Sonnet 5.5 $0.00011 $0.00652
Haiku 4.5 $0.00006 $0.00326

Measured 1mo ago against content hash 40f5f1d29fb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

home-assistant 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 1mo ago.

The scan reads SKILL.md. This mod also ships 12 executable files (scripts/ha_call_service.py, scripts/ha_get_automations.py, scripts/ha_get_config_entries.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Skills/home-assistant/SKILL.md · 370 lines

How it starts

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

Home Assistant Helper

Overview

This skill provides tools and workflows for working with Home Assistant installations. It enables querying the live HA instance for entities, services, and configuration data, debugging automations, and generating YAML configurations for automations and dashboards.

Key Capabilities:

  • Query entities, states, and services from the live HA installation
  • Search for similar entities to use as examples
  • Check automation states and execution history
  • Generate YAML configurations for copy/paste into HA
  • Find real examples from the user's setup to inform new configurations

Core Workflow

When helping with Home Assistant tasks, follow this general approach:

  1. Understand the requirement - What is the user trying to accomplish?
  2. Discover existing entities - Use scripts to find relevant entities in their setup
  3. Find similar examples - Search for existing automations or entities that do something similar
  4. Generate YAML - Create well-formed YAML that can be copied directly into HA
  5. Explain the configuration - Describe what the YAML does and how to install it

Available Scripts

All scripts require the HA_TOKEN environment variable to be set, which contains the Home Assistant long-lived access token. The HA instance is available at http://homeassistant.local:8123.

Important: All scripts now use uv with inline PEP 723 dependency declarations and the homeassistant-api library for consistent, maintainable code. Dependencies are automatically installed by uv on first run.

Entity Discovery

ha_get_entities.py [domain]

Retrieve all entities, optionally filtered by domain.

Usage:

uv run scripts/ha_get_entities.py           # All entities
uv run scripts/ha_get_entities.py light     # Just lights
uv run scripts/ha_get_entities.py sensor    # Just sensors

When to use: To discover what entities are available, especially when building new automations.

ha_get_state.py <entity_id>

Get the current state and attributes of a specific entity.

Read the full file on GitHub · 370 lines

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. 1mo ago Changed · +2 lines 40f5f1d29fb4
  2. 1mo ago First seen · 368 lines · 57 tokens per session scan A ba3e167ef12e

Subscribe to this mod's changes

home-assistant is a skill published in the GitHub repository sammcj/agentic-coding (165 stars, last pushed yesterday), licensed Apache-2.0. It adds 57 tokens to every session and 3,259 once invoked, about $0.0002 per session on Opus 5.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-30.

Related

Other skills, from other repositories

technical-troubleshooting

Provide setup, troubleshooting, and maintenance guidance. Use when the user reports a device that won't power on, connectivity issues, setup questions, overheating, or maintenance concerns.

strands-agents/samples · 38 tokens

gap

Program robots with GaP (graph-as-policy) — compile natural-language tasks into typed, verified robot skill graphs and run them on simulators or real robots. Use when the user mentions GaP or graph-as-policy, robot manipulation, robot skills, robot tools or capabilities, skill registries, open-robot-skills, LIBERO or…

graph-robots/graph-as-policy · 195 tokens

mactop

Retrieve real-time hardware metrics from Apple Silicon Macs using mactop. Provides CPU, RAM, GPU, power, thermal, network, disk I/O, and Thunderbolt bus information. Use when the user wants system stats, hardware monitoring, or performance metrics on Apple Silicon Macs.

metaspartan/cybara · 60 tokens

agentproto-llm-endpoint

Use the local LLM endpoint proxy (localhost:18090) — or your own gated public deployment — to route Claude Code / Claude SDK through custom providers (OpenRouter, Moonshot, Groq, ZAI) via an Anthropic-compatible gateway. Covers adapter-specific behaviors, auth patterns, proxy codenames, and common failure modes.

agentproto/ts · 77 tokens

agentpush

Bridge an imported agentpush MCP server (Telegram, WhatsApp, etc.) with live agentproto sessions via the daemon's transmitter subsystem: transmitmessage sends outbound and binds the recipient to a session, inboundwatcherstart polls agentpush for new messages, and inboundendpointcreate/POST /inbound(/:slug) route…

agentproto/ts · 119 tokens

bureau

Drive Bureau — the browser stack's installable capability server: a stealth Firefox (Camofox) + daemon that exposes browser tools as MCP-over-HTTP on :8830, plus a CLI for saved browser identities (sessions), social capture / search, adapter health probes, declarative workflows, and Guilde connection. Use when working…

agentproto/ts · 131 tokens