Hi, I am trying to migrate OH 1.9 to OH 2.0 with little success.
I have to say I am a little bit disappointed. I expected OH 2.0 to be much easier than the previous versions but I found it confusing and inconsistent. I have been using OH for quite a long time and I was happy. I had no problems setting up OH 1.x four years ago but I am having many problems with this new version that it was supposed to ease things.
I have migrated my KNX binding with success (it is not an OH 2 native binding so it does not feature “things”).
I am using the KNX items I was using for OH 1.x and they work. I use an .items file and these items are shown in PaperUI. This is the expected behavior…
However, I am trying to use OH 2.x native bindings and use the new “thing” concept with no success at all.
I tried to setup a .things file (in \conf\things folder, I use Windows 7), but there is no way I can see the things I define there in PaperUI, nor do they show in the Karaf console (I type “things” and “no things found” is displayed) nor in the Rest service. Of course I cannot link my items with these things since they simple don’t exist, do they??
I have tried the Samsung TV binding, the Ntp binding and the Yahooweather.binding, with no success at all. I think it is clear that the bindings are not the problem…
For instance, for the Samsung TV I include this in the .things file:
Thing samsungtv:tv:myTV [ hostName=“192.168.1.10”, port=55000, refreshInterval=1000 ]
None of the binding seem to load anything using a .things file. Nothing is shown in PaperUI / Karaf console / Rest service.
The NTP does seem to work when using things discovery in PaperUI (and they appear later in the json file). The other two bindings do not seem to be ready for this. In any case, I would like to use the .things file.
My questions are:
- Are things added by means of a .things file supposed to be shown in PaperUI?
- Are things added by means of a .things file supposed to be shown in Karaf console and Rest service?
- Does the things file need to be created with a special editor? I use Notepad++
- Does the things file need to have a special name?
- Can there be several .things file (one per binding, for instance)? Or only one file is allowed?
- Is there anything I should consider/do before that I am missing. I am sure there must be something since this behavior does not make sense at all…
Please help. I ran out ideas.