Commit

fdced95

I've been automating my home office with Home Assistant for a while now, and I'm going to share how it works in a short series of posts. From the very basic stuff to the part where an LLM runs parts of my house and I can talk with it from my phone. Quick look at the setup first: - @home-assistant - Zigbee devices through Zigbee2MQTT (lights, remotes, sensors) - a few DIY sensors on ESP32 with ESPHome - an MQTT broker in the middle of all that - some custom integrations: Adaptive Lighting, Awtrix, Bambu Lab, Dashie, ... - OpenAI behind HA's ai_task for the AI parts Nothing exotic. Most of it is stuff you can buy or build for cheap, and the YAML is the interesting part. Before building anything I set myself four rules. Everything in this series comes back to them at some point: - zero maintenance. The system runs on its own. I don't want to check anything, babysit anything, or find out a week later that something silently stopped working - one place for everything. Every device is controlled from Home Assistant, whatever the brand or protocol. No device lives in its own little world - no apps. I don't want to open an app to do anything, but everything still has to be within reach. Buttons, screens, automations, notifications, whatever fits - resilience. It has to be stable, and when something does go wrong (a device drops, HA restarts, a sensor goes crazy) it has to recover by itself Day to day it looks like this: I walk in, the office is ready. I walk out, everything turns off. I come back, it's exactly how I left it. I don't touch a switch or open an app for any of that. Easier said than done, and some of these rules took me a few iterations to actually respect. That's what the next posts are about.

commit fdced95

Starting with the boring but essential part: knowing if I'm actually in the room. Everything else depends on it in my office: if presence is wrong, the lights go off while I'm sitting there, or the room stays lit for the cats 🐈. The main sensor is an LD2410 mmWave radar wired…
Last commit was about presence detection, now the first thing it drives: the lights. Two automations for that: presence goes on, lights on. Presence off for 5 seconds, lights off. Here's the "on" one, simplified:…
A short one this time: physical buttons for the music. There's a smart speaker in my office. Reaching for the phone just to lower the volume gets is a no no, so I have cheap Zigbee devices on the desks: a small dimmer-style remote and a rotary knob. Both go through Zigbee2MQTT…
Sorry, this one took a bit longer than planned 😅 I mentioned house modes a couple of times already, so let's fix that debt. It's not really about the office, but almost every office automation depends on it. I have one input_select with four options: active, away, night,…