Page 2 of 2
Re: Domoticz downgrade from 2023.1 to 2022.2
Posted: Sunday 30 April 2023 13:46
by simat
https://github.com/domoticz/domoticz/releases
you have to download the sources - i don't know of a way to git clone from releases.
So git clone - the latest build and then extract the content of the download over the top.
Re: Domoticz downgrade
Posted: Sunday 30 April 2023 21:09
by Toyoco69
I already tried but it doesn't work, mainly Domoticz main file is missing" in the releases.
And I don't know where to find the domoticz_linux_armv7l-tgz file in version 2022-1?

- Stable Release 2022
- R2022.png (75.55 KiB) Viewed 1198 times
Re: Domoticz downgrade from 2023.1 to 2022.2
Posted: Sunday 30 April 2023 21:33
by simat
That because you have to compile it. This creates the Domoticz executable on your platform.
Follow the instructions at
https://www.domoticz.com/wiki/Build_Dom ... rom_source
Re: Domoticz downgrade
Posted: Monday 01 May 2023 9:28
by Toyoco69
I followed the procedure correctly but it compiles the latest version (2023) ;-(
I would like to compile the 2022 version (domoticz/releases/tag/2022-2)
Re: Domoticz downgrade from 2023.1 to 2022.2
Posted: Monday 01 May 2023 10:22
by Xenomes
Here is a download for 2022.2, the file is to big for upload here.
https://contactkring.nl/phpbb/viewtopic ... 847d#p4703
Re: Domoticz downgrade
Posted: Monday 01 May 2023 11:24
by Toyoco69
Thank you, I downloaded the 2022 folder, I copied to my raspberry as root but it doesn't work, domoticz doesn't start anymore!
When I copy the 2023 release from here
https://domoticz.com/downloads/ it works again!
an other idea?
Re: Domoticz downgrade
Posted: Monday 01 May 2023 19:21
by Toyoco69
Hello, I managed to compile the 2022 release

by following the Build Domoticz from source procedure.
Anyhow, thanks for your help.
Re: Domoticz downgrade from 2023.1 to 2022.2
Posted: Monday 01 May 2023 19:24
by simat
So did you do the following ?
git clone -b 2022.2
https://github.com/domoticz/domoticz dev-domoticz
cd dev-demoticz
cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
make - this should take over 1.5 hours
After which there will be a domoticz binary in this directory. Then may be mv the existing domoticz directory to domoticz.old and then mv dev-domoticz to domoticz, then copy in your edited domoticz.db and any plugins / dzVent scripts and run the following to see the debug info..
sudo /home/pi/domoticz/domoticz -www 8080 -sslwww 443
remember to clear your browser cache
Re: Domoticz downgrade
Posted: Wednesday 03 May 2023 9:23
by Xenomes
Toyoco69 wrote: ↑Monday 01 May 2023 11:24
Thank you, I downloaded the 2022 folder, I copied to my raspberry as root but it doesn't work, domoticz doesn't start anymore!
When I copy the 2023 release from here
https://domoticz.com/downloads/ it works again!
an other idea?
Strange did you put a 2023 database in the folder?
But nice that it compile was a success!
Re: Domoticz downgrade
Posted: Wednesday 03 May 2023 10:10
by Toyoco69
no, even without the database file, the version uploaded on the dutch forum does not work for me. It's not a big deal since I managed to compile the version in 2022 from the official git.
Re: Domoticz downgrade from 2023.1 to 2022.2
Posted: Wednesday 03 May 2023 20:52
by akamming
simat wrote: ↑Thursday 20 April 2023 20:43
It is possible, I recently downgraded from 2023.1 right back to 2021.1 due to major problems with a Python Modbus RTU plugin.
Software is here
https://github.com/domoticz/domoticz/releases it doesn't include an executable, you have to build it yourself, but that is easy enough by following the instructions at
https://www.domoticz.com/wiki/Build_Dom ... rom_source
Obviously make a backup of everything 1st. You might have to do a git pull 1st to get the buildfiles and then extract the relevant source you downloaded over the top.
You then have to edit the domoticz.db file using
https://sqlitebrowser.org/dl/ and change the DB_Version to 156 (for 2022.1) and 148 (for 2021.1) in the preference table and then click Write changes. See
https://www.domoticz.com/wiki/Domoticz_ ... _-_Commits for database version details.
I built a fresh platform for it all to sit on and it now works perfect.
I hope this helps.
I would definitely not recommend downgrading like this. however your database is still upgraded, you only fooled domoticz into thinking it was not and apparently that works for now. But you might have fucked any future upgrade this way... and then you'r stuck on this version forever...
(or manually undo this database version change and then try to upgrade... bit still risky.. you don;t know what was handled the wrong way in the DB which could case vague problems in the future)
Re: Domoticz downgrade from 2023.1 to 2022.2
Posted: Thursday 04 May 2023 11:18
by simat
I deemed it quite safe as I checked the DB schema between 2021.1 and 2023.1 and only minor changes had occured, all of which had no effect on my install. The only big one is EnOceanSensors looks like it got migrate to EnOceanNodes. The other tables effected were Camera with an extra field, Notifcations with an extra field and UserVariable with a data type change. On my system all of these tables were empty so I had nothing to worry about.
I only spent a couple of weeks back on 2021.1 as I managed to fix the Modbus RTU plugin to work in parallel instances on 2023.1 and a 1-wire counter return a zero instead of a null issue, so I've 'upgraded' back to 2023.1 and all is working very nicely now. No problems upgrading and DB version ok too.
I used KS DB Merge Tools to compare the 2 schemas.