Skip to main content

Layer 3 · The brain

The brain of the home

The third layer is the hub that ties everything together — one local system where every device speaks the same language, automations run on their own, and it all keeps working when the internet is down.

settings_suggest 12 min

A home full of smart devices that cannot talk to each other is not an intelligent home — it is a drawer full of separate apps. The automation layer is what turns the pile of gadgets into one system. It sits on the network from Layer 1, often runs on the storage from Layer 2, and gives every device a single place to be coordinated.

Two words describe this layer: integration — getting everything, whatever brand it is, to work together — and automation — having the home act on its own, so you stop being the remote control. The non-negotiable is that it all runs locally. When the brain lives in your home rather than in a vendor’s cloud, your lights still work during an internet outage, and your routines do not vanish when a company changes its mind.

Why this layer matters

  • Integration is the whole value. A motion sensor from one brand turning on a light from another, when a third brand’s sensor says it is dark — that only happens with a hub that speaks to all of them.
  • Local-first means dependable and private. No round-trip to a distant server means automations that are instant and keep working offline, with nothing about your daily routine leaving the house.
  • One brain, not ten apps. A single place to see and change how the home behaves, instead of a phone full of competing apps that each know one corner.

The hub — Home Assistant

Everything in this layer plugs into one piece of software at the centre: the hub. Our usual recommendation is Home Assistant — an open, local hub that speaks to thousands of devices across brands and protocols, runs your automations, and keeps nothing in someone else’s cloud. It is the example we reach for most often, but it is one choice among open alternatives, not a requirement; the value is an open hub you own, not the badge on it.

The hub does three jobs at once. It integrates — gives a light from one brand, a sensor from another, and a lock from a third a single place to be understood. It automates — runs the rules that make the home act on its own. And it holds the state of the home — what is on, who is in, how warm each room is — in one place rather than scattered across ten apps.

Where it runs was settled back in Layer 2: most often as a supervised virtual machine on the private-cloud box you already keep powered on, recoverable from a snapshot in minutes. A small dedicated host — a mini-PC or a Raspberry Pi — is the alternative when you would rather keep the brain on its own machine. Either way it is yours to move, back up, and replace.

Speaking every protocol

Smart devices do not all speak the same language, and the hub’s first job is to be the translator. We lead with the open, vendor-neutral standards and fall back to the established ones only where we must — in order, Matter → Thread → Zigbee → Z-Wave, with plain Wi-Fi for the devices still built on it. Matter is the one to design around: carried over Thread or Wi-Fi, it is vendor-neutral and intended as the long-term successor to Zigbee.

Matter and Thread are the open standards to build on; everything below them is a fallback chosen on merit, not habit. The widest of those fallbacks is Tuya — the white-label cloud behind a vast catalogue of inexpensive own-brand devices. Its Zigbee parts are already local: they join your own Zigbee coordinator and never touch Tuya’s servers. Its Wi-Fi parts ship cloud-bound, but Home Assistant’s local Tuya integration talks to them straight on your network using each device’s local key, with no cloud round-trip — so even this proprietary corner can be made to answer to your own hub. The catch is honest: pulling that key out is more fiddle than a Matter pairing, and the device stays a closed design, which is why Tuya sits at the bottom of the ladder, not the top. It is the rung for the cheap thing nothing open quite covers — reached for when it earns its place, not by default.

Two add-ons turn the hub from a piece of software into a device that actually owns these radios, rather than borrowing a manufacturer’s bridge:

  • The Matter Server add-on lets the hub commission and control Matter devices directly — you add a new bulb or plug to your own hub, not to a vendor’s app that then grudgingly shares it.
  • The OpenThread Border Router (OTBR) add-on turns a Thread radio into your home’s own Thread border router, so the hub runs the Thread network itself — no third-party hub sitting in the middle deciding what your devices may do.

The physical radio those add-ons drive — the Thread and Zigbee coordinator — was placed and wired back in Layer 1, on the IoT network with the things it talks to. Here it stops being hardware and becomes capability: plug it into the hub, run the two add-ons, and a device’s protocol stops being your problem.

