The homelab.
Home Assistant on a Raspberry Pi Kubernetes cluster.
I run Home Assistant on K3s to control the lights, plugs and sensors in my flat. It also gives me a small cluster for trying ideas outside work, with deployments managed through Git.
- My role
- Built and maintain the homelab
- Context
- Home
- Built with
- K3s · Home Assistant · Zigbee · MQTT · ArgoCD · Prometheus · Grafana · Tailscale
01
Keeping device control local
I wanted the lights and sensors to work without relying on an internet connection. Home Assistant handles the automations, Zigbee connects the devices locally and MQTT carries messages.
There are more than twenty devices, including Hue bulbs, Innr plugs, motion and contact sensors, and a solar-powered camera. The kitchen heater and hallway lamp are part of it too: ordinary things I use every day, running on the little cluster.
02
The hardware and cluster
The cluster runs on a Raspberry Pi 5 with a 1TB NVMe drive and a UPS. ArgoCD reconciles deployments from Git, and Prometheus and Grafana provide monitoring.
Tailscale provides remote access without opening inbound ports to the internet. The IoT devices have their own VLAN.
03
Trying a local language model
I’m experimenting with a local language model for issuing commands. It is an additional interface; the existing controls and automations work independently of it.
04
What’s next
I want to add smart radiator valves and improve presence detection. A motion sensor can tell me someone passed through the hallway, but detecting whether anyone is still home needs more information.
Kubernetes recovery
Recovering workloads when the remaining nodes are full.