Looking for some advice in terms of the best way to migrate from OH2.5 to OH3.1
The easiest way I can see it to do a upgrade from my current system the problem I have ran into is I currently have all my devices are working off the old version of MQTT 1.6 and this clearly wonât work in OH3
So I thought start from a fresh install and after spend some time playing around with the new OH3 itâs taking a long time to set everything up. I have about 50 items from lights to temp sensors etc
My question is whatâs going to be the quickest way to update? change all my current items to work with MQTT 2.4 then upgrade my system to OH3 or start completely from scratch or is there another option/ middle ground?
There are a lot of similar posts that you should search/read for a variety of opinions. In general:
You donât have to use the UI. Your config files (items, rules, etc.) can be copied over and theyâll mostly work. Some of us have done this and then either moved into UI or just kept the text files. There are some breaking changes that can be found in the release notes (make sure to check all release notes, not just the most recent ones). This is the fastest way to update by virtue of requiring the least work.
If you only have one server available to you, then you must update from MQTT 1.x. If you plan to eventually shift to the UI, then you might as well just rebuild them in the UI. If youâre not sure, stick with config files.
If you have a second server available (e.g. a spare RPi), you can keep your old system running on OH2 and then connect to it using the Remote Binding, which is intended exactly for people who need bindings that arenât supported in OH3. But then you just have to figure out how the Remote Binding worksâŠand thatâs probably more effort than figuring out the new MQTT syntax.
Personally, I started a clean OH3 using the openHABian image, then copied over my text files from a backup. And then I used the UI import feature to move some (not all) of them into the UI. It didnât take more more than a few hours, and I have 150+ items (including MQTT). I havenât moved any rules, as Iâm content with DSL in .rules files.
I just played a bit with MQTT 2 in OH and remoteopenhab was easier.
I do not know if remoteopenhab was tested with OH 2.4. There is now no easy way to upgrade from 2.4 now bintray has been shut down. They pirobably could download 2.5.12 & install manually with the OH2 & OH1 kar files but there is much ugliness there.
I guess the first step would be to put the OH1 kar file & the incompatible OH2.5.12 kar file in the addons folder. Otherwise the new system cannot fond any addons. I do not know of the incompatible kar file would just be ignored by 2.4.
Overlooking - âI examined it, but did not see that !â
Overseeing - âHey you, get on with your work !â
Except when we use them in other ways ⊠âMy bedroom window overlooks the neighbourâs gardenâ ⊠âYouâve only given me 9.50, but weâll overlook that and let you take the 9.99 itemâ
I have an Engish degree and have two decades of experience as a writer and communications/marketing specialist. So, Iâm qualified to say that English is ridiculous and I feel bad for anyone who has to learn it as a second language.
And now, back on topic as I see @Crs typing as I post this.
Thank you all for the information something definitely to go look at
Am taking the best option would be to start over using a second PI was hoping their may have been a easier way for someone whos a little unfamiliar with the new system and the ways of working of OpenHAB
Iâd say to just play around with OH3 to get comfortable while keeping OH2 as your production system. OH2 isnât going anywhere, so thereâs no rush to make the move before youâre ready.