basic.dual
A switch with to states displayed as a button
{{basic.dual(id, item, pic_on, pic_off, val_on, val_off, type, color_on, color_off) }}
id
item
pic_on
pic_off
val_on
val_off
type
color_on
color_off
{{ basic.dual('dual0', 'bath.light.switch') }}
{{ basic.dual('dual1', '...', 'control_arrow_up.svg', 'control_arrow_down.svg', '', '', 'micro') }}
{{ basic.dual('dual2', '...', 'control_arrow_up.svg', 'control_arrow_down.svg') }}
{{ basic.dual('dual3', '...', 'control_arrow_up.svg', 'control_arrow_down.svg', '', '', 'midi') }}
{{ basic.dual('dual4', '...', 'control_arrow_up.svg', 'control_arrow_down.svg', '', '', 'midi', '#25ea4e', '#4176a9') }}
<span data-role="controlgroup" data-type="horizontal">
...
</span>