Messaging — the common language

Once more than a handful of devices and services need to talk, wiring each one straight to every other becomes a tangle. The tidy answer is a pattern called publish/subscribe: a device simply announces a fact — “the back door just opened” — without knowing or caring who is listening, and anything interested subscribes to that kind of message. The parts stay decoupled, so you can add a new listener without touching the thing that speaks.

The piece in the middle that carries those messages is a broker. Our default is Mosquitto, an open, local MQTT broker — MQTT being the lightweight messaging standard most of the home-automation world already speaks. It stores nothing in a cloud and runs as an add-on beside the hub.

This matters more than it sounds, because so much plugs into it. A Zigbee bridge such as Zigbee2MQTT publishes every sensor and switch as MQTT messages; small home-built devices running ESPHome do the same; the hub subscribes to all of them. One broker in the middle, speaking an open standard, keeps the home from becoming a knot of point-to-point links — and keeps every piece replaceable, because they agree on the message, not on each other.

Flow logic — Node-RED

The hub’s built-in automations handle most of what a home needs: when this happens, do that, perhaps with a condition or two. But some logic is genuinely branchy — it waits, loops, talks to several systems, and forks down different paths — and writing it as a flat list of rules gets unwieldy. For that there is Node-RED: an open, visual tool where you wire messages, conditions, timers, and services into a flow you can see and follow, running as an add-on beside the hub.

It complements the hub rather than replacing it:

Reach forWhen the automation is
The hub’s built-in automationsA straightforward trigger and action, with maybe a condition — most of the home
Node-REDBranchy, stateful, or spanning several systems — the handful that outgrow a simple rule

Like everything else here, it is a recommended default on open foundations, not a lock-in: the flows are yours, and the home runs without it if you never need it.

Is the brain healthy?

A brain you cannot see the state of is one you only hear from once something has already broken — a sensor’s battery long dead, a device silently offline for a week, an automation that quietly stopped firing. The fix is to make the system tell you how it is doing: dashboards, history, and alerts that surface trouble while it is still small.

We treat that as part of the build, not an afterthought — but the tooling for it does not live in this layer. Dashboards, metrics, logs, and alerts run on the private-cloud box and watch the whole home, the brain included; it is covered in the observability section of Layer 2. The brain’s job is to expose its health honestly; the box’s job is to keep an eye on it.

What it costs, roughly

The surprising part of this layer is the bill, because the software is free and open-source, top to bottom. Home Assistant, the Matter and Thread add-ons, Mosquitto, Node-RED — none of it carries a licence fee or a subscription. The Thread and Zigbee radio was bought back in Layer 1, and the box it all runs on was bought in Layer 2. For most homes, this layer adds nothing to the hardware bill at all.

The one optional cost is a separate machine, if you would rather the brain did not share the private-cloud box:

RoleWhat it doesExampleRough cost
The softwarehub, protocols, messaging, flow logicHome Assistant, Mosquitto, Node-RED — all open-source€0
Dedicated host (optional)runs the brain on its own machinea mini-PC or Raspberry Pi 5~€80–200

If the brain rides on the box from Layer 2, even that disappears. The cost of this layer is the design, not the hardware.

How DOMINIO does it

We build the brain on open standards, with Home Assistant as our usual recommendation rather than a fixed requirement, running locally on hardware you own — no subscription, no manufacturer cloud, nothing you cannot replace later. The home speaks Matter and Thread first, with Zigbee and Z-Wave where Matter has not yet reached, and every device is commissioned to your hub rather than a vendor’s app. The pieces talk over an open message broker; the automations that outgrow a simple rule get a visual flow you can follow; and the whole thing reports its health to the private-cloud box, so trouble surfaces early. Remote access rides the single protected entrance set up back in Layer 1. The result is one local brain that answers only to you — and keeps the lights working when the internet does not.


With a brain in place, the next layer is the fun one — see Devices, the hands and senses.

When you want it designed around your home rather than in the abstract, that is what a discovery call is for.

Want advice for your own home?

Start with a discovery call — we will tell you honestly what makes sense for your home, one layer at a time.