Page 1 of 1

Best way to upgrade old version of Domoticz?

Posted: Thursday 18 November 2021 15:21
by koit12
Hi,

I've been using Domoticz for a couple of years now without upgrading.
It's been running rock solid on version 3.9634.

What is the best way to upgrade to the latest build of Domoticz?
I have a lot of devices and I don't want to start over from scratch.

Environment:
Hardware:
Raspberry Pi 3
Aeotec ZW090 Z-Stick Gen5
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver

Software:
Raspbian GNU/Linux 8 (jessie)
Domoticz version 3.9634
HomeBridge 0.4.36

Domoticz hardware:
OpenZWave
HA-Bridge
RFXCOM
MQTT Client
HarmonyHub

Really hope it is possible to upgrade without loosing my existing setup.

Regards
Bernt

Re: Best way to upgrade old version of Domoticz?

Posted: Thursday 18 November 2021 15:37
by heggink
Your biggest challenge will be OZW as that will go from 1.4 to 1.6. Many people reported issues.

If you give it a couple of weeks then there is likely to be a new stable. That includes HA autodiscovery in case you want to switch from OZW (which is suffering from lack of support) to zwavejs2mqtt.

Make sure you have a decent backup.

Sent from my SM-G980F using Tapatalk


Re: Best way to upgrade old version of Domoticz?

Posted: Thursday 18 November 2021 15:46
by waltervl
Perhaps reserve a new Raspberry Pi for this, or at least use a new SD card to install and/or update to the new Domoticz environment.
Then you can always use the old SD card again to continue if the new install fails for some reason.

Re: Best way to upgrade old version of Domoticz?

Posted: Thursday 18 November 2021 15:55
by koit12
Thanks for your replies guys :-)

Is there some tutorial available that describes the steps I have to take?
I guess I can't upgrade directly from my old version of Domoticz to the latest and greatest.
Newer versions of Domoticz requires newer version of Raspbian. How do I upgrade and preserve my packages supporting the Domiticz environment (mqtt, home bridge, HA-Bridge and so on)?

Re: Best way to upgrade old version of Domoticz?

Posted: Thursday 18 November 2021 16:57
by heggink
If you are still on Jessie then I would not advice you to go through all the OS upgrades. That would require you to first upgrade to Stretch, then Buster and ultimately Bullseye. It probably works technically but it's an accident waiting to happen.

If I were you (and I was a while back) then I would start fresh. The only caveat is that you don;t want bullseye for now as there are issues with domoticz and python (see the forum).

If at all possible, you can always use the docker container which will not have any issues. That way, you can always upgrade no matter what OS you have.

Then again, the docker container has limitations which is why it's close to impossible for me to go there (too many python plugins, too many installs to do on every docker image upgrade).