Lesson 1 of 9 · 24m
Local-First Architecture Before Buying Devices
Choose the control plane, failure domains, and trust boundaries before choosing gadgets so convenience never depends on an outside company staying online.
The worst smart-home failure I see is not a bad sensor. It is a house full of perfectly good hardware whose brains live in somebody else's data center. The internet drops, a vendor deprecates an API, or an account gets locked, and suddenly the lights have become a subscription service. Local-first means the house keeps working when everything beyond your firewall is unavailable.
Local-first is a dependency decision
Start with a blunt rule: if a device cannot be controlled on the LAN, it is a guest in the house, not part of the control plane. Local-first does not mean no internet. It means internet services are enhancements, not load-bearing dependencies.
reliable core
lights, locks, HVAC, alarms, presence
must work with internet down and cloud accounts absent
optional edge
voice assistants, remote dashboards, notifications, weather enrichment
may fail without harming core behaviorThis division sounds obvious until you try to retrofit it. Cloud-only bulbs, doorbells, thermostats, and robot vacuums are all tempting because setup takes five minutes. The hidden cost is that their failure mode is outside your control.
Put one coordinator in charge
Home Assistant is the practical center for most self-hosted homes because it has broad integrations and a local automation engine. It should be the only system allowed to make decisions. Devices may expose their own apps, but overlapping controllers create split-brain behavior: the vendor app thinks the lamp is off, the automation thinks it is on, and nobody knows why the hall light flickered at midnight.
sensors -> coordinator -> automations -> actuators
|
+-> state history, dashboards, alertsThe important mental model is not "a hub that connects brands." It is an event-driven control system. Inputs produce state changes. Automations react to state changes. Outputs should be idempotent, observable, and reversible.
Design failure domains deliberately
Ask what happens when each component fails:
internet down core automations continue
router reboots local radios keep paired devices alive
Home Assistant down manual switches and critical local fallback still work
coordinator down lights can still be controlled manually or by remotes
power restored automations converge instead of firing stale eventsCritical systems need local fallbacks. Door locks must retain physical keys or local keypad control. Lights should not become impossible to operate because a smart switch died. A smoke alarm remains a smoke alarm even if the integration is gone.
Buy for control, not features
Device selection criteria in order:
1. local protocol or documented local API
2. replaceable vendor ecosystem
3. physical manual override
4. sane power loss behavior
5. firmware and security maintenance
6. only then convenience featuresCloud access can be useful. Cloud dependence is the problem. A device that supports local control plus optional remote access is very different from a device whose only API is a vendor endpoint.
Field notes
- Do not buy a whole house of devices at once. Validate one device family end-to-end before scaling.
- Beware "works with Home Assistant" claims that mean a cloud polling integration, not local control.
- A smart plug on a router or server can prevent remote recovery; do not automate power for the equipment you need to fix automation.
- Write down the manual fallback for lights, locks, heat, and garage doors before automating them.
Was this lesson helpful?