Skip to content
Back to skills

Ha Find Duplicates

ASecurity

Find duplicate, near-duplicate and conflicting automations and scripts in a Home Assistant config, and suggest how to merge them. Use when the user asks for duplicates, cleanup, or why two automations fight over the same device.

  • 28 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 8, 2026
ai-agentspythonbash

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add ESJavadex/claude-homeassistant-plugins --skill ha-find-duplicates --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ha Find Duplicates?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ha Find Duplicates
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/esjavadex-ha-find-duplicates/badge)](https://www.skillsdirectory.com/skills/esjavadex-ha-find-duplicates)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ha-find-duplicates
description: Find duplicate, near-duplicate and conflicting automations and scripts in a Home Assistant config, and suggest how to merge them. Use when the user asks for duplicates, cleanup, or why two automations fight over the same device.
argument-hint: "[config path, default /config or current folder]"
allowed-tools: Bash(python3 *), Read, Grep, Glob
---

# Find duplicate automations and scripts

Path: `$ARGUMENTS`, or `/config` if it exists, else the current folder.

```bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/homeassistant-config/scripts/find_duplicates.py" <path> --verbose
```

The finder treats old and new syntax as the same thing (`platform:`/`trigger:`,
`service:`/`action:`), so an old copy of a modern automation shows up as an
exact duplicate. Similar items are grouped into clusters; action names such as
`notify.mobile_app_x` do not count as shared entities.

Report, in this order:

1. **Exact duplicates**: same triggers, conditions and actions. Say which one
   to keep (the one with an `id`, the clearer alias, the newer syntax).
2. **Near-duplicate groups**: for each group, what differs. A group of many
   scripts that differ only in one value (a room, a scene, a brightness) is a
   candidate for one script with a `fields:` input; show that script.
3. **Trigger conflicts**: automations that fire on the same trigger. Explain
   whether they actually fight (one turns a light on, another off) or are
   harmless (two notifications). Intentional on/off pairs are fine.

Do not delete or edit anything until the user picks what to change. When they
do, back up the file first and run `validate_yaml.py` on it afterwards.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.