Chart items within Group

Hi! I started using openhab2 a week ago. I’ve got a simple question:

How do I embed a chart item within a group?

At the moment I have this set up:
default.items

Group g_Weather
Number   Weather_Temperature   "Aussentemperatur [%.2f °C]" <temperature> (g_Weather)   {weather="locationId=home, type=temperature, property=current"}
Number   Weather_Humidity      "Luftfeuchte [%d %%]"  <humidity>   (g_Weather)  {weather="locationId=home, type=atmosphere, property=humidity"}
Number   Weather_Wind_Speed           "Windgeschwindigkeit [%.2f km/h]"   (g_Weather)  {weather="locationId=home, type=wind, property=speed"}
String   Weather_Wind_Direction       "Windrichtung [%s]"   (g_Weather)    {weather="locationId=home, type=wind, property=direction"}
DateTime ObservationTime  "Observation time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]" <clock> (g_Weather)  {weather="locationId=home, type=condition, property=observationTime"}

default.sitemap:

Group item=g_Weather label=Wetter icon=sun_clouds
	Text item=Weather_Temperature {
			Chart item=Weather_Temperature period=h refresh=600
			Chart item=Weather_Temperature period=d refresh=600
	}

Which looks like this:
https://i.imgur.com/aIizvyh.png

Group “Wetter”:
https://i.imgur.com/gRFs7TM.png

Chart "Aussentemperatur"
https://i.imgur.com/wGv0FDf.png

However, I would like to embed the chart item within the group so that it is linked behind the “Aussemtemperatur” item of the “Wetter” group. How do I do that?

Thanks!

You don’t.

Instead you need to use a Text element with { } to create a subpanel and then put all your Items and Charts inbetween the { }.

Text item=myGroup {
    // Group's Items
    // Charts
}
1 Like