this post was submitted on 26 Apr 2025
18 points (95.0% liked)

homeassistant

13963 readers
133 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 2 years ago
MODERATORS
 

I used to just update stuff when I could see an update was available. This changed dramatically when a few months ago, I updated Zigbee2mqtt to version 2 and my whole house stopped working. That marked the moment when the other inhabitants in my house decided that the home automation project had gone too far.

Since then, when I saw an update was available, I've waited - preferably until I had seen other people reporting that stuff still worked. But now I've realised, that if I wait too long with an update, another update just comes along...

Can I somehow configure HA to always automatically install e.g. update 2.1.3 once update 2.1.4 becomes available? Or is that a nogo too? I realise that the only sure-fire way to do this is with a staging environment, where everything is tested out before updating the production environment. But how many of us has that kind of a setup?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] skullgiver@popplesburger.hilciferous.nl 4 points 6 hours ago (1 children)

Backups are important when dealing with software like this. Don't click "update" unless you can spend the five or ten minutes to restore a backup (or have the hour or two to fix things). Do regularly update, though, because the longer you stay behind, the more difficult it will be to catch up later. I generally YOLO the home assistant updates and hit update whenever there's a prompt.

As for the Zigbee2Mqtt thing, don't update major software releases without checking the change logs. If software decides to go from 1.x to 2.x, something significant probably changed. I wouldn't stick with the old version forever, but i wouldn't update major versions unless I have an hour or so to fix the breaking changes.

With Zigbee, you can configure many devices to connect to each other directly, so even when Home Assistant shits the bed, you can still turn your lights on and off. Not as feature rich as full home automation, but probably the best choice when you share your house with others.

You could go for a staging environment but there's no way to actually test that without having dedicated hardware hooked up to the staging server, so that's probably way too much. Instead, I'd focus on a good backup solution. For instance, making daily backups (or more! Only record the bits that are changed!) if your home assistant disk, using tools like virtual machines and ZFS. Put any databases with important long term storage on a separsre (virtual) machine so you can revert home assistant without data loss. This time your problems may have been caused by a significant update, but next time it could be a random particle taking billions of years to cross half the universe just to hit your RAM in exactly the wrong way and corrupt your entire OS. If you can easily recover from crashes outside of your control, you can reuse that tech to recover from crashes you accidentally caused yourself.

[โ€“] Cyber@feddit.uk 2 points 5 hours ago

I agree, this pretty much covers all the points.

I do full disk backups of HA, Zigbee2Mqtt, etc every now & again as well as backups before updates.

And I don't so updates when I'm in a rush - that angers the bug gods who strike my systems down with system faults.

Do it on a Saturday morning and it all goes smoooooothly