i recently migrated my openhab 2.5.10 installation (.deb based on Ubuntu 20.x) to the current version 3.1.0. After some time i realised, that some items had broken channel links. Some had only one broken link, some had several broken links and one working link to the correct thing as well. This is an example of a IKEA Tradfri lamp:
Other examples are links to channels of enigma2 and LG things - they all looked like the things id changed by any means while upgrading…
I could recover this by removing the broken links and re-adding links to the correct thing/channel. My question is: Is there a way finding all items with broken links to channels without checking them step-by-step via the web interface? A script generating a list of item ids and names would be very helpful for finding all affected items.