openhab-distro icon indicating copy to clipboard operation
openhab-distro copied to clipboard

Remove obsolete add-ons during openHAB 3 upgrade

Open stefan-oh opened this issue 3 years ago • 2 comments

As discussed in Installing and testing OH3 some ui configurations are obsolet with OH3. At least the entry "paper" in the configuration file /var/lib/openhab/config/org/openhab/addons.config needs to be deleted from every configuration that was taken over from a previous OH2 installation. As other configuration files in the same folder are amended, my suggestion would be to delete the ui entries that are obsolete with OH3. As far as I know at least paper classic dashboard habmin

fall into that category (there might be more).

Some of these obsolete entries might be avoidable by uninstalling the respective addons BEFORE the migration, but afterwards it cannot be cleared up via GUI as only valid addons are shown in the GUI. Cleaning up by editing the file might not be something every user feels comfortable to do.

stefan-oh avatar Oct 19 '20 14:10 stefan-oh

Good point. @BClark09 Do you see any chance to do that through some sed magic within the update script?

kaikreuzer avatar Oct 21 '20 21:10 kaikreuzer

When https://github.com/openhab/openhab-distro/issues/1481 gets fixed we might be able to backport it to OH3.

wborn avatar Mar 12 '23 11:03 wborn