Network

The network underneath it all.

Every sensor, screen and camera depends on the network. Ours is UniFi from end to end, with smart devices kept apart from our computers and phones, and a second internet line for when the first one drops.

1

Gateway

7

Switches

3

Wi-Fi access points

5

Separate networks

2

Internet lines

The kit

UniFi, end to end.

One make for the router, the switches and the Wi-Fi means one app to manage the lot.

  • Gateway: a UniFi Cloud Gateway Max, the router and firewall.
  • Main switches: two UniFi Pro Max 16 PoE switches. PoE sends power down the network cable, so access points and cameras need no plug.
  • Small switches: five UniFi Flex switches where a room needs a few extra ports.
  • Wi-Fi: three UniFi U6 Mesh access points.
  • Storage: a QNAP TS-453B NAS for files and backups.

Why UniFi?

Everything shows up in one place: every device, how much it's using, and what's misbehaving. Adding a switch or an access point takes minutes, and the separate networks below are a few clicks rather than a weekend.

Two internet lines

Full-fibre broadband is our main line, with Starlink as a backup. If the fibre drops, the gateway switches over on its own, and Home Assistant doesn't need the internet anyway.

Separate networks

Five lanes, not one big road.

Smart gadgets are often the least secure things in a house. Giving them their own network (a VLAN) keeps them apart from our laptops and phones.

Network 1

Main

Our computers, phones and tablets.

Network 2

Smart devices

Plugs, sensors, screens and anything else that's “smart”, kept away from our computers.

Network 3

Guests

A separate network for visitors' phones.

Network 4

Servers

A separate lane for always-on server kit.

Network 5

Cameras

The security cameras and their recorder, kept on their own.

Extra

Ad blocking

The gateway's built-in ad blocker filters adverts and trackers for every device in the house.

Away from home

Reaching home without opening the door.

Lots of guides tell you to open a port on your router so you can reach Home Assistant from outside. We don't.

A private tunnel

The gateway runs a WireGuard VPN. A phone or laptop connects to it and is then, in effect, back on the home network.

Nothing exposed

No ports are opened to the internet for Home Assistant, so there's nothing for strangers to find or try to log in to.

No subscription

Paid cloud-access services are a good option for many people. A VPN on hardware we already own does the job for us at no extra cost.

Before

Where we started: mixed brands.

Our first network was a DrayTek router, a Netgear switch and a TP-Link Deco mesh. It worked, but each part had its own app and its own way of doing things.

Then

Now

Router

DrayTek

UniFi Cloud Gateway Max

Switches

Netgear

UniFi, with PoE

Wi-Fi

TP-Link Deco

UniFi U6 Mesh

Managed in

Three apps

One app

What we learned

Four things worth copying.

Keep smart kit separate

A separate network for gadgets costs nothing on modern kit and limits the damage if one is badly made.

Cable where you can

Wi-Fi is for phones. Anything that stays put, including the Zigbee coordinator, works better on a cable.

Have a backup line

With the house relying on the internet for tariffs and updates, a second connection is cheap peace of mind.

Don't open ports

A VPN gives you the same access from outside without putting Home Assistant on the open internet.

Next: take the tour

Room by room: what's in each one and what it does.

Rooms →