I just want to add things cvia code and not the gui.
As far as I understood I just need to create a .things file in OpenHAB\conf\things and
put my definitions inside…?
Do you see any errors in the log file? If you are maintaining the “…” in your network Thing, the parser likely gives an error and will simply abort and none of your file is being read. Check the docs again for syntax (see post by @sihui) and check your logs for errors. Better even, use VSCode as editor:
whoops I am sorry.
But anyhow the other things also dont work. After removing the dots the network thing also does not work…
the log just drops 2019-04-15 19:29:12.633 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'test.things'
without any further messages…
To have a “thing” visible in Paper UI, you need to create an “item” for a specific “channel” of that thing.
The simplest way to do that experimentally is switch item linking to simple mode (“Paper UI” → “Configuration” → “System” → “Item Linking”, and enable that “Simple Mode”). Afterwards, go to your thing in Paper UI (“Configuration” → “Things”, and your thing you just created) and click on one of the channels. Paper UI should automatically create an item for you, bind it to that channel, and thus the thing becomes visible in the “Control” tab.
Of course, if you want to create the items via text file, read up on “items” files.
I would state that more like:
Each created thing is visual on PaperUI under Configuration-Things. It doesn’t matter if they are created via PaperUI or via files.
Under PaperUI Controls only those things which have at least one Channel that is linked to an item are visual!