basic.dual
A switch with to states displayed as a button
{{basic.dual(id, gad, pic_on, pic_off, val_on, val_off, type) }}
id
gad
pic_on
pic_off
val_on
val_off
type
{{ basic.dual('dual0', 'bath_light_switch') }}
{{ basic.dual('dual1', '...', icon1~'control_arrow_up.png', icon0~'control_arrow_down.png', '', '', 'micro') }}
{{ basic.dual('dual2', '...', icon1~'control_arrow_up.png', icon0~'control_arrow_down.png') }}
{{ basic.dual('dual3', '...', icon1~'control_arrow_up.png', icon0~'control_arrow_down.png', '', '', 'midi') }}
<span data-role="controlgroup" data-type="horizontal">
...
</span>