smartVISU
02:22,14.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.shifter

A switch, build of a series of icons. The series may be a .png-iconseries (NAME_00.png, NAME_10.png, NAME_20.png...) or may be a dynamic svg-icon (icon.NAME)

Parameters
{{basic.shifter(id, gad_switch, gad_value, pic_on, pic_off, min, max) }}
id
unique id for this widget
gad_switch
a gad/item for the switch (optional)
gad_value
a gad/item for the value
pic_on
the iconseries or dynamic icon for the 'on' state
pic_off
the icon for the 'off' state (optional)
min
the minimum value if it is off (optional, for future use)
max
the maximum value if it is on (optional, default 255)
Use the slider to control the shifter
Examples .png-iconseries
1: default icons
{{ basic.shifter('shifter1', 'bath_light_switch', 'bath_light_value') }}

2: without switch-function
{{ basic.shifter('shifter2', '', 'bath_light_value', icon1~'temp_temperature_00.png' ) }}

3: with static 'off' icon
{{ basic.shifter('shifter3', 'bath_light_switch', 'bath_light_value', icon1~'fts_shutter_00.png', icon0~'fts_shutter_10.png' ) }}

1: 2: 3: ...
Examples svg-icons
{{ basic.shifter('svg1', '...', '...', 'icon.arrow') }}
{{ basic.shifter('svg2', '...', '...', 'icon.battery') }}

N N

Widgets

Design

Misc