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