From 5917520903b5001203d077260d3137bd2f403bc0 Mon Sep 17 00:00:00 2001 From: rzen Date: Sat, 9 Aug 2025 18:01:41 -0400 Subject: [PATCH] Add deployment instructions to CLAUDE.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document kubectl command to deploy blueprints to Home Assistant pod after push 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- CLAUDE.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 711c01b..bc33915 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -7,6 +7,13 @@ This is a Home Assistant Blueprints repository containing reusable automation te ## Common Development Tasks +### Deployment +After committing and pushing changes, deploy blueprints to Home Assistant: +```bash +HA_POD=$(kubectl -n ha get pods -l app=ha-app -o=jsonpath="{.items[0].metadata.name}") +kubectl -n ha exec "$HA_POD" -- bash -c "cd /config/blueprints/automation/rzen && git pull" +``` + ### Testing & Validation - **Blueprint Validation**: Use Home Assistant's built-in blueprint importer to validate YAML syntax - **Template Testing**: Test Jinja2 templates in Home Assistant Developer Tools → Template tab @@ -109,4 +116,5 @@ Use namespace objects for accumulating values: - **Template errors**: Test in Developer Tools first - **Entity unavailable**: Add availability checks in conditions - **Z-Wave events not firing**: Verify device supports Central Scene command class -- **HVAC monitoring false positives**: Adjust temperature thresholds and time windows \ No newline at end of file +- **HVAC monitoring false positives**: Adjust temperature thresholds and time windows +- always push after commit \ No newline at end of file