OH 4.3.8 Upgrade to 5.x

I’m currently running OH 4.3.8 on a Pi4.

The only reason I’m upgrading to OH 5.x is the Amazon Echo Control binding has been reported it works 100%. The Amazon Echo Control 4.3.9 version does NOT work 100%.

[amazonechocontrol] - Bugs in 4.3.9 version - Setup, Configuration and Use / Scripts & Rules - openHAB Community

I have purchased the Pi5 and plan to image it, which version should I image to? Stable, Milestone, SnapShot

After getting OH 5.x up and running, how should I restore my 4.3.8 backup to it?

I’m only running text files of items, rules, transform and sitemaps. I don’t have any GUI related stuff in my setup.

Thanks, Jay

The Amazon Echo Control Binding is also available as a .jar file for OH 4.3.8. This works out fine, as before the login issue appeared.

The general rule is to get your new Raspberry Pi working with your current version 4.3.8. Then you can upgrade to 5.x.

Here you can find a good explanation.

I would choose the Stable image unless you want to test new features.

1 Like

Wow, Yes it does! I don’t understand why this is working based on these scenarios:

  1. Dropping in 4.3.9 a lot of doesn’t work but can log in ( except for [amazonechocontrol] - Bugs in 4.3.9 version - Setup, Configuration and Use / Scripts & Rules - openHAB Community )

  2. Dropping in 4.3.8 dated in August 2025, doesn’t work at all, can’t log

  3. Going through the OH GUI and installing 4.3.8 works ( except for [amazonechocontrol] - Bugs in 4.3.9 version - Setup, Configuration and Use / Scripts & Rules - openHAB Community )

Best, Jay

Glad to hear this. Some things are hard to understand :wink: .

I upgraded recently from OH 3.4.6 to OH 4.3.8 as a intermediate step. But now i hesitate to jump on OH 5. My current feeling after roughly a week on OH 4.3.8 is, that this release is by far not competitive to OH 3.4.6 w.r.t. stability and overall performance. But i was indirectly forced to make this step due to the bindings “Amazon Echo Control” and “iCloud” which both stopped to work. And a solution for OH 3.4.6 was not provided for “Amazon Echo Control” what is understandable on one side.

But in my view, the upgade stragtegy of the “OH makers” is a bit fast versus generating really stable versions at high performance.

BR Willi

Interesting. I am using openHAB since version 1.8, and the 3.x series was the worst.
So it definitely depends on which bindings and on which hardware you are using openHAB.

1 Like

Only what is considered “important fixes” is backported to 4.x, so you shouldn’t normally see performance degradation between versions like these. Could you share some light on exactly what got worse?

That said, I do understand the hesitancy to upgrade, I myself am still running 4.2.3, for the simple reason that it works for the things I use, and the “surprise factor” of doing an upgrade is just not something I appreciate.

1 Like

Am a Windows11 user and run OH 4.3.8 / Zulu17 on a Dell Pro Micro Desktop. Intel(R) Core™ i9-14900K (3.20 GHz), 32GB RAM.

Okay, i try to specify my findings up to now:

  1. OH startup takes up to 5 minutes. Have 300 things, 2000 items and 130 rules.
  2. Marketplace appears and disappears. A lot has been reported on that but no solution yet.
  3. In main UI something like the “thing handler” is lost after probably a day. Means that i can’t disable/enable things any longer. Up to now, i found only an OH restart as helpful.
  4. Have “MercedesMe” from marketplace and downloaded “eBUS” as .kar and “SONOFF” as well as “Neato/Vorwerk” as .jar into the addons folder. “SONOFF” is not working as it should.
  5. Integrated “Shelly” looses online states for devices while they might still work.
  6. Get error messages “ZonedDateTime” is deprecated for rules but they still work out as usual.
  7. “Modbus” binding makes trouble with transformations after 1-2 days. Use the recommended “Java-Script Scripting” binding. Have to investigate more here. “Modbus” was one of the most reliable bindings in OH 3.4.6.

Means under the line, that i had to restart OH basically every day while OH 3.4.6 ran over many weeks without any issue.

If i upgrade to OH 5, “MercedesMe”, “eBUS” and “Amazon Echo Control” are promised to be available. “SONOFF” and “Neato/Vorwerk” will probably be broken? And many other special effects are already reported about OH 5.X.

How long did it use to take in 4.3.6? How do you determine “when startup is finished”?

I’m not familiar with that, is this a 4.3.8 specific issue? Marketplace issues are often related to the forum, not the OH version.

For which binding(s)? Or are you saying that this is a generic issue that can happen to Things from any bindings?

All these worked properly in 4.3.6? I’d think that many of the bindings would be unchanged between 4.3.6 and 4.3.8.

Deprecated warnings usually work like that - they tell you of something that might disappear in the future, and that you should rewrite your rules to use whatever function that is recommended instead.

As far as I can tell, there have been no changes to the Modbus binding between 3.4.6 and 3.4.8. My guess is that you have some problem, perhaps one binding, that makes trouble for your whole installation. Have you looked in the log for clues? It could also be worth enabling DEBUG logging briefly (don’t run with that, as it generates a lot of logs) to look for clues as to what goes wrong.

If you manage to figure out which binding is causing the trouble, “everything else” might start acting normally if you disable that one. It would also potentially make it possible to fix the bug with that binding, if that’s in fact the cause. It could be something else, but it seems most likely to me that it’s a binding, otherwise “everybody” would experience the same problems.

1 Like

Your inputs have been very helpful. I have been able to achieve a stable behavior of OH 4.3.8 as far as i have tested. Thank you for your hints.

Edit:

Today i carried out the next step and upgraded to OH 5.0.3. Am happy so far.

1 Like

Upgrade from 4.3.8 (x32) on Pi5 to 5.0.3 on Pi5 with full x64 usage now

sudo systemctl stop mosquitto.service (used with Roomba/MQTT binding)
stop OH
Install Java 21 via openhab-config

sudo update-alternatives --config java (find out what Java versions are running) - need to uninstall Java 17

sudo apt remove openjdk-17-jdk
sudo apt remove openjdk-17-jre-headless

Look at /etc/openhabian.conf (change openhab4 to openHAB for the branch)

sudo apt install openhab=5.0.3-1 (I choose the stable branch)
sudo apt install openhab-addons=5.0.3-1

nano /etc/default/openhab (I have 8 GB RAM on the Pi5, hence the large RAM settings)
EXTRA_JAVA_OPTS=“-Xms2g -Xmx4g -XX:-TieredCompilation -XX:TieredStopAtLevel=1 -XX:+ExitOnOutOfMemoryError -Dxtext.qn.interning=true -Duser.timezone=America/Chicago”

Clean Cache/Tmp

Reboot Pi5

sudo apt-mark hold openhab → lock down OH so you don’t accidentally upgrade it
sudo apt-mark hold openhab-addons → lock down OH so you don’t accidentally upgrade it

I couldn’t be happier with the speed of everything. When I started with OH 2.x it took over an hour to startup, 3.x took 50 minutes and 4.x took 35 minutes. 5.x on a x64 platform completely starts up in 21 minutes!

I just can’t help but ask: What is it that your installation does that takes so much time? My OH starts in less than a minute.

  • 349 things
  • 2049 items
  • 38k lines of rules (346 rules)
  • 4 HABPanels running on 4 tablets

Everything is still text based (.rules,.items, etc)

Best, Jay

1 Like