Home · Volume 4 · Chapter 08

📖 Chapter 08 — Home Automation

The smart home that runs on the NAS, doesn't depend on the cloud, and respects the family's privacy.

v0.1 · draft Vol 4 · Ch 08
~12 min

Learning Objectives

Introduction

The smart home is sold as a convenience: "Alexa, turn off the lights." "Hey Siri, set the thermostat to 72." The reality is: a vendor lock-in to a cloud service, a privacy concern (every word you say in your living room is sent to Amazon/Google/Apple), and a system that breaks when the vendor changes their mind.

The self-hosted alternative: Home Assistant. It runs on your NAS, integrates with thousands of devices, doesn't depend on any cloud, and respects your data. This chapter is the setup.

Why Home Assistant

Home Assistant is an open-source home automation platform. It supports more than 3,000 integrations (devices, services, APIs). The killer features:

The cost: setup is more work than buying an Echo and a few smart bulbs. The benefit: a smart home you own, not one you're renting from a vendor.

Setting up Home Assistant

Home Assistant has a few installation paths. The recommended one for a TrueNAS-based home lab: the Home Assistant Container (a Docker container you run yourself). The "Home Assistant OS" image is for a dedicated machine, not a container host.

Install via the TrueNAS Apps catalog. After install, Home Assistant is reachable at http://<nas>:8123. Complete the onboarding:

  1. Create the admin user.
  2. Set the home name, location, time zone.
  3. Discover devices on the network (Home Assistant finds compatible devices automatically).
  4. Set up integrations (the services and devices you want to control).

The integration model

Home Assistant's model: each device or service is an "integration." You add integrations to bring new things into Home Assistant. The integration gives you entities (the controllable things): a light becomes a light.living_room entity, a temperature sensor becomes a sensor.living_room_temperature entity.

You build dashboards and automations using these entities. The dashboard shows the state; the automations react to changes.

The protocols: Zigbee, Z-Wave, Matter, Wi-Fi

Smart home devices speak various protocols. The major ones:

For the home lab, the recommended starting point: a Zigbee USB stick (e.g., the SONOFF Zigbee 3.0 USB Dongle Plus, or a similar coordinator) and a few Zigbee devices. The Zigbee mesh is more reliable than Wi-Fi for a large number of devices.

MQTT: the messaging layer

MQTT is a lightweight messaging protocol that IoT devices use to communicate. Home Assistant supports MQTT, and many devices (especially DIY ones like ESPHome, Tasmota) use it as their primary communication method.

The setup: run an MQTT broker (most commonly Mosquitto) on the NAS. Home Assistant connects to the broker. Devices publish to the broker; Home Assistant subscribes to the topics.

MQTT is the right answer for: DIY sensors, ESP-based devices, integrating custom hardware with Home Assistant.

Building automations

Automations are the reason to have a smart home. The basic structure:

Examples of automations that actually help:

The principle: automations that reduce friction, not add it. "Alexa, turn off the lights" is friction (you have to speak, the device has to understand, the API has to be up). "When the sun sets, close the blinds" is the opposite — the automation runs, you don't think about it.

The family adoption problem

From Volume 2, Chapter 1: the family's experience matters. For home automation:

The test: would Mimi say "yes, this is helpful"? If yes, keep the automation. If no, delete it.

The voice assistant integration

Home Assistant integrates with voice assistants. The options:

For most home labs, the local voice is enough for "set a timer" and "what's the temperature in the baby's room?" For everything else, the app and automations handle it.

Security and privacy in the smart home

Smart home devices are notoriously insecure. The mitigations:

Engineering Note

The smart home should be invisible when it's working. The automations run. The lights come on when they should. The thermostat adjusts. Nobody thinks about it. The day someone notices the smart home is when something's wrong ("why is this light on?"). The day nobody notices the smart home is when it's working.

Summary

Home Assistant runs on the NAS, integrates with thousands of devices, and works without the cloud. Zigbee for sensors and bulbs, Z-Wave for locks, Matter for cross-vendor compatibility, Wi-Fi for direct-connected devices. MQTT for DIY devices. Build automations that reduce friction, not add it. Isolate IoT on its own network. Local voice is sufficient for most needs. The smart home is invisible when it's working.

Checklist

Looking Ahead

Chapter 09 is the last chapter of Volume 4. It covers when to expand: the signs the current NAS can't host the lab anymore, the right time to add a second machine, when to consider a Proxmox cluster, when to bring in dedicated hardware. The signs, the math, the timing.

Ch 08 · v0.1 · drafted from the original ChatGPT conversation, July 2026