basic.flip
Displays a flip-switch
{{basic.flip(id, item, txt_on, txt_off) }}
id
item
txt_on
txt_off
{{ basic.flip('flip1', 'bath.light.switch') }}
{{ basic.flip('flip2', 'bath.light.switch', '1', '0') }}