home-assistant-best-practices
Home Assistant (HA) best practices. Load first, before answering or exploring, on any HA request. TRIGGER THIS SKILL WHEN: - Creating or editing automations, scripts, scenes, dashboards, blueprints - Choosing template sensors, helpers, or Jinja macros - Restructuring triggers, conditions, or modes; button, remote, or event-entity automations - Renaming entities or migrating device_id to entity_id - Looking up card types or domain docs; writing AppDaemon apps - Deleting or restoring a backup, or upgrading Core or the OS SYMPTOMS: - Jinja2 templates where native options exist - device_id used instead of entity_id - Entity IDs changed without checking consumers - Wrong automation mode chosen - Raw sensor or hard-coded value used where a helper belongs - Direct .storage edits or automation lookups there; generated YAML - User told to edit configuration.yaml for UI integrations - Hardcoded Blueprint entities or skipped selectors - Existing state changed with no recovery path - Jinja copy-pasted between templates
- Version
- 56
Pinned to revision a9d1a8a7e628, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/home-assistant-best-practices/SKILL.md
- skills/home-assistant-best-practices/LICENSE.txt
- skills/home-assistant-best-practices/references/appdaemon.md
- skills/home-assistant-best-practices/references/automation-actions.md
- skills/home-assistant-best-practices/references/backups.md
- skills/home-assistant-best-practices/references/blueprint-guide.md
- skills/home-assistant-best-practices/references/dashboard-cards.md
- skills/home-assistant-best-practices/references/dashboard-guide.md
- skills/home-assistant-best-practices/references/device-control.md
- skills/home-assistant-best-practices/references/domain-docs.md
- skills/home-assistant-best-practices/references/examples.yaml
- skills/home-assistant-best-practices/references/helper-selection.md
- skills/home-assistant-best-practices/references/safe-refactoring.md
- skills/home-assistant-best-practices/references/scenes.md
- skills/home-assistant-best-practices/references/template-guidelines.md
- skills/home-assistant-best-practices/references/triggers-and-conditions.md
- skills/home-assistant-best-practices/references/yaml-only-integrations.md
Every link opens the file at its source, pinned to the revision this page describes.