Additional grouping in level "room" - Basic UI

  • Platform information:

    • Hardware: Raspberry Pi 4 Model B Rev 1.2
    • OS: Raspbian GNU/Linux 10 (buster)
    • Java Runtime Environment:
    • openHAB version: 2.5.10-1
  • Issue of the topic:
    I would like to realise different sub-groupings in the individual rooms as with the command “frame”. In my example, one group in the children’s room should be “light” and the other group “thermometer”. Both groups should also be graphically displayed separately as with “frame”. Which commands do I have to insert at which point in my items or sitemap configuration?

  • Items Configuration:

    Group    Home                   "Weinbergstraße"     <house>                                    ["Building"]
    
    Group    GF                     "Erdgeschoss"        <groundfloor>   (Home)                     ["GroundFloor"]
    
    Group    Bathroom               "Badezimmer"         <bath>          (GF)                     ["Bathroom"]
    Group    Bedroom                "Schlafzimmer"       <bedroom>       (GF)                     ["Bedroom"]
    Group    KidsRoom               "Kinderzimmer"       <girl_2>        (GF)                     ["Room"]
    Group    LivingRoom             "Wohnzimmer"         <sofa>          (GF)                     ["LivingRoom"]
    Group    Kitchen                "Küche"              <kitchen>       (GF)                     ["Kitchen"]
    
    Switch   Bathroom_Light         "Licht"              <light>         (Bathroom, gLight)         ["Lighting", "Switchable"]   {channel="hue:group:ecb5fa22ca72:1:switch"}
    Dimmer   Bathroom_Brightness    "Helligkeit"         <slider>        (Bathroom, gLight)         ["Lighting", "Switchable"]   {channel="hue:group:ecb5fa22ca72:1:brightness"}
    Dimmer   Bathroom_Color         "Lichtfarbe"         <colorlight>    (Bathroom, gLight)         ["Lighting", "Switchable"]   {channel="hue:group:ecb5fa22ca72:1:color_temperature"}
    Switch   Bedroom_Light          "Licht"              <light>         (Bedroom, gLight)          ["Lighting", "Switchable"]   {channel="hue:0200:ecb5fa22ca72:3:color"}
    Switch   KidsRoom_Light         "Licht"              <light>         (KidsRoom, gLight)         ["Lighting", "Switchable"]   {channel="hue:group:ecb5fa22ca72:3:switch"}
    Dimmer   KidsRoom_Brightness    "Helligkeit"         <slider>         (KidsRoom, gLight)        ["Lighting", "Switchable"]   {channel="hue:group:ecb5fa22ca72:3:brightness"}
    Number   Sensors_Temperature   "Temperatur [%.1f °C]"         <temperature>   (KidsRoom, gTemperature)   ["Temperature"]              {channel="mqtt:topic:openHAB:thermometer:Temperature"}
    Number   Sensors_Humidity      "Luftfeuchtigkeit [%.0f %%]"   <humidity>      (KidsRoom, gHumidity)      ["Humidity"]                 {channel="mqtt:topic:openHAB:thermometer:Humidity"}
    Switch   LivingRoom_Power       "Steckdose"          <switch>        (LivingRoom, gPower)       ["Switch", "Switchable"]     {channel="avmfritz:FRITZ_Powerline_546E:192_168_178_1:24_65_11_C6_B4_F5:outlet"}
    Number   LivingRoom_Voltage     "Spannung [%.1f V]"           <energy>        (LivingRoom, gPower)       ["Voltage"]                  {channel="avmfritz:FRITZ_Powerline_546E:192_168_178_1:24_65_11_C6_B4_F5:voltage"}
    Number   LivingRoom_Consumption "Verbrauch [%.2f W]"          <energy>        (LivingRoom, gPower)       ["Consumption"]              {channel="avmfritz:FRITZ_Powerline_546E:192_168_178_1:24_65_11_C6_B4_F5:power"}
    Switch   Kitchen_Light          "Licht"              <light>         (Kitchen, gLight)          ["Lighting", "Switchable"]   {channel=""}
    
    Group:Switch:OR(ON, OFF)   gLight         "Licht"              <light>         (Home)   ["Lighting", "Switchable"]
    Group:Number:AVG           gTemperature   "Temperatur"         <temperature>   (Home)   ["Temperature"]
    Group:Number:AVG           gHumidity      "Luftfeuchtigkeit"   <humidity>      (Home)   ["Humidity"]
    Group:Switch:OR(ON, OFF)   gPower         "Steckdose"          <poweroutlet>   (Home)   ["Switch", "Switchable"]`
    
  • Sitemap configuration:

    sitemap weinbergstrasse label="Weinbergstraße" {
      Frame {
          Group item=Bathroom
          Group item=Bedroom
          Group item=KidsRoom
          Group item=LivingRoom
          Group item=Kitchen
            }
    }
    

    Screenshot 2020-12-17 100508

Using the Group element in a sitemap is very limited. If you want any customization, you can’t use them. You will have to put each Item on the sitemap individually. You can make a subframe with

Text item=Bathroom {
  Frame label=Lights{
    Switch item=LightSwitch
  }
}