Grouping items

  • Platform information:
    • Hardware: Raspberry 3B
    • OS: OpenHABian -2.4.0

I am unable to group my items. I hope that I have red all articles in this forum dealing with this topic …
My expectation was, that if I configure in an .items-file some groups and items (which are related to the groups) I may define in a .sitemap-file only the groups and then can see any items which are in the groups on my screen. But this is not the case: when I open my openhab (app or web) I see only the names (and icons) of the groups, but I cannot click on these to see the items inside.

If I integrate some of my items directly on the sitemap, they are “working” fine.

I am sure that I made a really silly mistake … I missed an important detail … but I do not find out what this may be…

I am using PaperUI in combination with Eclipse SmartHomeDesigner

I shortened the items and sitemap files to the following:

Datei .items

/*******************************************************************************/
/***** Gruppen *****/
Group gHaus
Group gKG “Keller” (gHaus)
Group gEG “Erdgeschoss” (gHaus)
Group gOG “Obergeschoss” (gHaus)

Group gWohnZimmerEG “Wohnzimmer” (gEG)
Group gArbeitsZimmerOG “Arbeitszimmer” (gOG)
Group gWaschkuecheKG “Waschküche” (gKG)

/***** Items *****/
Dimmer KODI_Volume “KODI Lautstärke” <audio_loudness> (gEG)
{channel=“kodi:kodi:33f1c8ab-c957-0db7-b0a7-d8681e543806:volume”}
string KODI_ShowTitle “KODI Titel” (gEG)
{channel=“kodi:kodi:33f1c8ab-c957-0db7-b0a7-d8681e543806:showtitle”}

Switch SamsungTV_Power “TV Power” (gEG)
{channel=“samsungtv:tv:448317f6:power”}
/*******************************************************************************/

Datei .sitemap
/*******************************************************************************/
sitemap default label=“Daheim” {

Frame {
Group item=gHaus label=“Haus” icon=“house”
Group item=gKG label=“Keller” icon=“cellar”
Group item=gEG label=“EG” icon=“groundfloor”
Group item=gOG label=“OG” icon=“firstfloor”

  }

}
/*******************************************************************************/

These names must match, unless that is a typo.
using the name default may have some knock-on effect here if the content is not actually in default.sitemap.

daheim.sitemap
/*******************************************************************************/
sitemap daheim label=“Daheim” {

Your filesystem may not support uppercase, I’d be inclined t use all lowercase

Please use the formatting options. So it is for us easier to read your item sitemaps etc.
Just use image and paste then your file. Than it will look really nice

/*******************************************************************************/
/***** Gruppen *****/
Group gHaus
Group gKG	“Keller”	(gHaus)
Group gEG	“Erdgeschoss”	(gHaus)
Group gOG	“Obergeschoss”	(gHaus)

Group gWohnZimmerEG	“Wohnzimmer”	(gEG)
Group gArbeitsZimmerOG	“Arbeitszimmer”	(gOG)
Group gWaschkuecheKG	“Waschküche”	(gKG)

/***** Items *****/
Dimmer	KODI_Volume	“KODI Lautstärke”	<audio_loudness>	(gEG)	
{channel=“kodi:kodi:33f1c8ab-c957-0db7-b0a7-d8681e543806:volume”}
string	KODI_ShowTitle	“KODI Titel”	(gEG)
{channel=“kodi:kodi:33f1c8ab-c957-0db7-b0a7-d8681e543806:showtitle”}

Switch	SamsungTV_Power	“TV Power” (gEG)	
{channel=“samsungtv:tv:448317f6:power”}
/*******************************************************************************/

The type String should start wirth an uppercase letter. If you use VS-Code than maybe the openHAB Formatter ist something to try. Another advice is to look at the openHAB log. many errors are shown there

1 Like

Hi Thomas,
thanks for your reply.

I corrected the error with the “String” entry and I had a look in the .log-file.

There I find multiple entries like the following:

2019-08-22 15:12:15.199 [WARN ] [.internal.protocol.xml.XMLConnection] - The charset Optional[tf-] provided in the response text/xml; charset=utf-8 is not supported

But … to be honest … I don’t know, what this mean.
This are the only [WARN] entries in my logfile.

Best Regards,

Harald

That looks a bit like a corruption of utf-8
No idea where that might come from

Do you see a Loading model 'xxxx.items' message in your openhab.log?

Make sure you´re text files are in UTF8 format. NOT! Ansi format.

Hi Kim_Andersen,

the error message means, that UTF8 is not supportet.
I made sure (via Notepad) that the files are UTF8 but in Logfile I see the following:

2019-08-22 20:29:40.570 [WARN ] [.internal.protocol.xml.XMLConnection] - The charset Optional[tf-] provided in the response text/xml; charset=utf-8 is not supported

This is probably a red herring (a distracting false clue) that comes from some binding, rather than anything to do with your xxx.items file or groups.

I removed some bindings (for example the AVM-binding and a GROHE binding).
I also changed for editin to Visual Studio Code - although I don’t understand why the connection to my server doesn’t works. In fact, I didn’t find the server settings in the Visual Studio Code.
My grouping works now as expected. Some “UTF8-Errors” are still in my log files … anyway.

that is not yet satisfactory … but it works
Thanks

Is it a Windows Computer, where your VSC is installed ? If yes try to connect your openhab-conf share as a network-drive with a letter
grafik

What Notepad++ Version ?


Mine is an older one with Version 6.53 and as in the screenshot I use the Kodierung “utf8 ohne BOM”

Your Editor should show you in bottom right corner the Type of your File, like in the next screenshot
grafik
Hope this can help you

Hi Peter,

yes it’s a windows computer and mounted the conf-directory to a drive letter.

Notepad is from windows 10, build 1903 …

Have a nice day!

So the best would be:

  1. Stop openHAB
  2. rename faulty file(s)
  3. open VSC
  4. create new empty files and save it under the old name
  5. copy and paste content from the renamed (old) to the new file(s)
  6. Restart openHAB

Maybe this helps ?!

1 Like

Hi Peter,

I did what you recommended … and it worked! Creating new files with VSC and copying the content … Thank you for that tipp

Harald

Fine.And what’s about your other problem (sitemap) ? Still there ?

Hi Peter,
this problem was solved after one of the first tipp in this forum.
The sitemap and the defined items (only a few at the moment) are working well.
Thanks again!