Dear all, this is my very first post here (and may have a bunch of formatting errors)…
…but I think this will help a lot of people struggling with a mix of .items -definitions.
OS: Raspbian GNU/Linux 8.0 (Jessie)
OpenHAB2: 2.5.0~S1512-1 (snapshot)
OpenHAB REST Exporter/Importer for Items and Links
Download (Updated 2019-04-06)
These files will allow you to make all your items editable (RW) in a couple of minutes.
- It doesn’t matter if items are created in PaperUI, HabMIN, .items -files. All items can easily be inserted into the OpenHAB JSON dB and editable through PaperUI.
- This script does not change anything in OH and cannot break anything. It only extracts data in a very easy to edit format, which then (again easily) can be imported to OH using REST and SSH.
- You yourself have to add any tags (if you like) in your favorite text editor (I’ve fallen in love with Visual Studio Code which has OH support).
- Or use this tool without any edits to just make all your items editable in PaperUI.
My main purpouse is adding tags enabling Google Home (and likely Alexa?).
This is for RaspberryPi, OpenHab 2 (snapshot) & SSH. It probably works for most platforms as long as you can use SSH.
I’m using OH2 aliases mapped to /srv/ instead of hard paths, which makes it less platform dependent.
The boring stuff: “Use it at your own risk!” I have +200 items and used this method 20 times now, rebooted plenty, tested again… but it may behave differently at your system.
Installation:
Updated 2019-08
Download .7z and extract to a temp folder. Then copy files to /srv/openhab2-conf/html/
If you already have stuff in that folder, create a subfolder… for example /exporter.
Browse to: yourserver:8080/static/exporter
Feel free to ask or comment, but please have a look at all helpful links in the html/script.
Best Regards
Pete R
openHAB Google Assistant
HowTo: Listen & Talk to your Home
Moving on from simple mode
Setting Tags and Groups
Apply tags to items added/linked in Paper UI
Add/remove item to group through REST API fails
[SOLVED] Move thing configuration from UI to files
DSL serializer for items and things #4817