@@ -38,7 +38,7 @@ sitemap demo label="My home automation" {
38
38
Switch item= Lights icon= " light"
39
39
Text item= LR_Temperature label= " Livingroom [%.1f °C]"
40
40
Group item= Heating
41
- Text item= LR_Multimedia_Summary label= " Multimedia [%s]" icon = " video" {
41
+ Text item= LR_Multimedia_Summary label= " Multimedia [%s]" staticIcon = " video" {
42
42
Selection item= LR_TV_Channel mappings= [0 = " off" , 1 = " DasErste" , 2 = " BBC One" , 3 = " Cartoon Network" ]
43
43
Slider item= LR_TV_Volume
44
44
}
@@ -82,7 +82,7 @@ Frame label="Demo" {
82
82
Switch item= Lights icon= " light"
83
83
Text item= LR_Temperature label= " Livingroom [%.1f °C]"
84
84
Group item= Heating
85
- Text item= LR_Multimedia_Summary label= " Multimedia [%s]" icon = " video" {
85
+ Text item= LR_Multimedia_Summary label= " Multimedia [%s]" staticIcon = " video" {
86
86
Selection item= LR_TV_Channel mappings= [0 = " off" , 1 = " DasErste" , 2 = " BBC One" , 3 = " Cartoon Network" ]
87
87
Slider item= LR_TV_Volume
88
88
}
@@ -99,7 +99,7 @@ Different elements can be used on the previous or next hierarchy level.
99
99
When using code blocks behind other element types such as ` Text ` or ` Group ` , these UI elements will, in addition to their normal function, be links to a new view, presenting the nested elements.
100
100
101
101
``` java
102
- Text item= LR_Multimedia_Summary label= " Multimedia [%s]" icon = " video" {
102
+ Text item= LR_Multimedia_Summary label= " Multimedia [%s]" staticIcon = " video" {
103
103
Selection item= LR_TV_Channel mappings= [0 = " off" , 1 = " DasErste" , 2 = " BBC One" , 3 = " Cartoon Network" ]
104
104
Slider item= LR_TV_Volume
105
105
}
@@ -176,11 +176,13 @@ This provides the flexibility to present Items in the way desired in your home a
176
176
- Common parameters, also known from [ items definition] ( {{base}}/configuration/items.html#item-syntax ) :
177
177
- ` item ` defines the name of the Item you want to present (e.g. ` Temperature ` ), [ more details] ( {{base}}/configuration/items.html#item-name ) .
178
178
- ` label ` sets the textual description displayed next to the preprocessed Item data (e.g. "` Now [%s °C] ` "), [ more details] ( {{base}}/configuration/items.html#item-label ) .
179
- - ` icon ` chooses the name of the icon file to show next to the element, [ more details] ( {{base}}/configuration/items.html#icons ) .
179
+ - ` icon ` chooses the icon to show next to the element, [ more details] ( {{base}}/configuration/items.html#icons ) .
180
180
181
181
- When an [ Item] ( {{base}}/configuration/items.html ) is defined, you have the opportunity to assign a label and/or an icon at that point.
182
182
If no label or icon are specified in the Sitemap, then the label and/or icon you assigned to the Item will be displayed.
183
- Setting a value for ` label ` or ` icon ` of a Sitemap element will override the values defined for the linked Item.
183
+ Setting a value for ` label ` or ` icon ` or ` staticIcon ` of a Sitemap element will override the values defined for the linked Item.
184
+
185
+ - The parameters ` icon ` and ` staticIcon ` are exclusive; both allow choosing the icon to show next to the element but ` staticIcon ` also indicates not to try to create a dynamic icon (using the current state of a linked item). The value of these two parameters can optionally be enclosed in double quotes.
184
186
185
187
It has to be considered that if the label defined in a Channel or an Item contains text and state, these representations have to be overwritten separately in the Sitemap.
186
188
In the following example an Item which has a label and state defined is overwritten.
@@ -207,7 +209,7 @@ UoM = [Units of Measurement]({{base}}/concepts/units-of-measurement.html)
207
209
### Element Type 'Frame'
208
210
209
211
``` java
210
- Frame [label= " <labelname>" ] [icon= " <icon> " ] {
212
+ Frame [label= " <labelname>" ] [icon= < iconref > ] [staticIcon = < iconref > ] {
211
213
[additional sitemap elements]
212
214
}
213
215
```
@@ -228,7 +230,7 @@ Frame label="Demo" {
228
230
### Element Type 'Default'
229
231
230
232
``` java
231
- Default item= < itemname> [label= " <labelname>" ] [icon= " <iconname> " ]
233
+ Default item= < itemname> [label= " <labelname>" ] [icon= < iconref > ] [staticIcon = < iconref > ]
232
234
```
233
235
234
236
Presents an Item using the default UI representation specified by the type of the given Item.
@@ -237,7 +239,7 @@ E.g., a `Dimmer` Item will be represented as a [Slider](#element-type-slider) el
237
239
### Element Type 'Text'
238
240
239
241
``` java
240
- Text [item= < itemname> ] [label= " <labelname>" ] [icon= " <iconname> " ]
242
+ Text [item= < itemname> ] [label= " <labelname>" ] [icon= < iconref > ] [staticIcon = < iconref > ]
241
243
```
242
244
243
245
Presents data as normal text.
@@ -247,15 +249,15 @@ Please refer to the documentation on [item State Presentation]({{base}}/configur
247
249
** Example:**
248
250
249
251
``` java
250
- Text item= Temperature label= " Livingroom [%.1f °C]" icon = " temperature"
252
+ Text item= Temperature label= " Livingroom [%.1f °C]" staticIcon = temperature
251
253
```
252
254
253
255
![ Presentation of the Text element in BasicUI] ( images/sitemap_demo_text.png )
254
256
255
257
### Element Type 'Group'
256
258
257
259
``` java
258
- Group item= < itemname> [label= " <labelname>" ] [icon= " <iconname> " ]
260
+ Group item= < itemname> [label= " <labelname>" ] [icon= < iconref > ] [staticIcon = < iconref > ]
259
261
```
260
262
261
263
Clicking on a Group element will reveal a new view showing all group items using the [ Default] ( #element-type-default ) element type.
@@ -279,7 +281,7 @@ Group item=gTemperature label="Room Temperatures [%.1f °C]"
279
281
### Element Type 'Switch'
280
282
281
283
``` java
282
- Switch item= < itemname> [label= " <labelname>" ] [icon= " <iconname> " ] [mappings= " <mapping definition>" ]
284
+ Switch item= < itemname> [label= " <labelname>" ] [icon= < iconref > ] [staticIcon = < iconref > ] [mappings= " <mapping definition>" ]
283
285
```
284
286
285
287
Switches are one of the more common elements of a typical Sitemap.
@@ -292,7 +294,7 @@ Note that Switch elements can be rendered differently on the user interface, bas
292
294
** Examples:**
293
295
294
296
``` java
295
- Switch item= LR_CeilingLight label= " Ceiling Light" icon= " light"
297
+ Switch item= LR_CeilingLight label= " Ceiling Light" icon= light
296
298
Switch item= LR_TV_Channel label= " TV Channel" mappings= [0 = " DasErste" , 1 = " BBC One" , 2 = " Cartoon Network" ]
297
299
```
298
300
@@ -302,7 +304,7 @@ Switch item=LR_TV_Channel label="TV Channel" mappings=[0="DasErste", 1="BBC One"
302
304
### Element Type 'Selection'
303
305
304
306
``` java
305
- Selection item= < itemname> [label= " <labelname>" ] [icon= " <iconname> " ] [mappings= " <mapping definition>" ]
307
+ Selection item= < itemname> [label= " <labelname>" ] [icon= < iconref > ] [staticIcon = < iconref > ] [mappings= " <mapping definition>" ]
306
308
```
307
309
308
310
The Selection element type renders the options as a dropdown menu or as a modal dialog prompt, depending on the user interface.
@@ -321,7 +323,7 @@ Selection item=LR_TV_Channel label="TV Channel" mappings=[0="DasErste", 1="BBC O
321
323
### Element Type 'Setpoint'
322
324
323
325
``` java
324
- Setpoint item= < itemname> [label= " <labelname>" ] [icon= " <iconname> " ] minValue= < min value> maxValue= < max value> step= < step value>
326
+ Setpoint item= < itemname> [label= " <labelname>" ] [icon= < iconref > ] [staticIcon = < iconref > ] minValue= < min value> maxValue= < max value> step= < step value>
325
327
```
326
328
327
329
- ` minValue ` (defaults to 0) and ` maxValue ` (defaults to 100) limit the possible range of the value (both included in the range).
@@ -338,7 +340,7 @@ Setpoint item=KI_Temperature label="Kitchen [%.1f °C]" minValue=4.5 maxValue=30
338
340
### Element Type 'Slider'
339
341
340
342
``` java
341
- Slider item= < itemname> [label= " <labelname>" ] [icon= " <iconname> " ] [sendFrequency= " frequency" ] [switchSupport] [minValue= < min value> ] [maxValue= < max value> ] [step= < step value> ]
343
+ Slider item= < itemname> [label= " <labelname>" ] [icon= < iconref > ] [staticIcon = < iconref > ] [sendFrequency= " frequency" ] [switchSupport] [minValue= < min value> ] [maxValue= < max value> ] [step= < step value> ]
342
344
```
343
345
344
346
This type presents a value as a user-adjustable control which slides from left (0) to right (100).
@@ -364,7 +366,7 @@ Slider item=KI_Temperature label="Kitchen"
364
366
### Element Type 'Colorpicker'
365
367
366
368
``` java
367
- Colorpicker item= < itemname> [label= " <labelname>" ] [icon= " <iconname> " ] [sendFrequency= < sendFrequency> ]
369
+ Colorpicker item= < itemname> [label= " <labelname>" ] [icon= < iconref > ] [staticIcon = < iconref > ] [sendFrequency= < sendFrequency> ]
368
370
```
369
371
370
372
This element is a combined control for something like a rgb or rgbw light where you can adjust brightness as well es the color hue.
@@ -377,15 +379,15 @@ The middle button opens an overlay to finetune your color. A color wheel let you
377
379
** Example:**
378
380
379
381
``` java
380
- Colorpicker item= LR_LEDLight_Color label= " LED Light Color" icon = " colorwheel"
382
+ Colorpicker item= LR_LEDLight_Color label= " LED Light Color" staticIcon = colorwheel
381
383
```
382
384
383
385
![ Presentation of the Colorpicker element in BasicUI] ( images/sitemap_demo_colorpicker.png )
384
386
385
387
### Element Type 'Input'
386
388
387
389
``` java
388
- Input item= < itemname> [label= " <labelname>" ] [icon= " <iconname> " ] [inputHint= " <inputHint>" ]
390
+ Input item= < itemname> [label= " <labelname>" ] [icon= < iconref > ] [staticIcon = < iconref > ] [inputHint= " <inputHint>" ]
389
391
```
390
392
391
393
This element allows entering of text, numbers and dates/times and updating the underlying items.
@@ -401,15 +403,15 @@ Note that this element type may not be supported on all user interfaces that sup
401
403
** Example:**
402
404
403
405
``` java
404
- Input item= Meter_Reading label= " Meter [%.0f %unit%]" icon = " energy" inputHint= " number"
406
+ Input item= Meter_Reading label= " Meter [%.0f %unit%]" staticIcon = energy inputHint= " number"
405
407
```
406
408
407
409
![ Presentation of the Input element in BasicUI] ( images/sitemap_demo_input.png )
408
410
409
411
### Element Type 'Webview'
410
412
411
413
``` java
412
- Webview item= < itemname> [label= " <labelname>" ] [icon= " <iconname> " ] url= " <url>" [height= < heightvalue> ]
414
+ Webview item= < itemname> [label= " <labelname>" ] [icon= < iconref > ] [staticIcon = < iconref > ] url= " <url>" [height= < heightvalue> ]
413
415
```
414
416
415
417
The content of a webpage will be presented live on your user interface next to other Sitemap elements.
@@ -428,7 +430,7 @@ Webview url="https://www.openhab.org" height=5
428
430
### Element Type 'Mapview'
429
431
430
432
``` java
431
- Mapview [item= < itemname> ] [label= " <labelname>" ] [icon= " <iconname> " ] [height= < heightvalue> ]
433
+ Mapview [item= < itemname> ] [label= " <labelname>" ] [icon= < iconref > ] [staticIcon = < iconref > ] [height= < heightvalue> ]
432
434
```
433
435
434
436
Displays an [ OSM] ( https://www.openstreetmap.org ) map based on a given Location Item.
@@ -446,7 +448,7 @@ Mapview item=Demo_Location height=5
446
448
### Element Type 'Image'
447
449
448
450
``` java
449
- Image [item= < itemname> ] [icon= " <iconname> " ] url= " <url of image>" [label= " <labelname>" ] [refresh= xxxx]
451
+ Image [item= < itemname> ] [icon= < iconref > ] [staticIcon = < iconref > ] url= " <url of image>" [label= " <labelname>" ] [refresh= xxxx]
450
452
```
451
453
452
454
This element type is able to present an image.
@@ -471,7 +473,7 @@ Image url="https://192.168.1.203:8080/?action=snapshot" refresh=10000
471
473
### Element Type 'Video'
472
474
473
475
``` java
474
- Video [item= < itemname> ] [icon= " <iconname> " ] url= " <url of video to embed>" [encoding= " <video encoding>" ]
476
+ Video [item= < itemname> ] [icon= < iconref > ] [staticIcon = < iconref > ] url= " <url of video to embed>" [encoding= " <video encoding>" ]
475
477
```
476
478
477
479
Allows you to display a video as part of your Sitemap.
@@ -496,7 +498,7 @@ Video url="https://demo.openhab.org/Hue.m4v"
496
498
### Element Type 'Chart'
497
499
498
500
``` java
499
- Chart item= < itemname> [icon= " <iconname> " ] [label= " <labelname>" ] [refresh= xxxx]
501
+ Chart item= < itemname> [icon= < iconref > ] [staticIcon = < iconref > ] [label= " <labelname>" ] [refresh= xxxx]
500
502
period= xxxx [service= " <service>" ] [legend= true / false ] [forceasitem= true / false ] [yAxisDecimalPattern= xxxx]
501
503
```
502
504
@@ -721,7 +723,7 @@ sitemap demo label="My home automation" {
721
723
Switch item= Lights icon= " light"
722
724
Text item= LR_Temperature label= " Livingroom [%.1f °C]"
723
725
Group item= Heating
724
- Text item= LR_Multimedia_Summary label= " Multimedia [%s]" icon = " video" {
726
+ Text item= LR_Multimedia_Summary label= " Multimedia [%s]" staticIcon = " video" {
725
727
Selection item= LR_TV_Channel mappings= [0 = " off" , 1 = " DasErste" , 2 = " BBC One" , 3 = " Cartoon Network" ]
726
728
Slider item= LR_TV_Volume
727
729
}
0 commit comments