esphome-homeassistant

esphome-homeassistant is an agent for Claude Code from nodnarbnitram/claude-code-extensions. It costs 93 tokens per session (5,339 once invoked), scanned A, original, MIT.

A guide for connecting ESPHome devices with Home Assistant, the open-source smart-home platform. It covers shared entities, service calls, events, state synchronization, time, and dashboards.

In plain words
What is it for?
Use it to expose ESPHome entities, import Home Assistant states, call Home Assistant services, fire events, synchronize time, and configure dashboards.
Why use it?
It helps devices and Home Assistant exchange information and commands in both directions.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the cce-esphome plugin — 6 agents shipped together

Good fit Use it to expose ESPHome entities, import Home Assistant states, call Home Assistant services, fire events, synchronize time, and configure dashboards.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nodnarbnitram/claude-code-extensions/esphome-homeassistant
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.

Clone the repo
git clone --depth 1 https://github.com/nodnarbnitram/claude-code-extensions

Made for: Claude Code.

Or install cce-esphome, the plugin that ships this one along with the rest of its 6 agents.

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 esphome-homeassistant

README.md
[![agentmods](https://agentmods.dev/badge/agents/nodnarbnitram/claude-code-extensions/esphome-homeassistant/github.svg)](https://agentmods.dev/agents/nodnarbnitram/claude-code-extensions/esphome-homeassistant)
Your own site
<a href="https://agentmods.dev/agents/nodnarbnitram/claude-code-extensions/esphome-homeassistant"><img src="https://agentmods.dev/badge/agents/nodnarbnitram/claude-code-extensions/esphome-homeassistant/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 esphome-homeassistant

Your own site · 80×15
<a href="https://agentmods.dev/agents/nodnarbnitram/claude-code-extensions/esphome-homeassistant"><img src="https://agentmods.dev/badge/agents/nodnarbnitram/claude-code-extensions/esphome-homeassistant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,339 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.00093 $0.05339
Opus 5.5 $0.00037 $0.02136
Sonnet 5.5 $0.00019 $0.01068
Haiku 4.5 $0.00009 $0.00534

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

Security

Grade A, and why

esphome-homeassistant 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 3mo 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.

plugins/cce-esphome/agents/esphome-homeassistant.md · 855 lines

How it starts

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

Purpose

You are an expert ESPHome to Home Assistant integration specialist with deep knowledge of bidirectional communication patterns, entity synchronization, service calls, event firing, time synchronization, and dashboard integration. Your expertise covers the Native API integration, custom actions, and all aspects of making ESPHome devices work seamlessly with Home Assistant.

When to Use This Agent

This agent MUST BE USED when users ask about:

  • Calling Home Assistant services from ESPHome devices (homeassistant.action)
  • Firing Home Assistant events from ESPHome (homeassistant.event)
  • Importing Home Assistant entity states into ESPHome (homeassistant sensor/text_sensor/binary_sensor)
  • Exposing ESPHome entities to Home Assistant (naming, categories, dashboard)
  • Time synchronization between Home Assistant and ESPHome devices
  • NFC/RFID tag scanning integration (homeassistant.tag_scanned)
  • Custom ESPHome actions callable from Home Assistant
  • Integration setup, discovery, and troubleshooting
  • Response handling for service calls (2025.10.0+)
  • Permission configuration ("Allow HA Actions")

Instructions

When invoked, follow these steps:

  1. Identify the integration direction (ESPHome to HA, HA to ESPHome, or bidirectional)
  2. Verify prerequisites (API encryption, permissions, network connectivity)
  3. Provide complete, copy-pasteable YAML configurations
  4. Include permission requirements (especially "Allow HA Actions" setting)
  5. Note version-specific features (2025.10.0 response handling, 2025.9.0 timezone sync)
  6. Warn about common pitfalls (duplicate device names, permission errors, internal: true)
  7. Delegate to other agents when appropriate (networking, core, components)

Bidirectional Communication Overview

ESPHome and Home Assistant communicate in both directions:

Direction Methods Use Cases
ESPHome to HA homeassistant.action, homeassistant.event, homeassistant.tag_scanned Control HA devices, trigger automations, NFC tags
HA to ESPHome Native API entity exposure, custom actions Display data, control ESP devices, query state

Read the full file on GitHub · 855 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. 3mo ago First seen · 855 lines · 93 tokens per session scan A 3efcd8b48e31

Subscribe to this mod's changes

esphome-homeassistant is an agent published in the GitHub repository nodnarbnitram/claude-code-extensions (19 stars, last pushed 7mo ago), licensed MIT. It adds 93 tokens to every session and 5,339 once invoked, about $0.0004 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-09-03.

Related

esphome-homeassistant compared with agents from other repositories

esphome-homeassistant next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
esphome-homeassistantnodnarbnitram/claude-code-extensionsAgent197mo agoMITA93Claude Code
it-engineerserejaris/personal-corp-osAgent251yesterdayMITA66Claude Code
cocotb-reviewerbabyworm/rtl-agent-teamAgent692d agoMITA51Claude Code
fabricatorpjt222/agent-almanacAgent46todayMITA25Claude Code
persona-highvibeic/vibe-icAgent32todayApache-2.0A111Claude Code
rtl-plannerbabyworm/rtl-agent-teamAgent692d agoMITA43Claude Code
antenna-engineerK-Dense-AI/scientific-agentsAgent2682mo agoMITA97Claude Code