/**
* -----------------------------------------------------------------------------
* @package smartVISU
* @author Martin Gleiß
* @copyright 2012
* @license GPL [http://www.gnu.de]
* -----------------------------------------------------------------------------
*/
{% extends "widget_basic.html" %}
{% block example %}
Examples
Use this basic.flips (one for 'bath_light_switch' and the other for 'bath_rtr_state') to control the basic.symbol(s)
{{ basic.flip('f1', 'bath_light_switch') }}
{{ basic.flip('f2', 'bath_rtr_state') }}
Symbol is only shown when 'bath_light_switch' = 1
{{ basic.symbol('s1', 'bath_light_switch') }}
{{ basic.symbol('s1', 'bath_light_switch') }}
With other pictures (use 'icon0' and 'icon1' as path), in this example both val = 1 an val = 0 is shown.
{{ basic.symbol('s2', 'bath_light_switch', 'Light on', icon1~'light_light.png') }}
{{ basic.symbol('s3', 'bath_light_switch', 'Light off', icon1~'light_light.png', 0) }}
{{ basic.symbol('s2', 'bath_light_switch', 'Light on', icon1~'light_light.png') }}
{{ basic.symbol('s3', 'bath_light_switch', 'Light off', icon0~'light_light.png', 0) }}
With other highlight color (green, blue)
{{ basic.symbol('s4', 'bath_light_switch', '', 'icons/gn/light_light.png') }}
{{ basic.symbol('s5', 'bath_light_switch', '', 'icons/bl/light_light.png') }}
{{ basic.symbol('s4', 'bath_light_switch', '', 'icons/gn/light_light.png') }}
{{ basic.symbol('s5', 'bath_light_switch', '', 'icons/bl/light_light.png') }}
Symbol is shown when 'bath_light_switch' is on OR 'bath_rtr_state' is on.
{{ basic.symbol('s6', ['bath_light_switch', 'bath_rtr_state']) }}
{{ basic.symbol('s6', ['bath_light_switch', 'bath_rtr_state']) }}
Symbol is shown when 'bath_light_switch' is on AND 'bath_rtr_state' is on.
{{ basic.symbol('s7', ['bath_light_switch', 'bath_rtr_state'], '', '', 1, 'and') }}
{{ basic.symbol('s7', ['bath_light_switch', 'bath_rtr_state'], '', '', 1, 'and') }}
{% endblock %}