Home Assistant patterns

SkillMedia

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

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Home Assistant patterns skill

What this skill tells your AI

The instructions your AI receives, as published by edmundmiller/dotfiles in .agents/skills/home-assistant-best-practices/SKILL.md and read by ahel’s review.

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

Signals

GitHub stars
80
Forks
6
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
home-assistant-best-practices
Source
github.com/edmundmiller/dotfiles