29
Update policy? (lemmy.world)

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?

top 11 comments
sorted by: hot top controversial new old
[-] chaospatterns@lemmy.world 4 points 4 days ago

update 2.1.3 once update 2.1.4 becomes available

I wouldn't use that policy because what if 2.1.4 includes a fix for an issue in 2.1.3?

My update policy is wait until a month comes put, then update to the newest previous month's version. Patches for bugs go into mainline and are backported so this minimizes bugs in the new features.

[-] Ulli@mstdn.social 1 points 4 days ago

@chaospatterns
It is interesting how many people think that an update could not contain previous bugs, if they just wait long enough for the installation…

[-] chaospatterns@lemmy.world 1 points 4 days ago

There's no guarantee bugs get fixed in a newer version, but there's a higher chance of a software feature working if it's been out for awhile with a few patch releases than it is for a brand new feature to work day one on a YYYY.MM.0 release. Home Assistant generally holds new features for those YYYY.MM.0, but patches get backported.

[-] Ulli@mstdn.social 1 points 3 days ago

@chaospatterns
Yeah, No, it makes sense to wait 2-3 hours after a release to see if the update is bricking something, but otherwise the chances for a bug are the same with every update and feature.
There is an uncountable amount of bugs, that has been previously fixed in the wild, and almost every software on the planet is involved…

[-] just_another_person@lemmy.world 10 points 6 days ago

Since there is no semantic version locking between versions of different add-ons and such in HA, you may always be at risk of hitting a wall like you describe. Keep backups and rollback, that's about the best you can do.

In the future, they would be smarter to use semver locking so you don't accidentally update something that is incompatible with other versions of things like a package repo, but that's a lot of heavy lifting that will take awhile to sort out.

[-] jeena@piefed.jeena.net 10 points 6 days ago

I wish HA would have LTS versions, I would absolutely run it, like I do on my servers.

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.

[-] TVA@thebrainbin.org 4 points 6 days ago

2.1.4 is fixing things in 2.1.3 and when those broken things effect you because you decided to install a known buggy version, then you'll shift the complaint that it shouldn't have let you install the broken one that would have effected you.

Pay attention to the update notes and let the system take backups, that'll cover you 99% of the time.

I had something similar happen with a Node-Red update a few years ago and I stopped allowing automatic updates and started reading the notes and being proactive about my updates and have had zero issues since because I ensure my system is ready for the updates first.

[-] jeena@piefed.jeena.net 6 points 6 days ago

I have a baby at home and that makes it impossible to keep up with all the updates. Reading the release notes? God damn, I'm glad I have the time hit the update button once a month and then pray to god that it doesn't break anything. If it does then it'll take months before I have time to investigate.

This led me to abonden HA from the summer house already. My dad's HA has been turned off for three months too because I just can't find the time to fix it, and at home it's running but I have only one type of ZigBee things still working, other things are just broken like my script showing random pictures on the TV.

I really wish for a LTS version. I don't have those problems on my Server where I run Ubuntu 22.04 LTS.

[-] sxan@midwest.social 2 points 6 days ago

Yeah, I've been dealing with the fallout of doing a firmware upgrade suggested by zwave2js which - I don't know - changed the IDs on every single one of my 60 z-wave devices. I've been going through fixing dashboards, and automations, and scripts. It's been a major PITA. It is, however, the first time a breakage of this magnitude has happened to me in a decade.

It wasn't just that devices changed; some stayed the same but the entity value IDs of their functions changed. It was so random.

I'm going to think twice about doing that, next time.

this post was submitted on 26 Apr 2025
29 points (100.0% liked)

homeassistant

14052 readers
2 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