and want this to be “clickable” and visible in PaperUI but I do have NO CLUE how to get this done with things & channels & stuff. Would be nice if someone could help me here.
PaperUI is for configuration, you should use something like BasicUI or ClassicUI. To use this you will need a sitemap file with your items.
If using mqtt1.x binding then you only need an items file no things file or channel required. You have OpenHAB1 in your post so I assume your using 1.x mqtt binding. The latest OH version 2.4 has the 2.x mqtt binding that does use PaperUI, things, channel, etc…
I see you have an item posted but have you verified the mqtt topic is correct and working?
Note the sitemap file name needs to match the sitemap name,e.g. file name is “home” and sitemap name is “home”. You can change this to anything you like as long as those two names are the same.
Sorry, didn’t know you already had a sitemap. If that’s the case then you only need to add your item to default.sitemap and remove home.sitemap. You may need to stop OH and restart after making sitemap changes. The commands for this is:
Did you select the Demo Package when setting up OH? If so, I think that package comes with some items, things, sitemap files. Of you selected the Standard Package then all the files will need to be created from scratch.
I guess we’re talking about different things here.
I do know how to edit config files, but there is a “generated” _default sitemap (but there’s no file in config folder for it).
Go to the PaperUI > Configuration > Services > ClassicUI or BasicUI
If you enter “_default” in Default Sitemap and open the BasicUI without parameter, this sitemap displays ALL things. How to get that configuration as text (file) to edit it further?
or try http://YOUR_IP:8080/basicui/app?sitemap=_default
From the picture above your setting the name of the sitemap that you want to use as the default.
To edit the sitemap file you will need to connect via ssh and type cd /etc/openhab2/sitemaps then type ls to show the files inside this directory. To edit the file use sudo nano default.sitemap now you can edit the file. When done hit Ctrl + x then Enter to save the changes. If you want to only view whats inside a file, without opening an editor, use cat default.sitemap.
Also note that if you want to create a new file, then the same command is used just name it whatever you like. e.g. sudo nano home.sitemap will create a new (and empty) sitemap file that’s named “home”.
As a tip, you may want to look at setting up samba share and use VSCode with the openhab extension for editing and creating files. Makes life a lot easier.
It’s recommended to use a capitol letter to start the item name so I changed hof to Hof. Not sure what device this is so I have no idea about what the topic should look like but I removed an extra : that will likely cause an error.