smartVISU
06:00, 28.05, v2.7

Basic-Widgets

basic.button basic.checkbox basic.colordisc basic.dual basic.flip basic.float basic.formula basic.glue basic.rgb basic.shifter basic.shutter basic.slider basic.switch basic.symbol basic.tank basic.text basic.trigger basic.value


basic.symbol

A symbol, with no writing to knx, only displayed when the value of gad is equal to val. Symbols may be used in menus. If more than one gad is given, they will be combined with mode ('or' / 'and).

Parameters
{{ basic.symbol(id, items, txt, pic, val, mode) }}
id
unique id for this widget
items
one or more gad(s)/item(s). More gads/items in array form: [ item1 , item2 ]
txt
the text, printed when gad has value val (optional)
pic
the pic, shown when gad has value val
val
value (default 1)
mode
the mode, 'or', 'and' (default 'or')
Examples
Use this basic.flips (one for 'bath_light_switch' and the other for 'bath_rtr_state') to control the basic.symbol(s)
Symbol is only shown when 'bath_light_switch' = 1
{{ basic.symbol('s1', 'bath_light_switch') }}
With other pictures (use 'icon0' and 'icon1' as path), in this example both val = 1 an val = 0 is shown.
{{ basic.symbol('s2', 'bath_light_switch', 'Light on', icon1~'light_light.png') }}
{{ basic.symbol('s3', 'bath_light_switch', 'Light off', icon1~'light_light.png', 0) }}
Light on Light off
With other highlight color (green, blue)
{{ basic.symbol('s4', 'bath_light_switch', '', 'icons/gn/light_light.png') }}
{{ basic.symbol('s5', 'bath_light_switch', '', 'icons/bl/light_light.png') }}
Symbol is shown when 'bath_light_switch' is on OR 'bath_rtr_state' is on.
{{ basic.symbol('s6', ['bath_light_switch', 'bath_rtr_state']) }}
Symbol is shown when 'bath_light_switch' is on AND 'bath_rtr_state' is on.
{{ basic.symbol('s7', ['bath_light_switch', 'bath_rtr_state'], '', '', 1, 'and') }}

Widgets

Design

Misc