Migrate from RPi 4 OH 2.5 machine to new RPi 5 OH 4.2

I have installed new 4.2 on RPI 5 and added Remote openHAB Binding, question is how to repoint all items to OH 4.2 MQTT when OH 2.5 will be removed ? As example 1 item which I get values from MQTT running on OH 2.5:

It largely depends on what you want out of this upgrade. OH 4 provide a whole lot more than OH 2.5 and if you want to take advantage of the new stuff you might go down one path but if you just want what you have working now working in OH 4 you might go down a different path.

If you want to try what’s new I would follow this overall approach:

  1. From Settings → Model, create some Locations to represent your house.
  2. Pick a binding to migrate.
  3. Install that binding on OH 4
  4. Start to discover or creating the Things for that binding
  5. Once the Thing(s) are create, at the bottom of the Channels there’s an option to “Add Equipment to Model”. This will let you create the all the Items assocaited with that device all in one go. All the important stuff will get set including the unit.
  6. Migrate over the relevant rules that operate on those Items. If you have rules that need Items you don’t have yet, make sure you mirror those using the remote openHAB Thing. Consider if you want to move to one of the new languages for rules. Blockly is an excellent choice if you are not great at programming. You don’t have to migrate the rules now but it’s a good opportunity to experiment and see what works best for you.

This approach is going to be the least amount of work overall and it gets you into some of the new stuff in OH 4 like the semantic model and such.

If you just want to duplicate exactly what you have on 2.5 I’d use this overall approach:

  1. Create all the Items from the Remote openHAB Thing.
  2. Move over the rules, adjusting for the many many breaking changes.
  3. Pick a binding and install it.
  4. Discover and create the Things for that binding.
  5. Assuming it’s a .items file based Items which was pretty standard for OH 2.5, edit the file and replace the channelid with the ID of the newly created/discovered Channels. If these are managed Items, you can click on the Channel → Add Link → Select the Item and save. Then navigate to Settings → Items → The Item → and remove the link to the Remote openHAB Channel.
  6. Your sitemap should mostly just work as is, though there are a whole lot of new features available to you now.

Thanks for suggested options !