Skip to content
Back to skills

Home Assistant Best Practices

ASecurity

Selects Home Assistant automation, helper, device-control, and dashboard patterns. Use for HA configuration design, refactoring, or AppDaemon apps.

  • 81 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
toolspythonexpressrefactoringapi

Works with

  • api

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add edmundmiller/dotfiles --skill home-assistant-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Home Assistant Best Practices?

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

Security grade badge for Home Assistant Best Practices
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/edmundmiller-home-assistant-best-practices/badge)](https://www.skillsdirectory.com/skills/edmundmiller-home-assistant-best-practices)

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: home-assistant-best-practices
description: Selects Home Assistant automation, helper, device-control, and dashboard patterns. Use for HA configuration design, refactoring, or AppDaemon apps.
metadata:
  version: 12
---

# Home Assistant patterns

Prefer native conditions/helpers when they express the intended behavior.
Templates remain appropriate for logic native constructs cannot represent.
In this repository, Nix owns declarative HA config; UI/config-flow APIs own
UI-managed integrations. The generic references below do not transfer that
ownership or authorize live changes.

## Safety and semantics

- Verify live entity/device identity when a change depends on it; filter reads
  to relevant fields. If HA is unreachable, continue source-only work where
  possible and identify what remains unverified rather than inventing IDs.
- Entity renames affect dashboards, scripts, scenes, and config-entry membership;
  registry renames do not update every consumer. Use supported APIs, not direct
  `.storage` edits.
- A `wait_for_trigger` awaits a future change; a `wait_template` can complete
  immediately if already true. They are not interchangeable optimizations.
- Scenes assert desired state; scripts perform sequences. Choose automation mode
  for retrigger semantics (restart, queued, parallel, single), not one global rule.
- Prefer stable entity IDs; ZHA remotes use `device_ieee` events, while Z2M
  autodiscovered device triggers are supported exceptions.

## Select a reference

- Entity/helper migration: [safe refactoring](references/safe-refactoring.md).
- Triggers, waits, modes, and actions: [automation patterns](references/automation-patterns.md).
- Helper vs template: [helper selection](references/helper-selection.md) and
  [template guidelines](references/template-guidelines.md).
- YAML-only integrations: [configuration](references/yaml-only-integrations.md).
- Lights, vacuums, Zigbee buttons: [device control](references/device-control.md).
- State snapshots/restoration: [scenes](references/scenes.md).
- Lovelace layout: [dashboard guide](references/dashboard-guide.md);
  individual components: [cards](references/dashboard-cards.md).
- Integration/service lookup: [domain docs](references/domain-docs.md).
- Compound patterns: [examples](references/examples.yaml).
- Python lifecycle/timers: [AppDaemon](references/appdaemon.md).

Files in this skill

  • SKILL.md2.3 KB
  • evals/evals.json4 KB
  • references/appdaemon.md20.1 KB
  • references/automation-patterns.md32.4 KB
  • references/dashboard-cards.md2.6 KB
  • references/dashboard-guide.md24 KB
  • references/device-control.md10.6 KB
  • references/domain-docs.md2.3 KB
  • references/examples.yaml10.6 KB
  • references/helper-selection.md35.2 KB
  • references/safe-refactoring.md14.7 KB
  • references/scenes.md3.1 KB
  • references/template-guidelines.md19.3 KB
  • references/yaml-only-integrations.md4.6 KB

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.

Comments

Loading comments…

Newsletter

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