I am using openhab2 and want to connect two sitemaps with each other.
my first default existing sitemap looks like this:
sitemap default label="smart home control"
{
Frame label="Wetter"{
Text item=WindValue label="Wind: [%.0f km/h]" icon="wind"
Text item=MaxWindValue label="Wind max: [%.0f km/h]" icon="wind"
Text item=OutTempValue label="Aussen Temperatur: [%.1f °C]" icon="temperature"
Text item=OutNiederschlagValue label="Niederschlag heute: [%.1f mm]" icon="rain"
Text item=RainSensor_OutValue label="Aktuell: [MAP(mytransform.map):%s]" icon="rain"
}
Frame label="Alarm Einstellungen" {
Switch item=Abwesend label="Abwesend: " icon="parents_2_3"
Switch item=DoorMotion label="Tür Alarm: " icon="motion"
// Switch item=Presence_Silke_Mobile label="Silke Mobile"
//Switch item=Presence_Klaus_Mobile label="Klaus Mobile"
}
Frame label="Etagen" {
Group item=UG label="Keller" icon="cellar"
Group item=EG label="Erdgeschoß" icon="groundfloor"
Group item=OG label="Obergeschoß" icon="firstfloor"
Group item=RF label="Raffstores" icon="rollershutter"
}
Frame label="Bewegungen" {
Group item=MOTION label="Bewegungsmelder" icon="motiondetector"
}
Frame label="doors" {
Switch item=FrontDoorSafety
Switch item=FrontDoorOut label="FrontDoor: " icon="frontdoor" visibility=[FrontDoorSafety==ON]
Switch item=GarageSafety
Switch item=GarageOut label="Garage: " icon="garagedoor" visibility=[GarageSafety==ON]
}
Frame label="Photovoltaik Daten" {
Text item=PV_Current label="PV Leistung: [%.0f W]" icon="none"
Text item=PV_Prozent label="PV Auslastung (WR): [%.2f %%]" icon="none"
Text item=PV_DaySumCalculated label="PV Leistung Tag: [%.2f kWh]" icon="none"
Text item=PV_YearSumCalculated label="PV Leistung Jahr: [%.2f MWh]" icon="none"
Text item=PV_TotalCalculated label="PV Leistung Total: [%.2f MWh]" icon="none"
Text item=Verbrauch label="Aktueller Verbrauch: [%.2f W]" icon="none"
Text item=Bezug label="Netz-Bezug: [%.2f W]" icon="none"
Text item=Einspeisung label="Netz-Einspeisung: [%.2f W]" icon="none"
}
Frame label="Logfiles" {
Text item=st_copyLogs label="openhab.log [%s]" icon="settings" {
Webview url="http://192.168.1.50:8181/static/openhab.log" height=50
}
Text item=st_copyLogs label="events.log [%s]" icon="settings" {
Webview url="http://192.168.1.50:8181/static/events.log" height=50
}
}
Frame label="Samsung TV" {
Group item=TV label="TV Steuerung" {
Frame label="Samsung TV Control" {
Switch item=SamsungTV_Key_Code label="Kanal wechseln" icon="text" mappings=[KEY_CHUP="+", KEY_CHDOWN="-"]
Switch item=SamsungTV_Key_Code label="Lautstärke ändern" icon="text" mappings=[KEY_VOLUP="+", KEY_VOLDOWN="-"]
Switch item=SamsungTV_Key_Code label="Stumm" icon="text" mappings=[KEY_MUTE="ON", KEY_MUTE="OFF"]
Switch item=SamsungTV_Power label="Ausschalten"
}
}
}
I want to have integrated the second one (details of landroid mower just when i click like so called “Etagen” like "Keller to open the second one:
sitemap landroid label="Landroid"
{
Group item=Shaun icon="landroid" {
Frame item=LandroidStatusDescription {
Switch item=LandroidAction label="Action" mappings=[START="Start"] visibility=[LandroidStatusCode==0, LandroidStatusCode==1]
Switch item=LandroidAction label="Action" mappings=[START="Start",HOME="Home"] visibility=[LandroidStatusCode==34]
Switch item=LandroidAction label="Action" mappings=[STOP="Stop",HOME="Home"] visibility=[LandroidStatusCode==6, LandroidStatusCode==7, LandroidStatusCode==33, LandroidStatusCode==32]
Switch item=LandroidAction label="Action" mappings=[STOP="Stop"] visibility=[LandroidStatusCode==5,LandroidStatusCode==30]
Switch item=LandroidLastZone mappings=[0="Zone 1", 1="Zone 2", 2="Zone 3", 3="Zone 4"] visibility=[LandroidStatusCode==1]
Switch item=LandroidOneTimeScheduleEdgecut mappings=[ON="Start Edgecut"] visibility=[LandroidStatusCode==0, LandroidStatusCode==1]
Slider item=LandroidOneTimeScheduleDuration minValue=0 maxValue=300 step=30 visibility=[LandroidStatusCode==0, LandroidStatusCode==1]
Switch item=LandroidEnable
Switch item=LandroidScheduleMode mappings=[1="Normal", 2="Party"]
Text label="Orientation" icon="compass" visibility=[LandroidStatusCode!="1"] {
Text item=LandroidPitch
Text item=LandroidRoll
Text item=LandroidYaw
}
Text label="Settings" icon="settings" {
Slider item=LandroidScheduleTimeExtension minValue=-100 maxValue=100 step=10
Slider item=LandroidRainDelay minValue=0 maxValue=750 step=30
Text label="Schedule" icon="time"{
Frame label="Schedule Monday" {
Switch item=LandroidScheduleMondayEnable
Switch item=LandroidScheduleMondayEdgecut visibility=[LandroidScheduleMondayEnable==ON]
Slider item=LandroidScheduleMondayStartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleMondayEnable==ON]
Slider item=LandroidScheduleMondayStartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleMondayEnable==ON]
Slider item=LandroidScheduleMondayDuration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleMondayEnable==ON]
}
Frame label="Schedule Monday Slot 2" {
Switch item=LandroidScheduleMonday2Enable
Switch item=LandroidScheduleMonday2Edgecut visibility=[LandroidScheduleMonday2Enable==ON]
Slider item=LandroidScheduleMonday2StartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleMonday2Enable==ON]
Slider item=LandroidScheduleMonday2StartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleMonday2Enable==ON]
Slider item=LandroidScheduleMonday2Duration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleMonday2Enable==ON]
}
Frame label="Schedule Tuesday" {
Switch item=LandroidScheduleTuesdayEnable
Switch item=LandroidScheduleTuesdayEdgecut visibility=[LandroidScheduleTuesdayEnable==ON]
Slider item=LandroidScheduleTuesdayStartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleTuesdayEnable==ON]
Slider item=LandroidScheduleTuesdayStartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleTuesdayEnable==ON]
Slider item=LandroidScheduleTuesdayDuration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleTuesdayEnable==ON]
}
Frame label="Schedule Tuesday Slot 2" {
Switch item=LandroidScheduleTuesday2Enable
Switch item=LandroidScheduleTuesday2Edgecut visibility=[LandroidScheduleTuesday2Enable==ON]
Slider item=LandroidScheduleTuesday2StartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleTuesday2Enable==ON]
Slider item=LandroidScheduleTuesday2StartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleTuesday2Enable==ON]
Slider item=LandroidScheduleTuesday2Duration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleTuesday2Enable==ON]
}
Frame label="Schedule Wednesday" {
Switch item=LandroidScheduleWednesdayEnable
Switch item=LandroidScheduleWednesdayEdgecut visibility=[LandroidScheduleWednesdayEnable==ON]
Slider item=LandroidScheduleWednesdayStartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleWednesdayEnable==ON]
Slider item=LandroidScheduleWednesdayStartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleWednesdayEnable==ON]
Slider item=LandroidScheduleWednesdayDuration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleWednesdayEnable==ON]
}
Frame label="Schedule Wednesday Slot 2" {
Switch item=LandroidScheduleWednesday2Enable
Switch item=LandroidScheduleWednesday2Edgecut visibility=[LandroidScheduleWednesday2Enable==ON]
Slider item=LandroidScheduleWednesday2StartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleWednesday2Enable==ON]
Slider item=LandroidScheduleWednesday2StartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleWednesday2Enable==ON]
Slider item=LandroidScheduleWednesday2Duration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleWednesday2Enable==ON]
}
Frame label="Schedule Thursday" {
Switch item=LandroidScheduleThursdayEnable
Switch item=LandroidScheduleThursdayEdgecut visibility=[LandroidScheduleThursdayEnable==ON]
Slider item=LandroidScheduleThursdayStartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleThursdayEnable==ON]
Slider item=LandroidScheduleThursdayStartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleThursdayEnable==ON]
Slider item=LandroidScheduleThursdayDuration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleThursdayEnable==ON]
}
Frame label="Schedule Thursday Slot 2" {
Switch item=LandroidScheduleThursday2Enable
Switch item=LandroidScheduleThursday2Edgecut visibility=[LandroidScheduleThursday2Enable==ON]
Slider item=LandroidScheduleThursday2StartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleThursday2Enable==ON]
Slider item=LandroidScheduleThursday2StartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleThursday2Enable==ON]
Slider item=LandroidScheduleThursday2Duration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleThursday2Enable==ON]
}
Frame label="Schedule Friday" {
Switch item=LandroidScheduleFridayEnable
Switch item=LandroidScheduleFridayEdgecut visibility=[LandroidScheduleFridayEnable==ON]
Slider item=LandroidScheduleFridayStartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleFridayEnable==ON]
Slider item=LandroidScheduleFridayStartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleFridayEnable==ON]
Slider item=LandroidScheduleFridayDuration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleFridayEnable==ON]
}
Frame label="Schedule Friday Slot 2" {
Switch item=LandroidScheduleFriday2Enable
Switch item=LandroidScheduleFriday2Edgecut visibility=[LandroidScheduleFriday2Enable==ON]
Slider item=LandroidScheduleFriday2StartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleFriday2Enable==ON]
Slider item=LandroidScheduleFriday2StartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleFriday2Enable==ON]
Slider item=LandroidScheduleFriday2Duration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleFriday2Enable==ON]
}
Frame label="Schedule Saturday" {
Switch item=LandroidScheduleSaturdayEnable
Switch item=LandroidScheduleSaturdayEdgecut visibility=[LandroidScheduleSaturdayEnable==ON]
Slider item=LandroidScheduleSaturdayStartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleSaturdayEnable==ON]
Slider item=LandroidScheduleSaturdayStartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleSaturdayEnable==ON]
Slider item=LandroidScheduleSaturdayDuration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleSaturdayEnable==ON]
}
Frame label="Schedule Saturday Slot 2" {
Switch item=LandroidScheduleSaturday2Enable
Switch item=LandroidScheduleSaturday2Edgecut visibility=[LandroidScheduleSaturday2Enable==ON]
Slider item=LandroidScheduleSaturday2StartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleSaturday2Enable==ON]
Slider item=LandroidScheduleSaturday2StartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleSaturday2Enable==ON]
Slider item=LandroidScheduleSaturday2Duration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleSaturday2Enable==ON]
}
Frame label="Schedule Sunday" {
Switch item=LandroidScheduleSundayEnable
Switch item=LandroidScheduleSundayEdgecut visibility=[LandroidScheduleSundayEnable==ON]
Slider item=LandroidScheduleSundayStartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleSundayEnable==ON]
Slider item=LandroidScheduleSundayStartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleSundayEnable==ON]
Slider item=LandroidScheduleSundayDuration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleSundayEnable==ON]
}
Frame label="Schedule Sunday Slot 2" {
Switch item=LandroidScheduleSunday2Enable
Switch item=LandroidScheduleSunday2Edgecut visibility=[LandroidScheduleSunday2Enable==ON]
Slider item=LandroidScheduleSunday2StartHour minValue=0 maxValue=23 step=1 visibility=[LandroidScheduleSunday2Enable==ON]
Slider item=LandroidScheduleSunday2StartMinutes minValue=0 maxValue=45 step=15 visibility=[LandroidScheduleSunday2Enable==ON]
Slider item=LandroidScheduleSunday2Duration minValue=0 maxValue=1425 step=15 visibility=[LandroidScheduleSunday2Enable==ON]
}
}
Text label="MultiZone" icon="zones" {
Frame label="Zone Meters" {
Switch item=LandroidMultizoneEnable
Slider item=LandroidMeterZone1 minValue=0 maxValue=120 visibility=[LandroidMultizoneEnable==ON]
Slider item=LandroidMeterZone2 minValue=0 maxValue=120 visibility=[LandroidMultizoneEnable==ON]
Slider item=LandroidMeterZone3 minValue=0 maxValue=120 visibility=[LandroidMultizoneEnable==ON]
Slider item=LandroidMeterZone4 minValue=0 maxValue=120 visibility=[LandroidMultizoneEnable==ON]
}
Frame label="Allocation Zones" visibility=[LandroidMultizoneEnable==ON] {
Switch item=LandroidAllocation0 mappings=[0="Zone 1", 1="Zone 2", 2="Zone 3", 3="Zone 4"]
Switch item=LandroidAllocation1 mappings=[0="Zone 1", 1="Zone 2", 2="Zone 3", 3="Zone 4"]
Switch item=LandroidAllocation2 mappings=[0="Zone 1", 1="Zone 2", 2="Zone 3", 3="Zone 4"]
Switch item=LandroidAllocation3 mappings=[0="Zone 1", 1="Zone 2", 2="Zone 3", 3="Zone 4"]
Switch item=LandroidAllocation4 mappings=[0="Zone 1", 1="Zone 2", 2="Zone 3", 3="Zone 4"]
Switch item=LandroidAllocation5 mappings=[0="Zone 1", 1="Zone 2", 2="Zone 3", 3="Zone 4"]
Switch item=LandroidAllocation6 mappings=[0="Zone 1", 1="Zone 2", 2="Zone 3", 3="Zone 4"]
Switch item=LandroidAllocation7 mappings=[0="Zone 1", 1="Zone 2", 2="Zone 3", 3="Zone 4"]
Switch item=LandroidAllocation8 mappings=[0="Zone 1", 1="Zone 2", 2="Zone 3", 3="Zone 4"]
Switch item=LandroidAllocation9 mappings=[0="Zone 1", 1="Zone 2", 2="Zone 3", 3="Zone 4"]
}
}
}
}
Frame label="Status" {
Text item=LandroidLastUpdate
Switch item=LandroidPoll label="Refresh" mappings=[ON="Poll"]
Text item=LandroidOnline
Text item=LandroidWifiQuality
Text item=LandroidStatusDescription
Text item=LandroidErrorDescription visibility=[LandroidErrorCode!=0]
Switch item=LandroidRainState visibility=[LandroidRainCounter!=0]
Text item=LandroidRainCounter visibility=[LandroidRainCounter!=0]
Text label="Device Information" icon="landroid" {
Switch item=LandroidLock label="Lock" mappings=[ON="LOCK",OFF="UNLOCK"]
Text item=LandroidLastUpdateOnlineStatus
Text item=LandroidSerialNumber
Text item=LandroidMacAdress
Text item=LandroidFirmware
}
Text item=LandroidBatteryLevel {
Text item=LandroidBatteryCharging
Text item=LandroidBatteryVoltage
Text item=LandroidBatteryTemperature
}
Text label="Statistics" icon="line"{
Frame label="General" {
Text item=LandroidTotalTime
Text item=LandroidTotalDistance label="Total Distance [%.2f km]"
Text item=LandroidTotalBladeTime
Text item=LandroidCurrentBladeTime
}
Frame label="Battery" {
Text item=LandroidBatteryChargeCycle
Text item=LandroidBatteryChargeCycleCurrent
Switch item=Mower_Chart_Period label="Skalierung" mappings=[0="1H", 1="4H", 2="8H", 3="12H", 4="1D", 5="1W", 6="1M", 7="1Y"]
Chart item=MowerBatStatus_Chart period=h refresh=6000 legend=true visibility=[Mower_Chart_Period==0]
Chart item=MowerBatStatus_Chart period=4h refresh=30000 legend=true visibility=[Mower_Chart_Period==1]
Chart item=MowerBatStatus_Chart period=8h refresh=30000 legend=true visibility=[Mower_Chart_Period==2]
Chart item=MowerBatStatus_Chart period=12h refresh=30000 legend=true visibility=[Mower_Chart_Period==3, Mower_Chart_Period=="NULL", Mower_Chart_Period=="Uninitialized"]
Chart item=MowerBatStatus_Chart period=D refresh=30000 legend=true visibility=[Mower_Chart_Period==4]
Chart item=MowerBatStatus_Chart period=W refresh=30000 legend=true visibility=[Mower_Chart_Period==5]
Chart item=MowerBatStatus_Chart period=M refresh=30000 legend=true visibility=[Mower_Chart_Period==6]
Chart item=MowerBatStatus_Chart period=Y refresh=30000 legend=true visibility=[Mower_Chart_Period==7]
Chart item=MowerBat_Chart period=h refresh=6000 legend=true visibility=[Mower_Chart_Period==0]
Chart item=MowerBat_Chart period=4h refresh=30000 legend=true visibility=[Mower_Chart_Period==1]
Chart item=MowerBat_Chart period=8h refresh=30000 legend=true visibility=[Mower_Chart_Period==2]
Chart item=MowerBat_Chart period=12h refresh=30000 legend=true visibility=[Mower_Chart_Period==3, Mower_Chart_Period=="NULL", Mower_Chart_Period=="Uninitialized"]
Chart item=MowerBat_Chart period=D refresh=30000 legend=true visibility=[Mower_Chart_Period==4]
Chart item=MowerBat_Chart period=W refresh=30000 legend=true visibility=[Mower_Chart_Period==5]
Chart item=MowerBat_Chart period=M refresh=30000 legend=true visibility=[Mower_Chart_Period==6]
Chart item=MowerBat_Chart period=Y refresh=30000 legend=true visibility=[Mower_Chart_Period==7]
Chart item=MowerBatTemp_Chart period=h refresh=6000 legend=true visibility=[Mower_Chart_Period==0]
Chart item=MowerBatTemp_Chart period=4h refresh=30000 legend=true visibility=[Mower_Chart_Period==1]
Chart item=MowerBatTemp_Chart period=8h refresh=30000 legend=true visibility=[Mower_Chart_Period==2]
Chart item=MowerBatTemp_Chart period=12h refresh=30000 legend=true visibility=[Mower_Chart_Period==3, Mower_Chart_Period=="NULL", Mower_Chart_Period=="Uninitialized"]
Chart item=MowerBatTemp_Chart period=D refresh=30000 legend=true visibility=[Mower_Chart_Period==4]
Chart item=MowerBatTemp_Chart period=W refresh=30000 legend=true visibility=[Mower_Chart_Period==5]
Chart item=MowerBatTemp_Chart period=M refresh=30000 legend=true visibility=[Mower_Chart_Period==6]
Chart item=MowerBatTemp_Chart period=Y refresh=30000 legend=true visibility=[Mower_Chart_Period==7]
}
}
}
}
}
how can this be done ?
thanks
Klaus