/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Wolfram v. Hülsen * @copyright 2021 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_basic.html" %} {% block example %}
Examples
{% filter trim|escape|nl2br %}{% verbatim %} {{ basic.window ('', 'shutter', 'window.left', 'window.right') }} {{ basic.window ('', 'shutter', '', 'window.right', '', '', '#f00') }} {{ basic.window ('', 'shutter', '', 'window.right', '', '', '!#f00') }} {% endverbatim %}{% endfilter %}
Use slider to control the shutter and switches to simulate window status
{{ basic.slider('','bath.light.value') }} Left window:
{{ basic.stateswitch('', 'bath.light.switch', '', 0, '', '0') }} {{ basic.stateswitch('', 'bath.light.switch', '', 1, '', '1') }} {{ basic.stateswitch('', 'bath.light.switch', '', 2, '', '2') }}
   Right window:
{{ basic.stateswitch('', 'bath.light.multistate', '', 0, '', '0') }} {{ basic.stateswitch('', 'bath.light.multistate', '', 1, '', '1') }} {{ basic.stateswitch('', 'bath.light.multistate', '', 2, '', '2') }}

Default: class icon0 / icon1 colors:  {{ basic.window ('', 'bath.light.value', 'bath.light.multistate', 'bath.light.switch') }}
Usage of custom color for 'open':     {{ basic.window ('', 'bath.light.value', '', 'bath.light.multistate', '', '', '#f00') }} (right window only)
Usage of constant custom color:     {{ basic.window ('', 'bath.light.value', '', 'bath.light.multistate', '', '', '!#f00') }} (right window only)
{% endblock %}