Just for information if not known already: There is a command in REST API to remove all orphaned links at once. It’s the last one under “links” (a POST-command, not DELETE). You can do the same with the karaf console:
openhab:links orphan purge
or to only list your orphaned links
openhab:links orphan list
Hi and thanks for this script!
I tried it out, but i get the following error:
pls wait... Traceback (most recent call last): File "export_items", line 175, in <module> f.write(line.split(" ", 1)[1].encode('utf-8').strip() + "\n") TypeError: can't concat str to bytes
The export.items was created, but is empty.
Would be great, if someone could help to handle this.
Thanks, Alex
see my post earlier