ha-entity-platform
Skill by jpawlowski
Guides an AI assistant through adding or changing a Home Assistant entity platform or entity in a custom integration. It is written for developers building Home Assistant integrations.
Install ha-entity-platform
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jpawlowski/ha-integration-blueprint /tmp/ha-integration-blueprint && mkdir -p ~/.claude/skills && cp -r /tmp/ha-integration-blueprint/.agents/skills/ha-entity-platform ~/.claude/skills/ha-entity-platformRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jpawlowski/ha-integration-blueprint /tmp/ha-integration-blueprint && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ha-integration-blueprint/.agents/skills/ha-entity-platform ~/.gemini/antigravity-cli/skills/ha-entity-platformAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill is a procedure for adding or changing Home Assistant entities, such as sensor, binary_sensor, switch, button, number, select, fan, climate, cover, light and lock, in a custom integration. It covers the platform directory layout, the coordinator-backed entity contract, unique IDs, device grouping, and the translation and validation steps that follow. It points to per-platform reference files for required members and known traps.
The skill tells the assistant to read the entity instructions file first and to inspect a sibling entity before writing new code. It also explains when to use a diagnostic category, a device class, or a state class. The source states that it does not restate the rules in the instructions file. It is aimed at developers maintaining Home Assistant custom integrations.
Written from the project's SKILL.md and checked against it.
What it can do
- Platform layoutSets out a one-class-per-file package layout for each entity platform.
- Entity metadata decisionsGuides choices for keys, entity categories, device classes and state classes.
- Coordinator-backed entitiesShows an entity class that reads values from coordinator data instead of calling the API.
- Platform registrationDescribes adding a new platform to the PLATFORMS list in the integration setup.
- Device groupingExplains when entities belong to the config entry device, a child device, or a hub-linked device.
- TranslationsDescribes adding translation keys for entity names and enum states in en.json.
- Validation stepsLists the lint, type-check, hassfest and test commands to run after changes.
- Event entitiesAdvises using event entities instead of sensors for occurrences such as button presses.
What you need
- A Home Assistant custom integration repository
- Python
- The blueprint entity and Python instruction files in the repository
Try asking
- Add a sensor for the battery level from coordinator data
- Make this entity a diagnostic entity and check its state class
- Add a new switch platform to this custom integration
Good to know
- Covers entity platforms in custom integrations only
- Depends on the blueprint entity instructions file for the base rules
- Advises against renaming keys or unique IDs without a separate breaking-changes review
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/ha-entity-platform/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to ha-entity-platform
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
ha-entity-platform: common questions
What is the ha-entity-platform skill for?
It is a procedure for adding or changing Home Assistant entities and platforms in a custom integration. It covers metadata, the entity class, registration, device grouping, translations and validation.
Does it cover every Home Assistant platform?
It has reference files for sensors, controls, climate and appliances, and other platforms such as event, update, image and camera. Lifecycle hooks are covered in a separate file.
Should an occurrence like a doorbell ring be a sensor?
The source says no. It recommends an event entity for things that occur rather than hold a state, because a sensor would invent a duration the device never reported.
How do I install ha-entity-platform?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ha-entity-platform free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ha-entity-platform safe to use?
It scores 71 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ha-entity-platform?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
