Sharpy
(Aaron Sharp)
June 16, 2018, 12:55pm
1
Hi everyone
I’m starting too dip my toe into sitemaps for BasicUI & the Android app
I don’t know how I have even gotten this far i have just thrown this together guessing, using the docs and homebuilder
so I still have a very basic ui atm
My first problem is my string item does not display im sure it needs work how does it look too all of you ?
full sitemap below the string item is system status
sitemap Home label="Home" {
Frame label="Overveiw" icon="groundfloor" {
Group item=Ghouselights label="Lights" icon="light"
Group item=Gsockets label="Sockets" icon="poweroutlet"
Group item=Gmotion label="Motion" icon="motion"
Group item=Ghousetemp label="Temp" icon="temperature"
Group item=Ghouse_Light_Level label="Light Level" icon="light"
Frame
Text label="Security System" icon="alarm" {
Default item=Security_System_FULL label="Security System Full"
Default item=Security_System_PART label="Security System Part"
Default item=GAlert label="Alert"
}
Text item=System_Status label="System Status"
}
Frame label="Ground Floor" icon="firstfloor"
Frame {
Text label="Living room" icon="sofa" {
Frame
Text label="Kodi" icon="video" {
Default item=KodiHTPC2_Stop label="kodi stop amp"
Default item=KodiHTPC2_Control label="Kodi"
}
Default item=Plug5AMP_Switch label="plug5 amp"
Default item=Lamp1_Brightness label="lamp1"
Default item=FF_MasterBedroom_Power label="Master Bedroom"
Default item=FF_KidsRoom_Power label="Kids Room"
}
}
Frame label="Network" icon="firstfloor"
Group item=Gnetcritical label="critical"
Group item=Gnetservers label="servers"
Group item=Gnetsmartdev label="critical"
}
hr3
(Harry)
June 16, 2018, 1:21pm
2
Correct the frame systax.
You use
Frame
Text label="Security System" icon="alarm" {
and
Frame label="Ground Floor" icon="firstfloor"
Frame {
Sharpy
(Aaron Sharp)
June 16, 2018, 1:33pm
3
@hr3 Thanks for the reply
I will have a look at that would that be causing my main problem of text item system Status not displaying or is that just a different problem
hr3
(Harry)
June 16, 2018, 1:46pm
4
Text item=System_Status label="System Status[%s]"
Post the item definition please.
Sharpy
(Aaron Sharp)
June 16, 2018, 1:53pm
5
Thanks for that @hr3 I’m looking into the frame syntax now I have ruined it a few times now will post back soon
Sharpy
(Aaron Sharp)
June 16, 2018, 6:57pm
6
Is that looking better ?
sitemap Home label="Home" {
Frame label="Overveiw" icon="groundfloor" {
Text label="Sensors" icon="network" {
Group item=Gmotion label="Motion" icon="motion"
Group item=Ghousetemp label="Temp" icon="temperature"
Group item=Gbattery label="Battery" icon="batterylevel"
Group item=Ghouse_Light_Level label="Light Level" icon="light"
}
Group item=Ghouselights label="Lights" icon="light"
Group item=Gsockets label="Sockets" icon="poweroutlet"
Text label="Security System" icon="alarm" {
Default item=Security_System_FULL label="Security System Full"
Default item=Security_System_PART label="Security System Part"
Default item=GAlert label="Alert"
}
Text item=System_Status label="System Status [%s]"
Text item=Security_Status label="Security Status [%s]"
}
Frame label="Ground Floor" icon="firstfloor" {
Text label="Living room" icon="sofa" {
Text label="Kodi" icon="video" {
Default item=KodiHTPC2_Stop label="stop"
Default item=KodiHTPC2_Control label="Control"
Default item=KodiHTPC2_Volume label="Volume"
Default item=KodiHTPC2_Mute label="mute"
Default item=KodiHTPC2_MediaType label="Media Type [%s]"
Default item=KodiHTPC2_Album label="Album"
Default item=KodiHTPC2_Artist label="Artist"
Default item=KodiHTPC2_Title label="Title"
Default item=KodiHTPC2_ShowTitle label="Show title"
Default item=KodiHTPC2_Inputaction label="InputAction"
Default item=KodiHTPC2_Input label="Input"
Default item=KodiHTPC2_Fanart label="Fanart"
Default item=KodiHTPC2_Thumbnail label="Thumbnail"
}
Text label="Sockets" icon="poweroutlet" {
Default item=Plug5AMP_Switch label="Amplifier"
Default item=Plug7_Switch label="Media Rack"
Default item=PLUG8_Switch label="TV & SUB"
}
Text label="Google Home" icon="soundvolume" {
Default item=LivingRoomGH_Control label="Controll"
Default item=LivingRoomGH_Volume label="Volume"
Default item=LivingRoomGH_Mute label="Mute"
Default item=LivingRoomGH_PlayURI label="Play URL"
}
Default item=Lamp1_Brightness label="lamp1"
}
Text label="Kitchen" icon="kitchen" {
Default item=BULB1DSKITCHEN_Brightness label="Light"
Default item=HUE_Battery label="Battery" icon="batterylevel"
Default item=HUE_Temp label="Temp" icon="temperature"
Default item=HUE_Motion label="Motion" icon="motion"
Default item=HUE_Light label="Light Level" icon="light"
}
Text label="Back Door" icon="door" {
Default item=BULB7DSBACKDOOR_Brightness label="Light"
}
Text label="Front Door" icon="frontdoor" {
Default item=BULB4DSFDMAIN_Brightness label="Light"
Default item=HUE_Battery3 label="Battery" icon="batterylevel"
Default item=HUE_Temp3 label="Temp" icon="temperature"
Default item=HUE_Motion3 label="Motion" icon="motion"
Default item=HUE_Light3 label="Light Level" icon="light"
}
}
Frame label="First Floor" icon="firstfloor" {
Text label="Toilet" icon="toilet" {
Default item=BULB5USTOILET_Brightness label="Light"
Default item=HUE_Battery5 label="Battery" icon="batterylevel"
Default item=HUE_Temp5 label="Temp" icon="temperature"
Default item=HUE_Motion5 label="Motion" icon="motion"
Default item=HUE_Light5 label="Light Level" icon="light"
}
Text label="Bathroom" icon="bath" {
Default item=BULB8USBATHROOM_Brightness label="Light"
}
Text label="Kids Bedroom" icon="bedroom_blue" {
Default item=PLUG6TylerSTV_Switch label="Tylers TV"
}
Text label="Master Bedroom" icon="bedroom_red" {
Default item=Plug2_Switch label="Fan"
}
}
Frame label="Server Room" icon="network" {
Text label="Network Overveiw" icon="network" {
Group item=Gnetcritical label="critical" icon="network"
Group item=Gnetservers label="servers" icon="network"
Group item=Gnetsmartdev label="Smart Devices" icon="network"
}
}
Frame label="Garden" icon="grass"
}
Sharpy
(Aaron Sharp)
June 16, 2018, 9:17pm
8
it seems too be ok , before i was getting some errors but i seem too have solved them now
Sharpy
(Aaron Sharp)
June 18, 2018, 12:59pm
9
I have been working on this some more so far so good
but i have a few items that need text input boxes so i can type text and send this too an item i have been looking at the docs but cant find any suggestions on how too do this ?
See in paperUI i have typed text to send this would send to the item i have already found Selection and Mappings but this needs a text inputbox you cant predict what people will want too type
same item in BasicUI
My Sitemap Item Below
Default item=KodiHTPC2_ShowNotification label="Show Notification"
My Item Below
String KodiHTPC2_ShowNotification "Show Notification" <text> { channel="kodi:kodi:8da74635:shownotification" }
Any suggestions appreciated
Sharpy
(Aaron Sharp)
June 18, 2018, 7:58pm
11
Thanks Harry I will have a look at that