home-assistant-manager
Skill8 starsChanged 12 months agoMITView on GitHub
Expert-level Home Assistant configuration management with efficient deployment workflows (git and rapid scp iteration), remote CLI access via SSH and hass-cli, automation verification protocols, log analysis, reload vs restart optimization, and comprehensive Lovelace dashboard management for tablet-optimized UIs. Includes template patterns, card types, debugging strategies, and real-world examples.
- Commits and pushes
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- IGTA-Tech/claude-skills-researchedited, first seen Oct 3, 2026
- komal-SkyNET/claude-skill-homeassistanttheir own version, first seen Jul 4, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- IGTA-Tech/claude-skills-research★ 2100% same
Wrote their own version · 1
- komal-SkyNET/claude-skill-homeassistant★ 963same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 22 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈22
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Before starting, verify the environment has:
- Distinctive: line 69
Use for changes you want in version control:
- Very specific: line 96
Use scp for quick testing before committing:
- Distinctive: line 171
Verify logic before production
- Distinctive: line 184
No ERROR or WARNING messages
- Distinctive: line 194
Ask user if they received it
- Distinctive: line 195
Check logs for mobile_app messages
- Distinctive: line 226
Use panel view for full-screen content (maps, cameras)
- Distinctive: line 227
Use sections view for organized multi-card layouts
- Distinctive: line 255
Commit only stable versions
- Distinctive: line 366
Use Jinja2 templates for dynamic content
- Distinctive: line 381
No custom cards required
- Very specific: line 415
IMPORTANT: Always use | int or | float to avoid type errors when comparing
- Very specific: line 442
Fix: Add to .storage/lovelace_dashboards and restart HA
- Distinctive: line 447
Check HACS for card installation
- Distinctive: line 448
Check browser console (F12) for details
- Distinctive: line 449
Test templates in Developer Tools → Template
- Very specific: line 453
Fix: Use cards that accept entities parameter:
- Distinctive: line 459
Fix: Use panel view for full-width, no scrolling
- Very specific: line 463
Fix: Use type filters: states('sensor.days') | int < 7
- Distinctive: line 468
Check for red errors when loading dashboard
- Very specific: line 588
Always check configuration: before restart: ha core check
- Distinctive: line 589
Prefer reload over restart: when possible
- Distinctive: line 590
Test automations manually: after deployment
- Distinctive: line 593
Verify outcomes: - don't assume it worked
- Distinctive: line 595
Test templates in Dev Tools: before adding to dashboards
- Distinctive: line 596
Validate JSON syntax: before deploying dashboards
- Distinctive: line 599
Commit only stable versions: - test with scp first
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Home Assistant Manager
Expert-level Home Assistant configuration management with efficient workflows, remote CLI access, and verification protocols.
Core Capabilities
- Remote Home Assistant instance management via SSH and hass-cli
- Smart deployment workflows (git-based and rapid iteration)
- Configuration validation and safety checks
- Automation testing and verification
- Log analysis and error detection
- Reload vs restart optimization
- Lovelace dashboard development and optimization
- Template syntax patterns and debugging
- Tablet-optimized UI design
Prerequisites
Before starting, verify the environment has:
- SSH access to Home Assistant instance (
root@homeassistant.local) hass-cliinstalled locally- Environment variables loaded (HASS_SERVER, HASS_TOKEN)
- Git repository connected to HA
/configdirectory - Context7 MCP server with Home Assistant docs (recommended)
Remote Access Patterns
Using hass-cli (Local, via REST API)
All hass-cli commands use environment variables automatically:
# List entities
hass-cli state list
# Get specific state
hass-cli state get sensor.entity_name
# Call services
hass-cli service call automation.reload
hass-cli service call automation.trigger --arguments entity_id=automation.nameUsing SSH for HA CLI
# Check configuration validity
ssh root@homeassistant.local "ha core check"
# Restart Home Assistant
ssh root@homeassistant.local "ha core restart"
# View logs
ssh root@homeassistant.local "ha core logs"
# Tail logs with grep
ssh root@homeassistant.local "ha core logs | grep -i error | tail -20"Deployment Workflows
Standard Git Workflow (Final Changes)
Use for changes you want in version control:
# 1. Make changes locally
# 2. Check validity
ssh root@homeassistant.local "ha core check"
# 3. Commit and push
git add file.yaml
git commit -m "Description"
git push
# 4. CRITICAL: Pull to HA instance
ssh root@homeassistant.local "cd /config && git pull"
# 5. Reload or restart
hass-cli service call automation.reload # if reload sufficient
# OR
ssh root@homeassistant.local "ha core restart" # if restart needed
# 6. Verify
hass-cli state get sensor.new_entity
ssh root@homeassistant.local "ha core logs | grep -i error | tail -20"Rapid Development Workflow (Testing/Iteration)
Use scp for quick testing before committing:
# 1. Make changes locally
# 2. Quick deploy
scp automations.yaml root@homeassistant.local:/config/
# 3. Reload/restart
hass-cli service call automation.reload
# 4. Test and iterate (repeat 1-3 as needed)
# 5. Once finalized, commit to git
git add automations.yaml
git commit -m "Final tested changes"
git pushWhen to use scp:
- 🚀 Rapid iteration and testing
- 🔄 Frequent small adjustments
- 🧪 Experimental changes
- 🎨 UI/Dashboard work
When to use git:
- ✅ Final tested changes
- 📦 Version control tracking
- 🔒 Important configs
- 👥 Changes to document
Reload vs Restart Decision Making
ALWAYS assess if reload is sufficient before requiring a full restart.
Can be reloaded (fast, preferred):
- ✅ Automations:
hass-cli service call automation.reload - ✅ Scripts:
hass-cli service call script.reload - ✅ Scenes:
hass-cli service call scene.reload - ✅ Template entities:
hass-cli service call template.reload - ✅ Groups:
hass-cli service call group.reload - ✅ Themes:
hass-cli service call frontend.reload_themes
Require full restart:
- ❌ Min/Max sensors and platform-based sensors
- ❌ New integrations in configuration.yaml
- ❌ Core configuration changes
- ❌ MQTT sensor/binary_sensor platforms
Automation Verification Workflow
ALWAYS verify automations after deployment:
Step 1: Deploy
git add automations.yaml && git commit -m "..." && git push
ssh root@homeassistant.local "cd /config && git pull"Step 2: Check Configuration
ssh root@homeassistant.local "ha core check"Step 3: Reload
hass-cli service call automation.reloadStep 4: Manually Trigger
hass-cli service call automation.trigger --arguments entity_id=automation.nameWhy trigger manually?
- Instant feedback (don't wait for scheduled triggers)
- Verify logic before production
- Catch errors immediately
Step 5: Check Logs
sleep 3
ssh root@homeassistant.local "ha core logs | grep -i 'automation_name' | tail -20"Success indicators:
Initialized trigger AutomationNameRunning automation actionsExecuting step ...- No ERROR or WARNING messages
Error indicators:
Error executing scriptInvalid data for call_serviceTypeError,Template variable warning
Step 6: Verify Outcome
For notifications:
- Ask user if they received it
- Check logs for mobile_app messages
For device control:
hass-cli state get switch.device_nameFor sensors:
hass-cli state get sensor.new_sensorStep 7: Fix and Re-test if Needed
If errors found:
- Identify root cause from error messages
- Fix the issue
- Re-deploy (steps 1-2)
- Re-verify (steps 3-6)
Dashboard Management
Dashboard Fundamentals
What are Lovelace Dashboards?
- JSON files in
.storage/directory (e.g.,.storage/lovelace.control_center) - UI configuration for Home Assistant frontend
- Optimizable for different devices (mobile, tablet, wall panels)
Critical Understanding:
- Creating dashboard file is NOT enough - must register in
.storage/lovelace_dashboards - Dashboard changes don't require HA restart (just browser refresh)
- Use panel view for full-screen content (maps, cameras)
- Use sections view for organized multi-card layouts
Dashboard Development Workflow
Rapid Iteration with scp (Recommended for dashboards):
# 1. Make changes locally
vim .storage/lovelace.control_center
# 2. Deploy immediately (no git commit yet)
scp .storage/lovelace.control_center root@homeassistant.local:/config/.storage/
# 3. Refresh browser (Ctrl+F5 or Cmd+Shift+R)
# No HA restart needed!
# 4. Iterate: Repeat 1-3 until perfect
# 5. Commit when stable
git add .storage/lovelace.control_center
git commit -m "Update dashboard layout"
git push
ssh root@homeassistant.local "cd /config && git pull"Why scp for dashboards:
- Instant feedback (no HA restart)
- Iterate quickly on visual changes
- Commit only stable versions
Creating New Dashboard
Complete workflow:
# Step 1: Create dashboard file
cp .storage/lovelace.my_home .storage/lovelace.new_dashboard
# Step 2: Register in lovelace_dashboards
# Edit .storage/lovelace_dashboards to add:
{
"id": "new_dashboard",
"show_in_sidebar": true,
"icon": "mdi:tablet-dashboard",
"title": "New Dashboard",
"require_admin": false,
"mode": "storage",
"url_path": "new-dashboard"
}
# Step 3: Deploy both files
scp .storage/lovelace.new_dashboard root@homeassistant.local:/config/.storage/
scp .storage/lovelace_dashboards root@homeassistant.local:/config/.storage/
# Step 4: Restart HA (required for registry changes)
ssh root@homeassistant.local "ha core restart"
sleep 30
# Step 5: Verify appears in sidebarUpdate .gitignore to track:
# Exclude .storage/ by default
.storage/
# Include dashboard files
!.storage/lovelace.new_dashboard
!.storage/lovelace_dashboardsView Types Decision Matrix
Use Panel View when:
- Displaying full-screen map (vacuum, cameras)
- Single large card needs full width
- Want zero margins/padding
- Minimize scrolling
Use Sections View when:
- Organizing multiple cards
- Need responsive grid layout
- Building multi-section dashboards
Layout Example:
// Panel view - full width, no margins
{
"type": "panel",
"title": "Vacuum Map",
"path": "map",
"cards": [
{
"type": "custom:xiaomi-vacuum-map-card",
"entity": "vacuum.dusty"
}
]
}
// Sections view - organized, has ~10% margins
{
"type": "sections",
"title": "Home",
"sections": [
{
"type": "grid",
"cards": [...]
}
]
}Card Types Quick Reference
Mushroom Cards (Modern, Touch-Optimized):
{
"type": "custom:mushroom-light-card",
"entity": "light.living_room",
"use_light_color": true,
"show_brightness_control": true,
"collapsible_controls": true,
"fill_container": true
}- Best for tablets and touch screens
- Animated, colorful icons
- Built-in slider controls
Mushroom Template Card (Dynamic Content):
{
"type": "custom:mushroom-template-card",
"primary": "All Doors",
"secondary": "{% set sensors = ['binary_sensor.front_door'] %}\n{% set open = sensors | select('is_state', 'on') | list | length %}\n{{ open }} / {{ sensors | length }} open",
"icon": "mdi:door",
"icon_color": "{% if open > 0 %}red{% else %}green{% endif %}"
}- Use Jinja2 templates for dynamic content
- Color-code status with icon_color
- Multi-line templates use
\nin JSON
Tile Card (Built-in, Modern):
{
"type": "tile",
"entity": "climate.thermostat",
"features": [
{"type": "climate-hvac-modes", "hvac_modes": ["heat", "cool", "fan_only", "off"]},
{"type": "target-temperature"}
]
}- No custom cards required
- Built-in features for controls
Common Template Patterns
Counting Open Doors:
{% set door_sensors = [
'binary_sensor.front_door',
'binary_sensor.back_door'
] %}
{% set open = door_sensors | select('is_state', 'on') | list | length %}
{{ open }} / {{ door_sensors | length }} openColor-Coded Days Until:
{% set days = state_attr('sensor.bin_collection', 'daysTo') | int %}
{% if days <= 1 %}red
{% elif days <= 3 %}amber
{% elif days <= 7 %}yellow
{% else %}grey
{% endif %}Conditional Display:
{% set bins = [] %}
{% if days and days | int <= 7 %}
{% set bins = bins + ['Recycling'] %}
{% endif %}
{% if bins %}This week: {{ bins | join(', ') }}{% else %}None this week{% endif %}IMPORTANT: Always use | int or | float to avoid type errors when comparing
Tablet Optimization
Screen-specific layouts:
- 11-inch tablets: 3-4 columns
- Touch targets: minimum 44x44px
- Minimize scrolling: Use panel view for full-screen
- Visual feedback: Color-coded status (red/green/amber)
Grid Layout for Tablets:
{
"type": "grid",
"columns": 3,
"square": false,
"cards": [
{"type": "custom:mushroom-light-card", "entity": "light.living_room"},
{"type": "custom:mushroom-light-card", "entity": "light.bedroom"}
]
}Common Dashboard Pitfalls
Problem 1: Dashboard Not in Sidebar
- Cause: File created but not registered
- Fix: Add to
.storage/lovelace_dashboardsand restart HA
Problem 2: "Configuration Error" in Card
- Cause: Custom card not installed, wrong syntax, template error
- Fix:
- Check HACS for card installation
- Check browser console (F12) for details
- Test templates in Developer Tools → Template
Problem 3: Auto-Entities Fails
- Cause:
card_paramnot supported by card type - Fix: Use cards that accept
entitiesparameter:- ✅ Works:
entities,vertical-stack,horizontal-stack - ❌ Doesn't work:
grid,glance(without specific syntax)
- ✅ Works:
Problem 4: Vacuum Map Has Margins/Scrolling
- Cause: Using sections view (has margins)
- Fix: Use panel view for full-width, no scrolling
Problem 5: Template Type Errors
- Error:
TypeError: '<' not supported between instances of 'str' and 'int' - Fix: Use type filters:
states('sensor.days') | int < 7
Dashboard Debugging
1. Browser Console (F12):
- Check for red errors when loading dashboard
- Common: "Custom element doesn't exist" → Card not installed
2. Validate JSON Syntax:
python3 -m json.tool .storage/lovelace.control_center > /dev/null3. Test Templates:
Home Assistant → Developer Tools → Template
Paste template to test before adding to dashboard4. Verify Entities:
hass-cli state get binary_sensor.front_door5. Clear Browser Cache:
- Hard refresh: Ctrl+F5 or Cmd+Shift+R
- Try incognito window
Real-World Examples
Quick Controls Dashboard Section
{
"type": "grid",
"title": "Quick Controls",
"cards": [
{
"type": "custom:mushroom-template-card",
"primary": "All Doors",
"secondary": "{% set doors = ['binary_sensor.front_door', 'binary_sensor.back_door'] %}\n{% set open = doors | select('is_state', 'on') | list | length %}\n{{ open }} / {{ doors | length }} open",
"icon": "mdi:door",
"icon_color": "{% if open > 0 %}red{% else %}green{% endif %}"
},
{
"type": "tile",
"entity": "climate.thermostat",
"features": [
{"type": "climate-hvac-modes", "hvac_modes": ["heat", "cool", "fan_only", "off"]},
{"type": "target-temperature"}
]
}
]
}Individual Light Cards (Touch-Friendly)
{
"type": "grid",
"title": "Lights",
"columns": 3,
"cards": [
{
"type": "custom:mushroom-light-card",
"entity": "light.office_studio",
"name": "Office",
"use_light_color": true,
"show_brightness_control": true,
"collapsible_controls": true
}
]
}Full-Screen Vacuum Map
{
"type": "panel",
"title": "Vacuum",
"path": "vacuum-map",
"cards": [
{
"type": "custom:xiaomi-vacuum-map-card",
"vacuum_platform": "Tasshack/dreame-vacuum",
"entity": "vacuum.dusty"
}
]
}Common Commands Quick Reference
# Configuration
ssh root@homeassistant.local "ha core check"
ssh root@homeassistant.local "ha core restart"
# Logs
ssh root@homeassistant.local "ha core logs | tail -50"
ssh root@homeassistant.local "ha core logs | grep -i error | tail -20"
# State/Services
hass-cli state list
hass-cli state get entity.name
hass-cli service call automation.reload
hass-cli service call automation.trigger --arguments entity_id=automation.name
# Deployment
git add . && git commit -m "..." && git push
ssh root@homeassistant.local "cd /config && git pull"
scp file.yaml root@homeassistant.local:/config/
# Dashboard deployment
scp .storage/lovelace.my_dashboard root@homeassistant.local:/config/.storage/
python3 -m json.tool .storage/lovelace.my_dashboard > /dev/null # Validate JSON
# Quick test cycle
scp automations.yaml root@homeassistant.local:/config/
hass-cli service call automation.reload
hass-cli service call automation.trigger --arguments entity_id=automation.name
ssh root@homeassistant.local "ha core logs | grep -i 'automation' | tail -10"Best Practices Summary
- Always check configuration before restart:
ha core check - Prefer reload over restart when possible
- Test automations manually after deployment
- Check logs for errors after every change
- Use scp for rapid iteration, git for final changes
- Verify outcomes - don't assume it worked
- Use Context7 for current documentation
- Test templates in Dev Tools before adding to dashboards
- Validate JSON syntax before deploying dashboards
- Test on actual device for tablet dashboards
- Color-code status for visual feedback (red/green/amber)
- Commit only stable versions - test with scp first
Workflow Decision Tree
Configuration Change Needed
├─ Is this final/tested?
│ ├─ YES → Use git workflow
│ └─ NO → Use scp workflow
├─ Check configuration valid
├─ Deploy (git pull or scp)
├─ Needs restart?
│ ├─ YES → ha core restart
│ └─ NO → Use appropriate reload
├─ Verify in logs
└─ Test outcome
Dashboard Change Needed
├─ Make changes locally
├─ Deploy via scp for testing
├─ Refresh browser (Ctrl+F5)
├─ Test on target device
├─ Iterate until perfect
└─ Commit to git when stableThis skill encapsulates efficient Home Assistant management workflows developed through iterative optimization and real-world dashboard development. Apply these patterns to any Home Assistant instance for reliable, fast, and safe configuration management.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

