-
Notifications
You must be signed in to change notification settings - Fork 0
/
schalten_basic.button.html
93 lines (88 loc) · 3.73 KB
/
schalten_basic.button.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/**
* -----------------------------------------------------------------------------
* @package smartVISU
* @author Martin Gleiß
* @copyright 2012 - 2022
* @license GPL [http://www.gnu.de]
* -----------------------------------------------------------------------------
*/
{% extends "schalten.html" %}
{% block headline %}
<img class="icon" src='{{ icon0 }}light_light.svg' />Schalten & Status - Taster
{% endblock %}
{% block docu %}
<div class="preblock">
<span data-role="controlgroup" data-type="horizontal">
Szenen<br />
{{ basic.stateswitch('', 'Wohnzimmer.Szenen', 'midi', 0, 'scene_party.svg') }}
{{ basic.stateswitch('', 'Wohnzimmer.Szenen', 'midi', 1, 'scene_dinner.svg') }}
{{ basic.stateswitch('', 'Wohnzimmer.Szenen', 'midi', 2, 'scene_livingroom.svg') }}
{{ basic.stateswitch('', 'Wohnzimmer.Szenen', 'midi', 3, 'scene_cubby.svg') }}
{{ basic.stateswitch('', 'Wohnzimmer.Szenen', 'midi', 4, 'status_away_1.svg') }}
</span>
</div>
Das Beispiel-Item sieht so aus:<br>
<textarea cols="50" rows="3" style="font-family:'Courier New'; font-size:12px">
Wohnzimmer:
Szenen:
type: num
visu_acl: rw
enforce_updates: yes
knx_dpt: 5
knx_listen: 7/2/0
knx_send: 7/2/0
</textarea>
<br><br>
Das Widget für z.B. eine hinterlegte Szene "Party" sieht wie folgt aus:<br>
<div class="linux">
<code class="prettyprint">{% filter trim|escape|nl2br %}{% verbatim %}
{{ basic.stateswitch('', 'Wohnzimmer.Szenen', 'midi', 0, 'scene_party.svg') }}
{% endverbatim %}{% endfilter %}
</code>
</div>
Das Widget für z.B. eine hinterlegte Szene "Essen" sieht wie folgt aus:<br>
<div class="linux">
<code class="prettyprint">{% filter trim|escape|nl2br %}{% verbatim %}
{{ basic.stateswitch('', 'Wohnzimmer.Szenen', 'midi', 1, 'scene_dinner.svg') }}
{% endverbatim %}{% endfilter %}
</code>
</div>
Das Widget für z.B. eine hinterlegte Szene "Wohnen" sieht wie folgt aus:<br>
<div class="linux">
<code class="prettyprint">{% filter trim|escape|nl2br %}{% verbatim %}
{{ basic.stateswitch('', 'Wohnzimmer.Szenen', 'midi', 2, 'scene_livingroom.svg') }}
{% endverbatim %}{% endfilter %}
</code>
</div>
Das Widget für z.B. eine hinterlegte Szene "Reinigen" sieht wie folgt aus:<br>
<div class="linux">
<code class="prettyprint">{% filter trim|escape|nl2br %}{% verbatim %}
{{ basic.stateswitch('', 'Wohnzimmer.Szenen', 'midi', 3, 'scene_cubby.svg') }}
{% endverbatim %}{% endfilter %}
</code>
</div>
Das Widget für z.B. eine hinterlegte Szene "außer Haus" sieht wie folgt aus:<br>
<div class="linux">
<code class="prettyprint">{% filter trim|escape|nl2br %}{% verbatim %}
{{ basic.stateswitch('', 'Wohnzimmer.Szenen', 'midi', 4, 'status_away_1.svg') }}
{% endverbatim %}{% endfilter %}
</code>
</div>
<br><br>
Der dazugehörige html-Code in Block-Typ 2 sieht so aus:<br>
<textarea cols="50" rows="3" style="font-family:'Courier New'; font-size:12px">{% raw %}
<div class="preblock">
<span data-role="controlgroup" data-type="horizontal">
Szenen<br />
{{ basic.stateswitch('szene1', 'Wohnzimmer.Szenen', 'midi', 0, 'scene_party.svg') }}
{{ basic.stateswitch('szene2', 'Wohnzimmer.Szenen', 'midi', 1, 'scene_dinner.svg') }}
{{ basic.stateswitch('szene3', 'Wohnzimmer.Szenen', 'midi', 2, 'scene_livingroom.svg') }}
{{ basic.stateswitch('szene4', 'Wohnzimmer.Szenen', 'midi', 3, 'scene_cubby.svg') }}
{{ basic.stateswitch('szene5', 'Wohnzimmer.Szenen', 'midi', 4, 'status_away_1.svg') }}
</span>
</div>
{% endraw %}
</textarea>
<br><br>
Weiterführende Infos zu dem Widget gibt es in der Inline Dokumentation.
{% endblock %}