Upgrade Domoticz 2.5 (Pi B+) to 3.8. (Pi 3 B)

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
amercat37
Posts: 8
Joined: Wednesday 19 November 2014 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Upgrade Domoticz 2.5 (Pi B+) to 3.8. (Pi 3 B)

Post by amercat37 »

I would like to upgrade my Domoticz server from version 2.5 on a Pi B+ to the latest version on a Pi 3 B.
I've read a bunch of forum post and it seems that i could go about this three different ways.

1) Take out the micros SD and place it in the Pi 3
This will not update my OS and I just don't like this idea.

2) Install Stretch and Domoticz on the new Pi and copy over the domoticz folder from the old Pi.
I like that fact that this will copy over all of my scripts and floor plans.
However, does this mean that when I start Domoticz on the new Pi that I will be on version 2.5 again because I copied everything over?
Are there any other incompatibility issues with copying everything over?

3) Install Stretch and Domoticz on the new Pi and then use the GUI to backup/restore from the old Pi to the new Pi and copy over scripts and floorplans.
This seems like the most common way, but is the backup/restore fully compatible between versions? It seems too simple.

Just looking to see if the are any pro's or con's to each way and if there is an officially approved way to upgrade like this.

Thanks.
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Upgrade Domoticz 2.5 (Pi B+) to 3.8. (Pi 3 B)

Post by heggink »

What os version are you on?
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
amercat37
Posts: 8
Joined: Wednesday 19 November 2014 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Upgrade Domoticz 2.5 (Pi B+) to 3.8. (Pi 3 B)

Post by amercat37 »

My old Pi B+ is on Wheezy.
User avatar
michaldobrotka
Posts: 50
Joined: Sunday 01 November 2015 17:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Upgrade Domoticz 2.5 (Pi B+) to 3.8. (Pi 3 B)

Post by michaldobrotka »

Hi,
I had similar issue too:
I tried several times to upload my backup made on beta 3.87XX running on Jessie onto fresh stable install made on Stretch with no success. Is there an compatibility problem?
Domoticz on Raspi 3 and slave on ZeroW (running only with Broadlink plugin), Serial Mysensors GW on Arduino nano, Broadlink RM2, Rehau CO2 USB Stick, RF link 433 MHz, 2x Amazon Echo Dot (Controlicz), ESP2866 witk Espeasy, Sonoff
CaesarPL
Posts: 104
Joined: Tuesday 08 November 2016 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: Upgrade Domoticz 2.5 (Pi B+) to 3.8. (Pi 3 B)

Post by CaesarPL »

They say you should NOT go from beta back to stable. I've done that, however, the result after some time was database malfunction. Stil working, but there were some issues cleaning the db, for example.

I've couple of times changed Raspbian version, Raspberry Pi, etc. and my thoughts are:
- backup Domoticz db
- copy whole Domoticz folder
- upgrade/ change the card/ change the Raspbian version/ change Raspberry
- restore db
- copy missing files (scripts, floorplans)

Should work.

But, to be honest, why don't you just try? The only thing backup does is copying whole db to your computer, restore just puts it back and restarts Domoticz. THE ONLY issue I had were plugins. They are generally not stable in Domoticz. After switching them off, all the backups, restarts, are fine.
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge
User avatar
michaldobrotka
Posts: 50
Joined: Sunday 01 November 2015 17:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Upgrade Domoticz 2.5 (Pi B+) to 3.8. (Pi 3 B)

Post by michaldobrotka »

Thats the point - plugin. Im trying to get back broadlink plugin to life (tried everything, stable, beta...), but no way to keep it alive on jessie. As soon I enable it Im loosing connection to domoticz via browser after first reboot.
I was able to run it on stable stretch, but no success to upload db :lol:
And I did even this - fresh install on jessie and downgraded to stable - backup and then tried to upload ion stretch. But after upload domoticz stays always empty
Domoticz on Raspi 3 and slave on ZeroW (running only with Broadlink plugin), Serial Mysensors GW on Arduino nano, Broadlink RM2, Rehau CO2 USB Stick, RF link 433 MHz, 2x Amazon Echo Dot (Controlicz), ESP2866 witk Espeasy, Sonoff
CaesarPL
Posts: 104
Joined: Tuesday 08 November 2016 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: Upgrade Domoticz 2.5 (Pi B+) to 3.8. (Pi 3 B)

Post by CaesarPL »

I've quit using plugins because of stability issues. Great loss, as there are some interesting plugins that improve Domoticz a lot! E.g. Polish Airly or Storm report.
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge
amercat37
Posts: 8
Joined: Wednesday 19 November 2014 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Upgrade Domoticz 2.5 (Pi B+) to 3.8. (Pi 3 B)

Post by amercat37 »

So after much reading, pondering, and debating with myself, I decided to do a fresh build and import the database.

Pi 3 model B running Stretch
Fresh install of Domoticz
Imported DB and copied floor plans and scripts.

The only think that I couldn't get working was Mochad for my X10.
So I left my CM19a and my Aeon ZStick on the old server.
I've decides to just replace all my old X10 and maybe ZWave with Hue, Sonoff, and TPlink, etc.

So I temporarily have two Domoticz servers running which reference each other with json calls and both are 100% stable and functional.
Now I just need to decide on cheap switches, lights, relays, outlets, etc and slowly transition.
I did purchase some Hue bulbs and switches and they are awesome. Thinking about TPLink for wall switches and plugs and Sonoff for relays.
Hansbit
Posts: 38
Joined: Monday 17 February 2014 15:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Upgrade Domoticz 2.5 (Pi B+) to 3.8. (Pi 3 B)

Post by Hansbit »

amercat37 wrote: Tuesday 30 January 2018 16:34 The only think that I couldn't get working was Mochad for my X10.
Solution at: http://www.domoticz.com/forum/viewtopic ... ad#p180247
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest