Convert configuration from things/item text files to JSONDB

jsondb
Tags: #<Tag:0x00007f1e5f168b70>
(Fabi) #1

Hello,
is it possible to convert all things and items from text config files to JSONDB?
I am not sure if this is possible. I am using KNX, Sonos, Tankerkoenig and Unifi Bindung.

0 Likes

(Arno) #2

I think OH2 does this by default. Look in your userdata/jasondb directory.

0 Likes

(Fabi) #3

Yes, I did… There are only two empty files. Thats why I am asking.
org.eclipse.smarthome.config.discovery.DiscoveryResult.json
thing_status_storage.json

0 Likes

(Arno) #4

You’re right. not in there with me as well. I could swear I had seen it there previously.

0 Likes

(Markus Storm) #5

OH does not convert .things/.items.
It stores PaperUI input in JSON format.
But it is not recommended to edit the jsondb so why do you want to have this converted ?

0 Likes

(Fabi) #6

I wanted to configure some things in PaperIU. There is a " Manual Editing" section in OH Docs, so I wanted to try this approach.

0 Likes

(Rich Koshak) #7

There is a script someone wrote. I just saw activity on that thread today even and I still can’t find it. With some diligent searching you should be able to find the thread. I believe the script reads in the files and posts them to OH through the REST API. But it may only handle Items. I don’t remember if it also handles Things.

0 Likes

(Karel Kuna) #8

I think it was this thread

2 Likes