smartVISU
17:56,21.12, 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.switch

A switch, build of two pics

Parameters
{{basic.switch(id, gad, pic_on, pic_off, val_on, val_off) }}
id
unique id for this widget
gad
a gad/item
pic_on
the pic for the 'on' state (optional)
pic_off
the pic for the 'off' state (optional)
val_on
value send for the 'on' state (optional, default 1)
val_off
value send for the 'off' state (optional, default 0)
Examples
{{ basic.switch('switch1', 'bath_light_switch') }}
With other pictures (use 'icon0' and 'icon1' as path)
{{ basic.switch('switch2', 'bath_blind_move_up', icon1~'control_arrow_up.png', icon0~'control_arrow_down.png') }}

Widgets

Design

Misc