forked from sisamiwe/shng-nspanel-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnspanel_pages_demo.yaml
283 lines (272 loc) · 9.2 KB
/
nspanel_pages_demo.yaml
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
screensaver:
timeout: 60 # 0 disable, max. 65 sec
brightness: 25 # 0-100%
timeFormat: '%H:%M'
dateFormat: '%A, %d. %B %Y'
statusIconLeft: NSPanel1.Screensaver.statusIcon.Left
statusIconRight: NSPanel1.Screensaver.statusIcon.Right
secondLine: Demo-Zeile
weather:
- day: # Jetzt/Heute
icon: NSPanel1.Screensaver.Wetter_Heute.Icon
text: NSPanel1.Screensaver.Wetter_Heute.Text
alternativeLayout: False
second_icon: NSPanel1.Screensaver.Wetter_Heute.SecondIcon # only displayed if alternativeLayout is True
second_text: NSPanel1.Screensaver.Wetter_Heute.SecondText # only displayed if alternativeLayout is True
- day: NSPanel1.Screensaver.Wetter_Tag1
icon: NSPanel1.Screensaver.Wetter_Tag1.Icon
text: NSPanel1.Screensaver.Wetter_Tag1.Text
- day: NSPanel1.Screensaver.Wetter_Tag2
icon: NSPanel1.Screensaver.Wetter_Tag2.Icon
text: NSPanel1.Screensaver.Wetter_Tag2.Text
- day: NSPanel1.Screensaver.Wetter_Tag3
icon: NSPanel1.Screensaver.Wetter_Tag3.Icon
text: NSPanel1.Screensaver.Wetter_Tag3.Text
- day: NSPanel1.Screensaver.Wetter_Tag4 # only displayed if alternativeLayout is False
icon: NSPanel1.Screensaver.Wetter_Tag4.Icon # only displayed if alternativeLayout is False
text: NSPanel1.Screensaver.Wetter_Tag4.Text # only displayed if alternativeLayout is False
cards:
- pageType: cardEntities
heading: cardEntities Demo 1
entities:
- entity: page0_id0
type: light
item: NSPanel1.Licht
iconId: lightbulb
displayNameEntity: Licht
onValue: 1
iconColor: Red
- entity: page0_id1
type: switch # like light but no popup
item: NSPanel1.Schalter
iconId: electric-switch
displayNameEntity: Schalter
- entity: page0_id2
type: shutter
item: NSPanel1.Rolladen.move
item_stop: NSPanel1.Rolladen.stop
item_pos: NSPanel1.Rolladen.pos
item_status: NSPanel1.Rolladen.move
iconId: garage
displayNameEntity: Garage
- entity: page0_id3
type: shutter
item: NSPanel1.Rolladen.move
item_stop: NSPanel1.Rolladen.stop
item_pos: NSPanel1.Rolladen.pos
item_tilt: NSPanel1.Rolladen.tilt
min_pos: 0
max_pos: 255
min_tilt: 0
max_tilt: 255
iconId: window-shutter
displayNameEntity: Jalousie
- pageType: cardEntities
heading: cardEntities Demo 2
entities:
- entity: page1_id0
type: button
item: NSPanel1.Button
iconId: gesture-tap
displayNameEntity: Button
optionalValue: Mach was
onValue: True
offValue: True
- entity: page1_id2
type: number
item: NSPanel1.Nummer
min_value: 1
max_value: 9
iconId: brightness-percent
displayNameEntity: Bereich
- entity: page1_id3
type: input_sel
item: NSPanel1.Auswahl
iconId: format-list-bulleted
displayNameEntity: Auswahl
options: Szene1?Szene2?Szene3?Szene4?Szene5
- entity: page1_id4
type: text
item: NSPanel1.Text
iconId: text
displayNameEntity: Text
- pageType: cardEntities
heading: cardEntities Demo 3
entities:
- entity: page2_id0
type: delete
- entity: page2_id2
type: fan
item: NSPanel1.Ventilator
item_speed: NSPanel1.Ventilator.Geschwindigkeit
item_preset: NSPanel1.Ventilator.Preset
iconId: fan
displayNameEntity: Ventilator
preset_modes: [Normal, Party, Abwesend]
- pageType: cardGrid
heading: cardGrid Demo 1
entities:
- entity: page3_id0
type: light # button/switch/number behave exactly same
item: NSPanel1.Licht
iconId: lightbulb
displayNameEntity: Licht
onColor: Red
offColor: Green
- entity: page3_id1
type: popupLight
iconId: brightness-5
displayNameEntity: Licht Dim
item: NSPanel1.Licht
item_brightness: NSPanel1.Licht.Helligkeit
min_brightness: 1
max_brightness: 255
- entity: page3_id2
type: popupLight
iconId: gradient-horizontal
displayNameEntity: Licht TW
item: NSPanel1.Licht
item_brightness: NSPanel1.Licht.Helligkeit
min_brightness: 1
max_brightness: 255
item_temperature: NSPanel1.Licht.Farbtemperatur
min_temperature: 0
max_temperature: 255
- entity: page3_id3
type: popupLight
iconId: palette
displayNameEntity: Licht RGB
item: NSPanel1.Licht
item_color: NSPanel1.Licht.Farbe
- entity: page3_id4
type: delete # means display no element
- entity: page3_id5
type: popupLight
iconId: lightbulb-on-50
displayNameEntity: Licht TW+RGB
item: NSPanel1.Licht
item_brightness: NSPanel1.Licht.Helligkeit
min_brightness: 1
max_brightness: 255
item_temperature: NSPanel1.Licht.Farbtemperatur
min_temperature: 0
max_temperature: 255
item_color: NSPanel1.Licht.Farbe
- pageType: cardGrid
heading: cardGrid Demo 2
entities:
- entity: page4_id0
type: shutter
item: NSPanel1.Rolladen.move
item_stop: NSPanel1.Rolladen.stop
item_pos: NSPanel1.Rolladen.pos
item_status: NSPanel1.Rolladen.move
iconId: window-shutter
displayNameEntity: Rolladen
- entity: page4_id1
type: text
item: NSPanel1.Text
iconId: text
displayNameEntity: Text
- entity: page4_id2
type: input_sel
item: NSPanel1.Auswahl
iconId: format-list-bulleted
displayNameEntity: Auswahl
options: Szene1?Szene2?Szene3?Szene4?Szene5
- entity: page4_id4
type: popupShutter
item: NSPanel1.Rolladen.move
item_stop: NSPanel1.Rolladen.stop
item_pos: NSPanel1.Rolladen.pos
item_tilt: NSPanel1.Rolladen.tilt
iconId: window-shutter-settings
displayNameEntity: Jalousie
- entity: page4_id5
type: timer
item: NSPanel1.timer
iconId: timer
displayNameEntity: Timer
- pageType: cardMedia
entity: page5
heading: cardMedia Demo
# TODO
- pageType: cardThermo
entity: page6
heading: cardThermo Demo
items:
item_temp_current: NSPanel1.Heizung.Istwert # an item for the actual temperature
item_temp_set: NSPanel1.Heizung.Sollwert # an item for the set temperature
item_mode: NSPanel1.Heizung.Betriebsart # an item for comfort / standby (3x bit or 1x byte, optional) RTR Betriebsmodus (1-4)
item_night: # an item for night (3x bit or 1x byte, optional)
item_frost: # an item for frost (3x bit or 1x byte, optional)
item_state: # an item for the current state of the actuator (optional) RTR Betriebszustand -> raumtemp.eg.wohnen.rtr.reglerstatus.allgemein
item_text: # an item for additional text, (optional)
minSetValue: 5 # min Value which can be set (decimal degrees)
maxSetValue: 30 # max Value which can be set (decimal degrees)
stepSetValue: 0.5 # step for Value which can be set (decimal degrees)
popupThermoMode1: false
- pageType: cardAlarm
entity: page7
title: cardAlarm Demo # only shown if no mode is active
# icon in bottom left corner (for all modes)
icon2: 'cube'
icon2OnColor: 'Green'
icon2OffColor: 'White'
icon2Action: NSPanel1.Alarm.Aktion
# elements on right side
items:
arm1: "Anwesend"
arm2: "Abwesend"
arm3: "Urlaub"
arm4: "Gäste"
Password: "1234" #Passwort für das Entsperren von Modus 3 (Urlaub)
arm1ActionName: NSPanel1.Alarm.Modus1
arm2ActionName: NSPanel1.Alarm.Modus2
arm3ActionName: NSPanel1.Alarm.Modus3
arm4ActionName: NSPanel1.Alarm.Modus4
- pageType: cardQR
entity: page8
heading: cardQR Demo
iconColor: White
hidePassword: false
items:
SSID: NSPanel1.wlan.SSID
Password: NSPanel1.wlan.PW
- pageType: cardPower
entity: page9
heading: cardPower Demo
itemHomeAbove: NSPanel1.Power.Home
itemHomeBelow: NSPanel1.Power.Home
iconHome: 'battery-charging-60'
colorHome: 'Green' # otherwise default is used
entities:
- entity: LeftTop # empty element are not displayed
- entity: LeftMiddle
item: NSPanel1.Power.Links # item
icon: 'solar-power-variant'
speed: 0 # TODO: use item to change speed?
- entity: LeftBottom
- entity: RightTop
- entity: RightMiddle
item: NSPanel1.Power.Rechts1
icon: 'car'
color: 'Green'
speed: 2 # use -1 for other direction
- entity: RightBottom
item: NSPanel1.Power.Rechts2
icon: 'car'
color: 'Red'
speed: -1
- pageType: cardChart
entity: page10
heading: cardChart Demo
Color: Red
item: NSPanel1.chart
yAxisLabel: scaled to maximum
- pageType: cardLChart
entity: page11
heading: cardLChart Demo
Color: Green
item: NSPanel1.chart
yAxisLabel: AxisLabel