Domoticz downgrade from 2023.1 to 2022.2
Moderator: leecollings
-
- Posts: 33
- Joined: Thursday 04 November 2021 21:17
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.1
- Location: UK
- Contact:
Re: Domoticz downgrade from 2023.1 to 2022.2
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.
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.
Raspberry Pi4, Sunny Boy 4000TL, Victron Multiplus II 10kw ESS, 44kWh LiFEPO4, Batrium BMS, NodeRED on Cerbo GX
-
- Posts: 6
- Joined: Saturday 29 April 2023 14:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz downgrade
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?
And I don't know where to find the domoticz_linux_armv7l-tgz file in version 2022-1?
-
- Posts: 33
- Joined: Thursday 04 November 2021 21:17
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.1
- Location: UK
- Contact:
Re: Domoticz downgrade from 2023.1 to 2022.2
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
Follow the instructions at https://www.domoticz.com/wiki/Build_Dom ... rom_source
Raspberry Pi4, Sunny Boy 4000TL, Victron Multiplus II 10kw ESS, 44kWh LiFEPO4, Batrium BMS, NodeRED on Cerbo GX
-
- Posts: 6
- Joined: Saturday 29 April 2023 14:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz downgrade
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)
I would like to compile the 2022 version (domoticz/releases/tag/2022-2)
- Xenomes
- Posts: 416
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: Domoticz downgrade from 2023.1 to 2022.2
Here is a download for 2022.2, the file is to big for upload here.
https://contactkring.nl/phpbb/viewtopic ... 847d#p4703
https://contactkring.nl/phpbb/viewtopic ... 847d#p4703
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2025.1 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
-
- Posts: 6
- Joined: Saturday 29 April 2023 14:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz downgrade
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?
When I copy the 2023 release from here https://domoticz.com/downloads/ it works again!
an other idea?
-
- Posts: 6
- Joined: Saturday 29 April 2023 14:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz downgrade
Hello, I managed to compile the 2022 release
by following the Build Domoticz from source procedure.
Anyhow, thanks for your help.

Anyhow, thanks for your help.
-
- Posts: 33
- Joined: Thursday 04 November 2021 21:17
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.1
- Location: UK
- Contact:
Re: Domoticz downgrade from 2023.1 to 2022.2
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
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
Raspberry Pi4, Sunny Boy 4000TL, Victron Multiplus II 10kw ESS, 44kWh LiFEPO4, Batrium BMS, NodeRED on Cerbo GX
- Xenomes
- Posts: 416
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: Domoticz downgrade
Strange did you put a 2023 database in the folder?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?
But nice that it compile was a success!
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2025.1 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
-
- Posts: 6
- Joined: Saturday 29 April 2023 14:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz downgrade
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.
-
- Posts: 371
- Joined: Friday 17 August 2018 14:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz downgrade from 2023.1 to 2022.2
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...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.
(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)
-
- Posts: 33
- Joined: Thursday 04 November 2021 21:17
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.1
- Location: UK
- Contact:
Re: Domoticz downgrade from 2023.1 to 2022.2
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.
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.
- Attachments
-
- Detail Schema Changes 2021-1 and 2023-1.jpg (266.98 KiB) Viewed 999 times
Raspberry Pi4, Sunny Boy 4000TL, Victron Multiplus II 10kw ESS, 44kWh LiFEPO4, Batrium BMS, NodeRED on Cerbo GX
Who is online
Users browsing this forum: Google [Bot] and 1 guest