
December 1, 2026 7 min read
Time to Move: Why My Smart Home Needs a Rebuild
My openHAB has been running reliably for years – on a 32-bit system, half configured in files, half clicked together in the UI. openHAB 5 draws a line under that. I'm taking this as an opportunity for a complete rebuild, and I'm taking you along in this series.
To be honest, if you had asked me which openHAB version I was running, I would have answered without hesitation: version 3. Everything was working, after all. Then I checked: 4.1.1. At some point I had upgraded and simply forgotten about it. That's how well I knew my own smart home.
At the latest, that's when it became clear: more has grown here over the years than was ever planned. Time to move – and this time I'm doing it right.
How it all started: a light switch
I got into home automation when we built our house, around 2012. It started modestly: a light switch that works perfectly normally by hand, but can also be switched automatically. Sounds trivial, but it set the principle that still applies today: the house has to work without the technology, too.
As in many other areas, I don't necessarily need an urgent reason to build an automation. "Because I can" is a perfectly valid answer in my head, especially when it comes to my own playground. I have a deal with my wife: I can automate whatever I want in the house, as long as she can keep using it the way she always has.
The first software behind it was FHEM. At some point I switched to openHAB and have never regretted it. The most important reason, then as now: openHAB talks to devices from a huge number of manufacturers. I'm not tied to one vendor, and I buy what fits my problem, not what fits my system.
Accordingly, it has become quite a colourful mix: Homematic window contacts, Hue lamps, Sonos, a few Echos, Shelly plugs and the PV system with battery storage. All of it runs on a Raspberry Pi 400 with openHABian.
Why an upgrade isn't enough this time
Until now, an openHAB update was usually unspectacular: update the package, read the release notes, adjust a thing or two. With openHAB 5, that no longer works for me. The new version requires a 64-bit system and Java 21. My Pi, however, still runs a 32-bit Raspbian:
$ getconf LONG_BIT
32
$ grep PRETTY_NAME /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"That rules out an in-place upgrade. The operating system has to be reinstalled. And if I'm setting everything up from scratch anyway, I might as well tackle the things that have been bothering me for a while.
The real problem: half clicked, half typed
openHAB gives you a choice: you can configure everything in text files or conveniently click it together in the web UI. In my case it ended up being both – depending on the year, my mood and the binding. The rules and most of the items live in files, while most of the devices were created in the UI.
That works as long as you're not looking for anything. But as soon as I wanted to know where a particular device was actually configured, the guessing game began. On top of that come the usual legacy issues of a system that has grown over time: bindings nobody uses anymore and devices that have long been unreachable. How many there were surprised even me – more on that in part 2.
The absurd thing is: at work, I version every single line of code. Every change has a commit, a description, a history. Only my own house has so far been manual work without a memory. Well, the shoemaker's children always go barefoot ;-)
The goal: my house as a repo
So for the rebuild I set myself a clear goal: everything that makes up my smart home lives in files, and those files live in Git.
- Everything in files: devices, items, rules, UI – and even the list of installed bindings.
- Everything versioned: every change is traceable, with a comment on when and why.
- No passwords in the repo: credentials stay out and are only filled in during installation.
- Restorable: a fresh Raspberry Pi only needs
git cloneand a script, and everything is up and running again.
I'll make the cleaned-up repo public over the course of the series. If you like, you can simply copy the structure.
The ground rules for the move
Moving a smart home has one peculiarity: while you're moving, you keep living in it. That's why a few rules apply:
- As little downtime as possible: the new system is built in parallel on a Raspberry Pi 5 that serves as the construction site. The old one simply keeps running in the meantime.
- Back to the Pi 400: the Pi 5 is actually meant to be the brain of the autonomous robot I want to build. So in the end, the finished system moves back to the Pi 400 – freshly set up, as proof that everything really is in the repo.
- Always a way back: the old SD card stays untouched in the drawer. If something goes wrong, I'm back to the old state in two minutes.
- Clean up instead of dragging along: whatever is dead or no longer needed doesn't move with us.
In a nutshell: the key openHAB terms
For everyone who doesn't know openHAB yet, here are the terms that will come up again and again in this series:
- Binding: the add-on that teaches openHAB to talk to a particular type of device or service, such as Hue or Sonos.
- Thing: a specific device or connection, for example the Hue Bridge or a single speaker.
- Channel: a single function of a Thing, such as the brightness of a lamp or the volume of a speaker.
- Item: the entity openHAB actually works with. An item is linked to a channel and represents, for example, “living room light”.
- Rule: a rule that reacts to events: when this happens, do that.
- Sitemap: a UI described in text form that defines which items you see and can control in the app.
So the chain looks like this: device → binding → thing → channel → item → rule or UI. [Insert graphic]
And why not Home Assistant?
That question comes up with every smart home article, so let's get it out of the way. Home Assistant is a great system with a huge community, and anyone starting out today should definitely take a look at it.
For me, though, quite a lot speaks for openHAB. I've already been through one system switch, from FHEM to openHAB, and I won't do that a second time without good reason. openHAB has been running reliably for me for years, I know its quirks, and configuration in text files fits my goal perfectly. A move within openHAB is project enough.
What to expect in this series
- Time to move – this article.
- Stocktaking in the basement – what's actually there, and what of it still works?
- Smart home as code – openHAB entirely in files and Git, without passwords in the repo.
- The construction site next door – building openHAB 5 in parallel without devices switching twice.
- Goodbye Homegear – setting up Homematic again with new radio hardware and debmatic.
- Binding by binding – Hue, Alexa, Powerwall, TaHoma and their quirks.
- Moving day – back to the Pi 400, with a stopwatch and a rollback in the drawer.
- Moved in – what the move achieved, in numbers.
Conclusion
A smart home ages quietly. It works, so you don't touch it – until one day you realise you no longer really know your own system. For me, it took the version jump to openHAB 5 to make me take a closer look. This time I don't just want to update, but to clean up and build everything so that the next move isn't a project anymore, but an afternoon.
In the next part we head down to the basement: I'll take stock and look at what's actually there. Small spoiler: quite a lot of my devices were offline, and I hadn't noticed (but don't tell my wife!).
Maybe you'd like to join me on this move – I'd love to hear your tips & questions. I'm sure we can learn something together. :)



Comments (0)
No comments found!