ha-entity-platform-add

ha-entity-platform-add is a skill for Claude Code from nolte/claude-home-assistant. It costs 201 tokens per session (2,978 once invoked), scanned A, original, MIT.

A scaffolding skill for adding one command-driven device platform to an existing Home Assistant custom integration. Home Assistant is software for controlling smart-home devices, and an entity platform represents one device type such as a light or lock.

In plain words
What is it for?
It helps add platforms such as climate, cover, light, fan, lock, media player, or vacuum, while confirming the platform family and reviewing the generated result.
Why use it?
It structures the platform module, supported commands, feature flags, and conformance checks so the new device type follows the integration's specifications.

Skill for Claude Code

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

Part of the claude-home-assistant plugin — 45 skills, 11 agents shipped together

Good fit It helps add platforms such as climate, cover, light, fan, lock, media player, or vacuum, while confirming the platform family and reviewing the generated result.

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

Made for: Claude Code.

Or install claude-home-assistant, the plugin that ships this one along with the rest of its 45 skills, 11 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 ha-entity-platform-add

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nolte/claude-home-assistant/ha-entity-platform-add"><img src="https://agentmods.dev/badge/skills/nolte/claude-home-assistant/ha-entity-platform-add.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 201 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,978 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.00201 $0.02978
Opus 5 $0.00101 $0.01489
Sonnet 5 $0.00040 $0.00596
Haiku 4.5 $0.00020 $0.00298

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

Security

Grade A, and why

ha-entity-platform-add 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 12d 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.

skills/ha-entity-platform-add/SKILL.md · 120 lines

How it starts

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

HA Entity Platform Add

Spec: spec/claude/ha-entity-platform-add/en.md (EN canonical) / spec/claude/ha-entity-platform-add/de.md (DE translation).

Why this is a skill, not an agent

  • Human-visible scaffolding surface — the operator describes a device capability and reads back the platform module, the feature bitmask, the command methods, and the conformance report; a skill keeps this on the visible command surface, like the sibling augment skills (ha-coordinator-add, ha-entity-description-map, ha-device-automation-add).
  • Mid-flow interactivity — the platform/domain decision and the family confirmation are per-run dialogues the operator approves before generation.
  • Bounded, inline generation — one platform module plus its description and setup fit inline; no isolated agent context is needed.
  • Counter-dimension considered: the draft→validate loop could be an agent, but the domain decision and the active-vs-declarative gate belong in the operator's working context; skill wins.

When this skill activates

Use this skill to scaffold one active platform entity — a command-driven domain (climate, cover, light, fan, lock, media_player, vacuum, valve, humidifier, water_heater, siren, lawn_mower, …) whose entity exposes async command methods — into an existing integration.

When NOT to activate

  • datapoints authored declaratively as EntityDescription tables — read-type sensor/binary_sensor/button, and the description-table form of number/select/switch/calendar/todo with no hand-written command/set method → ha-entity-description-map
  • the coordinator itself → ha-coordinator-add
  • greenfield integration scaffolding → ha-integration-scaffold
  • device-automation triggers/conditions/actions → ha-device-automation-add
  • deploying/importing into a running HA instance → out of scope

Hard rules

  1. One platform entity, one run. No multi-platform batches.
  2. Read the operationalized spec first. Read spec/ha/entity-platform-types/en.md to pick active-vs-declarative and the family, then read the matching family spec (spec/ha/entity-platforms-controls/en.md / spec/ha/entity-platforms-climate/en.md / spec/ha/entity-platforms-devices/en.md / spec/ha/entity-platforms-media/en.md / spec/ha/entity-platforms-voice/en.md / spec/ha/entity-platforms-inputs/en.md / spec/ha/entity-platforms-sensors/en.md) in full. Do not generate from memory.
  3. Active platforms only. This skill scaffolds command-driven entities authored as a full entity class with hand-written async command/set methods. The boundary is the authoring form, not the domain: a read-type datapoint (sensor/binary_sensor/button) or any entity expressed purely as an EntityDescription table without a hand-written command/set method → point at ha-entity-description-map and abort. Active platforms whose command/set method this skill writes — including the inputs family (number/select/text/date/time/datetime) and calendar/todo — stay in scope.
  4. Name the domain, confirm the family. Require the operator to name the target domain and confirm the resolved family before generating.
  5. Base class from the family spec. Derive the entity from the documented platform base class (ClimateEntity/CoverEntity/LightEntity/FanEntity/LockEntity/MediaPlayerEntity/StateVacuumEntity/ValveEntity/HumidifierEntity/WaterHeaterEntity/SirenEntity/LawnMowerEntity …).
  6. Feature bitmask from the enum. Set supported_features as a bitwise | combination of the platform-native *EntityFeature enum — never a raw integer.
  7. Flag ↔ method, one-to-one. Implement the documented async command method for every set flag (e.g. CoverEntityFeature.OPENasync_open_cover, ClimateEntityFeature.TARGET_TEMPERATUREasync_set_temperature, LockEntityFeature.OPENasync_open, FanEntityFeature.SET_SPEEDasync_set_percentage). Never set a flag "on spec" whose method is missing.
  8. Required properties, built-in enums. Provide every property the domain marks as Required (hvac_mode/hvac_modes, is_closed, color_mode/supported_color_modes, activity, alarm_state, …) and use only the built-in state/mode enums (only built-in HVACMode; VacuumActivity/LawnMowerActivity). Set device_class from the closed platform-native enum where a member exists, never a free string.
  9. Wire the setup. Implement async_setup_entry(hass, entry, async_add_entities) that builds the entities and registers them via async_add_entities, attaching to the coordinator / config_entry.runtime_data; if no coordinator exists, point at ha-coordinator-add.
  10. Availability (entity-unavailable, Silver). The generated entity handles availability — subclass CoordinatorEntity (which derives available from coordinator.last_update_success) or override the available property to return False when the datapoint can't be read or controlled. An active entity that never reports unavailable silently misses the Silver entity-unavailable rule that ha-quality-scale-audit checks.
  11. Emit PARALLEL_UPDATES (parallel-updates, Silver). Declare a module-level PARALLEL_UPDATES constant in <platform>.py (a coordinator-backed read path typically uses 0; command platforms bound their concurrency). Verify the value against the HA parallel-updates rule page rather than reproducing it from memory.
  12. Name per spec/ha/naming-conventions/en.md, do not duplicate the generic entity pattern (delegate to spec/ha/entity-architecture/en.md), and verify HA internals against the official docs (see spec/ha/upstream-docs-verification/en.md).

Read the full file on GitHub · 120 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. 12d ago First seen · 120 lines · 201 tokens per session scan A 2f0df87a95d6

Subscribe to this mod's changes

ha-entity-platform-add is a skill published in the GitHub repository nolte/claude-home-assistant (1 stars, last pushed 1mo ago), licensed MIT. It adds 201 tokens to every session and 2,978 once invoked, about $0.0010 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.