Home Assistant Declarative Management
Manages Home Assistant automations, scenes, and scripts declaratively using NixOS modules and automated cleanup services.
This skill enables a GitOps-style workflow for Home Assistant by defining all automations, scenes, and scripts within Nix configuration files. It enforces a source-of-truth approach where entities are automatically added, updated, or removed from the Home Assistant registry based on Nix declarations. Key features include a sweep service that eliminates orphaned 'ghost' entities, mandatory state enforcement to prevent silent automation failures, and structural assertions that run during build-time to ensure configuration integrity and safety across your smart home infrastructure.
Key Features
01Domain-based organization for lighting, climate, security, and scripts
02Build-time structural test assertions to catch configuration errors early
03Automated sweep service to remove unmanaged orphaned entities via WebSocket API
04Declarative NixOS-based configuration for Home Assistant entities
05Mandatory initial_state enforcement using the ensureEnabled wrapper
0659 GitHub stars
Use Cases
01Preventing 'ghost' entities and configuration drift in complex smart home setups
02Migrating manual Home Assistant UI configurations to a version-controlled Nix repository
03Enforcing safety checks and state persistence across Home Assistant restarts