basic.flip
Displays a flip-switch
{{ basic.flip(id, item, txt_on, txt_off, val_on, val_off, background) }}
id
item
txt_on
txt_off
val_on
val_off
background
{{ basic.flip('flip1', 'bath.light.switch') }}
{{ basic.flip('flip2', 'bath.light.switch', '1', '0','','','gold') }} side text
{{ basic.flip('flip3', 'bath.light.switch', '1', '0','','','green') }}
{{ basic.flip('flip4', 'bath.light.switch', '1', '0','','','#777') }}