I’m just wondering, what’s the best way to get a structure within items and sitemaps and all.
Is there a definitive way or a rule of thumb on how to use both variations?
So far, from the examples, I got my home layout within the .sitemap like:
sitemap binder label="Die Binders"
{
Frame label="Haus" {
Group item=gOG label="OG" icon="firstfloor"
Group item=gEG label="EG" icon="groundfloor"
Group item=gUG label="KG" icon="cellar"
Group item=gSensoren label="Sensoren" icon="office"
Group item=gGarten label="Garten" icon="garden"
}
Frame label="Wetter" {
Text item=Weather_Temperature valuecolor=[Weather_LastUpdate=="Uninitialized"="lightgray",Weather_LastUpdate>90="lightgray",>25="orange",>15="green",>5="orange",<=5="blue"] {
Frame {
Text item=Weather_Temp_Max valuecolor=[>25="orange",>15="green",>5="orange",<=5="blue"]
Text item=Weather_Temp_Min valuecolor=[>25="orange",>15="green",>5="orange",<=5="blue"]
Text item=Weather_Humidity
Text item=Weather_Visibility
Text item=Weather_LastUpdate visibility=[Weather_LastUpdate>30] valuecolor=[Weather_LastUpdate>120="orange", Weather_LastUpdate>300="red"]
}
Frame {
Switch item=Weather_Chart_Period label="Chart Period" mappings=[0="Hour", 1="Day", 2="Week"]
Chart item=Weather_Chart period=h refresh=6000 visibility=[Weather_Chart_Period==0, Weather_Chart_Period=="Uninitialized"]
Chart item=Weather_Chart period=D refresh=30000 visibility=[Weather_Chart_Period==1]
Chart item=Weather_Chart period=W refresh=30000 visibility=[Weather_Chart_Period==2]
}
}
}
Frame label="Datum" {
Text item=CurrentDate
}
Frame label="Lüftungsanlage" {
Text item=Lueftung_Fan_Level label="Lüftung [MAP(level_de.map):%d]" icon="selfAiring" {
Frame {
Switch item=Lueftung_Auto_Mode label="Modus" mappings=[1="Auto", 0="Manuell"]
Switch item=Lueftung_Fan_Level label="Stufe" mappings=[1="A", 2="1", 3="2", 4="3"]
}
Frame {
Setpoint item=Lueftung_Komfortemperatur step=0.5 minValue=15 maxValue=25
Text item=Lueftung_Aussentemperatur_Message
Text item=Lueftung_Innentemperatur_Message
Text item=Lueftung_Ventilator_Message
Text item=Lueftung_Bypass
}
Frame {
Text item=Lueftung_Filterlaufzeit_Message
Text item=Lueftung_Status_Message
Switch item=Lueftung_Control mappings=[1="App", 0="CCEase"]
}
}
}
}
with this in mind, i then grouped the items in my .items like
/*Hauptgruppen */
Group All
Group gEG (All)
Group gOG (All)
Group gUG (All)
Group gGarten (All)
Group gJalousien (All)
Group gWetter (All)
Group gStatus (All)
Group gSensoren (All)
/* Erdgeschoss */
Group EG_WoZi "Wohnzimmer" <living> (gEG)
Group EG_Kueche "Küche" <kitchen> (gEG)
Group EG_WC "WC" <batch> (gEG)
Group EG_Flur "Flur" <corridor> (gEG)
Group EG_Windfang "Windfang" <corridor> (gEG)
/* Obergeschoss */
Group FF_Bad "Bad" <batch> (gOG)
Group FF_Schlafen "Schlafzimmer" <bedroom> (gOG)
Group FF_KiZiWest "David" <boy1> (gOG)
Group FF_KiZiOst "Sarah" <child1> (gOG)
Group FF_Flur "Flur" <corridor> (gOG)
/* Keller */
Group UG_Flur "Flur" <corridor> (gUG)
Group UG_Technik "Technikraum" <energy> (gUG)
Group UG_Heizung "Heizungsraum" <inverter> (gUG)
Group UG_Waschen "Waschraum" <softener> (gUG)
Group UG_Party "Partyraum" <video> (gUG)
/* Garten */
Group Garten_N "Garten Nord" <garden> (gGarten)
(...)
Dimmer Light_EG_WoZi_LG1 "Fernseher [%d %%]" <selfSlider> (EG_WoZi, Lights) { knx="1/1/0+<1/1/3, 1/1/1, 1/1/2+<1/1/4" }
(...)
I could, however use the sitemap for the grouping until room-level, also, couldn’t I? So what’s the “best” way to do this?
Thanks for a little help,
Thomas.