Home Assistant Core running on my Kubernetes cluster. This configuration is read and persisted within Home Assistant.
- Home-Assistant is running within a kubernetes cluster running the the home-assistant helm chart
- Automations are mostly performed via node-red with the node-red configuration hosted in this repo
- In addition to use git to control the configuration, an embeded instance of the VSCode server using the home-assistant config helper extension is leveraged to make live changes to the configuration files
This configuration underwent a major refactoring to modernize deprecated syntax and reduce code duplication through blueprints.
Code Reduction:
automation/alarm.yaml: 403 → 229 lines (43% reduction)config/mqtt.yaml: 690 → 199 lines (71% reduction)- Overall ~45% reduction in targeted files
Modernizations:
- Removed all deprecated
data_templatesyntax (30 instances) - Migrated from deprecated iOS notification actions to
mobile_appevents - Modernized template sensors with unique IDs and null-safe checks
- Created custom blueprints for reusable automation patterns
New Features:
- Custom blueprints in
blueprints/automation/custom/:sensor_alert_when_away.yaml- Alerts when sensors trigger while nobody homesensor_alert_timeout.yaml- Alerts when sensors stay open too long
- Better organization of Tesla MQTT sensors (grouped by category vs by car)
Rollback: Git tag pre-refactor-20241214 marks the pre-refactoring state for easy rollback if needed.
See CHANGELOG.md for detailed changes by phase.




