Upgrade to openHAB 5 with new hardware

That worked. First, migrate openHAB4 to the new hardware. Then upgrade to openHAB5.
See details