Playing now with OH 2.5.5 and PaperUI for a few weeks with a couple of things successfully.
I want to convert to .things configuration files, but I can’t find authoritative documentation, nor good/simple example .things files from which I could deduce the syntax.
I’ve been relying on the openhab.log file to tell me syntax errors and I’m using the “things show” console command as a reference about my thing configuration I’ve done in PaperUI.
The best approximation of my switch thing which I was able to come up with so far is this:
But it’s not working when I attach an item to the channel.
Also, PaperUI did set the Type field to “zwave:ge_45604_00_000”, whereas now it’s “zwave:device”.
Not sure whether it matters and how I would define it in the .things file.
I’d agree that the documentation is a little sparse, but before we go there I’m wondering why you want to convert over to .things files if you’ve got ZWave working through PaperUI. There’s nothing wrong with doing so, but if you’ve only been using OH for a short period of time then that might be something to come back to later on. I personally found it a lot easier to wrap my head around things after I was much more comfortable with channels and items. Personally, I only use .things files for devices that can’t be discovered by PaperUI.
I personally really like the files as well as it allows me to automate changes across multiple systems.
Max, you need to define a bridge thing as well on which your devices will depend. The format is:
Hi Russ, I found the PaperUI OK for experimentation, but for scaling up the number of things (as a software engineer) I prefer text files Fewer clicks and I’ll version-control them with Git.
Stick around long enough and you’ll eventually witness a debate between users who think everything should be in a GUI and users who think everything should be coded by hand. I’m of the opinion that we need both so that we can serve beginners, power users, and everyone in between.
This seems of limited value in the specific zwave context, where the channels are dynamic and you are likely to end up poking around in PaperUI anyway to find them in order to link Items.