entity-rename
Skill by dcb
Entity Rename batch renames Home Assistant entities to a consistent naming convention. It is for Home Assistant users who want tidy entity IDs and updated YAML and TypeScript references.
Install entity-rename
Built from the published package, never by AI.
git clone --depth 1 https://github.com/dcb/homeassistant-claude-kit /tmp/homeassistant-claude-kit && mkdir -p ~/.claude/skills && cp -r /tmp/homeassistant-claude-kit/.claude/skills/entity-rename ~/.claude/skills/entity-renameRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/dcb/homeassistant-claude-kit /tmp/homeassistant-claude-kit && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/homeassistant-claude-kit/.claude/skills/entity-rename ~/.gemini/antigravity-cli/skills/entity-renameAntigravity 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
Entity Rename is an agent skill for Home Assistant. It batch renames entities to follow a domain.{room}_{descriptor} convention. The skill builds an inventory from local registry files, groups proposed renames by room, and runs them on the Home Assistant instance through the ha-ws command over SSH. Before executing, it scans for references to show how many files each old ID appears in.
Each batch updates YAML and TypeScript references locally and then runs validation with make validate. Results are recorded in entity-renames.json, so an interrupted rename can resume. Adaptive Lighting zone configs can also be patched on the host, with a backup made first. The skill suits Home Assistant owners who want consistent entity IDs and can run the listed tooling against their own instance.
Written from the project's SKILL.md and checked against it.
What it can do
- Entity discoveryBuilds an entity inventory from local registry files, grouped by area and room.
- Convention proposalProposes new entity IDs per room and checks for collisions and sibling entities.
- Reference scanningRuns a dry run to count references to each old entity ID across config files.
- Batch executionRenames entities on Home Assistant in batches using ha-ws over SSH.
- YAML reference updatesUpdates YAML and TypeScript references locally with update_yaml_refs.py.
- Adaptive Lighting patchingReplaces old light IDs in Adaptive Lighting zone configs after a backup.
- Progress trackingRecords each rename in entity-renames.json so work can resume after an interruption.
What you need
- Home Assistant instance with SSH access
- A .env file with HA_TOKEN
- Entity registry pulled locally with make pull
- claude-code-ha installed on the Home Assistant host for ha-ws and ha-api
- Python with a virtual environment
Try asking
- Find entities in my Living Room that do not follow the naming convention.
- Do a dry run to count references for my proposed climate entity renames.
- Rename the approved batch of entities and update my YAML references.
Good to know
- Restarting Home Assistant is required after Adaptive Lighting patches, since reload is not enough.
- Safety rules are referenced in a separate lessons file that is not part of this source.
- The fallback Python script connects directly over WebSocket and is only needed when SSH is unavailable.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/entity-rename/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to entity-rename
All alternatives →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
Compare with react-component-performance, react-component-performance or lecture-style
entity-rename: common questions
What does the entity-rename skill change in Home Assistant?
It renames entity IDs in batches using ha-ws over SSH, then updates matching references in local YAML and TypeScript files. It can also patch Adaptive Lighting zone lights on the host.
What does it need before it can run?
It needs a .env file with HA_TOKEN, a pulled entity registry, and claude-code-ha installed on the Home Assistant host. The source lists these prerequisites in its first step.
Can I resume a rename that was interrupted?
Yes. The skill tracks completed renames in entity-renames.json, and on resume it skips those and continues with the rest of the plan.
How do I install entity-rename?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is entity-rename free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is entity-rename safe to use?
It scores 70 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 entity-rename?
Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.
