-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* ----------------------------------------------------------------------------- | ||
* @package smartVISU | ||
* @author Wolfram v. Hülsen | ||
* @copyright 2021 | ||
* @license GPL [http://www.gnu.de] | ||
* ----------------------------------------------------------------------------- | ||
*/ | ||
|
||
|
||
{% extends "widget_device.html" %} | ||
|
||
{% block example %} | ||
|
||
<h5>Examples</h5> | ||
|
||
<div class="twig"> | ||
<code class="prettyprint">{% filter trim|escape|nl2br %}{% verbatim %} | ||
{{ basic.window ('', 'shutter', 'window.right', 'window.left') }} | ||
{{ basic.window ('', 'shutter', '', 'window.left', '', '', '#f00') }} | ||
{% endverbatim %}{% endfilter %}</code> | ||
</div> | ||
|
||
Use slider to control the shutter and switches to simulate window status | ||
|
||
<div class="html"> | ||
|
||
{{ basic.slider('','bath.blind.pos') }} | ||
Left window: | ||
<div data-role="controlgroup" data-type="horizontal"> | ||
{{ basic.stateswitch('', 'bath.light.switch', '', 0, '', '0') }} | ||
{{ basic.stateswitch('', 'bath.light.switch', '', 1, '', '1') }} | ||
{{ basic.stateswitch('', 'bath.light.switch', '', 2, '', '2') }} | ||
</div> | ||
Right window: | ||
<div data-role="controlgroup" data-type="horizontal"> | ||
{{ basic.stateswitch('', 'bath.light.multistate', '', 0, '', '0') }} | ||
{{ basic.stateswitch('', 'bath.light.multistate', '', 1, '', '1') }} | ||
{{ basic.stateswitch('', 'bath.light.multistate', '', 2, '', '2') }} | ||
</div> | ||
<br> | ||
{{ device.window ('', 'Window Kitchen North', 'bath.blind.move', 'bath.blind.stop', 'bath.blind.pos', '', 'bath.light.multistate', 'bath.light.switch', 'icon') }} <br> | ||
|
||
</div> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters