# Hardware got fun again: now I can just talk to my ESP32

For most of my career, "hardware" meant something that happened to other people. I write software: web apps, a Mac app, an iOS app. Hardware felt slow. You read datasheets, fight with drivers, flash firmware, and when something goes wrong there's no stack trace, just an LED that doesn't turn on.

That has changed, and it's become one of my favourite things to tinker with. Two things changed it: boards that cost almost nothing, and the fact that I can now *talk* to the things I build.

## The ESP32 is the cheapest superpower in tech

An ESP32 is a tiny microcontroller with Wi-Fi and Bluetooth built in. It costs a few francs, runs on USB power, and has enough pins to read almost any sensor or switch almost anything: temperature, humidity, motion, light, a relay, an LED strip, a buzzer, a small display.

What used to make it hard wasn't the board, it was the firmware. Today most of that is gone. With [ESPHome](https://esphome.io) you describe the device in a short YAML file ("this pin is a temperature sensor, that pin is a relay"), flash it once over USB, and after that it updates over Wi-Fi. For a software person that feels very familiar: config in a file, versioned in git, deployed over the network.

## Software is the glue that makes hardware useful

On its own, a sensor is a number. It gets interesting once software decides what to do with it.

At home I run a small server with [Home Assistant](https://www.home-assistant.io), [n8n](https://n8n.io) for workflows, and [Ollama](https://ollama.com) for running AI models locally. Home Assistant sees ESPHome devices almost as soon as they join the network, so a new board shows up as entities I can use in automations straight away. I'm at around 20 automations now. Some are the classics: motion lights that switch off after five minutes, night path lighting, a wake-up light ramp in the bedroom. Others are the small "nobody would ever sell this" ideas that make a home feel like yours: counters for how often the front, kitchen and balcony doors open (reset at midnight), a reminder when a door is left open, a ventilation nudge when the humidity gets high, a daily summary of which sensors have low batteries, and a weekday vacuum run with guardrails so it doesn't start at the wrong moment.

That's the part I love as a developer. The hardware is cheap and dumb on purpose, and all the logic lives in software I already know how to write, test and version.

## The new part: chatting with your hardware

This is what made it fun.

Until recently, getting something out of a device meant building a UI for it, or remembering the exact entity name and the exact service call. Now the goal is to just ask:

- "Is the balcony door still open?"
- "How often was the front door opened today?"
- "Which sensors need new batteries?"
- "Turn on movie mode."

Home Assistant can hand that request to a language model, and the model can read sensor states and call actions on the devices it's allowed to touch. Because I run the model locally with Ollama, the conversation never leaves my network. For me that matters as much as it does for any product I build: the house knows a lot about the people in it.

It also changes how I *build*. When I add a new sensor, I'm no longer designing a dashboard first. I wire it up, give it a clear name, and the first "UI" is simply asking about it in plain language. If the answer is useful, I keep it. If I keep asking the same thing, that's my signal to turn it into an automation.

And the same AI tools help on the build side. When I don't know why an I2C sensor reads zero or which pin a board can use for deep sleep, I describe the setup and paste the logs, and I'm unstuck in minutes instead of an evening.

## Why this is a great time for software developers to start

- **The entry cost is tiny.** One board, one sensor, one USB cable. If it doesn't work out, you've lost the price of a coffee.
- **Your existing skills transfer.** YAML, git, APIs, webhooks, CI: it's all there.
- **The feedback is physical.** A light that turns on because of code you wrote is a different kind of satisfying than a green test run.
- **Talking to it removes the UI step.** You can get value from a device before you've built anything around it.
- **It can stay private.** Local models and a local hub mean your home doesn't depend on someone else's cloud.

If you also have a 3D printer, the last step is a case: it turns a breadboard experiment into something that looks finished on a shelf. That's the same kind of making that got me into 3D printing with [Formivo](https://www.formivo.ch).

## Where to start

Pick one small annoyance at home, buy one ESP32 and one sensor that would solve it, and flash it with ESPHome. Connect it to Home Assistant, give it a good name, and ask about it. You'll know within an evening whether you're hooked.

I was.
