Lesson 9 of 9 · 27m
Maintenance, Upgrades, and Troubleshooting the Smart Home
Operate Home Assistant with inventory, diagnostics, controlled upgrades, useful logs, spare hardware, and a recovery plan the household can survive.
A smart home fails differently from ordinary software because the users live inside the system. A broken pipeline is annoying at work; a broken light at the top of the stairs is a safety problem. Maintenance means keeping the system understandable enough that future you — tired, in the dark, holding a phone flashlight — can still repair it.
Keep a living inventory
Inventory is not busywork. It is the difference between debugging and archaeology.
device room protocol power firmware reset method
hallway-motion-sensor hallway zigbee battery 1.4.2 hold button 5s
kitchen-plug kitchen zigbee mains 1.0.9 hold button 10s
front-door-lock entry zwave battery unknown keypad exclusion
attic-temp-sensor attic zigbee battery 1.3.0 pinhole resetInclude integration owner, network segment, IP reservation where relevant, and whether loss of the device affects safety or security. If a device needs a vendor app for firmware updates, write that down too.
Monitor the control plane
At minimum, watch host health, disk use, database growth, service availability, radio service status, and backup success. Home Assistant can monitor some of itself, but external monitoring is valuable because a dead system cannot warn you about being dead.
sensor:
- platform: systemmonitor
resources:
- type: disk_use_percent
arg: /
- type: memory_use_percent
- type: processor_useAlert fatigue is worse than no monitoring. Notify on conditions requiring action: backup failure, disk nearly full, repeated service restart, or critical battery below threshold — not every transient unavailable entity.
Troubleshoot in layers
When a device stops working, do not start by rewriting automation YAML. Walk the dependency chain:
1. physical/power battery dead, breaker off, bulb unscrewed
2. local radio mesh weak route, missing router, interference
3. integration service Zigbee2MQTT/Z-Wave JS/MQTT/container down
4. Home Assistant entity unavailable, renamed, disabled
5. automation trigger never fired, condition false, mode blocked
6. notification/UI action ran but feedback failedThis ordering prevents the classic mistake of editing the top layer while the actual fault is a dead plug serving as a mesh router.
Logs are evidence, not decoration
Increase logging temporarily and narrowly:
logger:
default: warning
logs:
homeassistant.components.zwave_js: debugBroad debug logging creates noise, database pressure, and privacy exposure. Revert it after diagnosis. For service-level failures, inspect Docker or supervisor logs and record exact timestamps before restarting anything.
Upgrade with blast radius in mind
Treat upgrades as controlled maintenance:
ha backups new --name pre-2025-upgrade
ha core updateEven if exact commands differ by installation method, the sequence does not: backup, read breaking changes, update, verify, observe. Verify physical critical paths, not just the dashboard. Test a light, a lock status sensor, a thermostat command, alarm state reporting, and notification delivery.
Keep spare critical parts: one known-good smart plug/repeater, batteries, a USB extension cable, and possibly a spare coordinator. Hardware always fails when ordering a replacement is least convenient.
Recovery is a household feature
Write a short recovery runbook and store it outside the system. It should explain how to control important things manually, how to restart Home Assistant safely, where backups live, and what not to factory reset. If you are the only person who can operate the house, the system is not resilient — it is a single point of failure with a hobby attached.
Field notes
- Entity renames can silently break dashboards, scripts, automations, and voice aliases; search before renaming.
- MQTT broker outages can make Zigbee devices look individually broken even when the mesh is healthy.
- Database corruption often follows power loss or failing storage; restore from backup rather than nursing a damaged database indefinitely.
- Schedule maintenance when someone can physically verify outcomes. Remote-only upgrades of physical infrastructure are for emergencies, not routine.
Was this lesson helpful?