Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 70
  • 128 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-rename

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install entity-rename in Claude Code

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

A

No 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 →

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.

entity-rename Install

Add to stack

Loading.