iobroker.luxtronik2-controller 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,464 @@
1
+ /**
2
+ * <luxtronik-hydraulics-flow>
3
+ * Animiertes Hydraulik- und Energiefluss-Schema für `@iobroker/web-components`.
4
+ */
5
+ import { LuxtronikBaseCard } from './luxtronik-base.js';
6
+
7
+ const MODE_META = {
8
+ 0: { text: 'Heizbetrieb', cls: 'mode-heating' },
9
+ 1: { text: 'Warmwasser', cls: 'mode-ww' },
10
+ 2: { text: 'Schwimmbad / PV', cls: 'mode-ww' },
11
+ 3: { text: 'EVU-Sperre', cls: 'mode-idle' },
12
+ 4: { text: 'Abtauen', cls: 'mode-defrost' },
13
+ 5: { text: 'Kein Bedarf', cls: 'mode-idle' },
14
+ 6: { text: '2. Erzeuger', cls: 'mode-zwe' },
15
+ 7: { text: 'Kühlbetrieb', cls: 'mode-defrost' },
16
+ };
17
+
18
+ class LuxtronikHydraulicsFlow extends LuxtronikBaseCard {
19
+ static get stateMap() {
20
+ return {
21
+ modeCode: 'Information.08_OperatingState.WP_BZ_akt',
22
+ duration: 'Information.08_OperatingState.heatpump_duration',
23
+ supplyTemp: 'Information.01_Temperatures.temperature_supply',
24
+ returnTemp: 'Information.01_Temperatures.temperature_return',
25
+ returnTarget: 'Information.01_Temperatures.temperature_target_return',
26
+ outsideTemp: 'Information.01_Temperatures.temperature_outside',
27
+ sourceIn: 'Information.01_Temperatures.temperature_heat_source_in',
28
+ sourceOut: 'Information.01_Temperatures.temperature_heat_source_out',
29
+ wwTemp: 'Information.01_Temperatures.Wamwassertemperatur_Ist',
30
+ wwTarget: 'Information.01_Temperatures.Wamwassertemperatur_Soll',
31
+ vd1: 'Information.03_Outputs.VD1out',
32
+ hup: 'Information.03_Outputs.HUPout',
33
+ bup: 'Information.03_Outputs.BUPout',
34
+ av: 'Information.03_Outputs.AVout',
35
+ zw1: 'Information.03_Outputs.ZW1out',
36
+ zipActive: 'Information.03_Outputs.Virtual_ZIP_Status',
37
+ freq: 'Information.12_SystemInfo.pump_frequency',
38
+ heatPower: 'Information.12_SystemInfo.current_heat_output',
39
+ elecPower: 'Information.12_SystemInfo.current_power_consumption',
40
+ hupVoltage: 'Settings.04_HUP.heating_system_circ_pump_voltage_nominal',
41
+ pvBoost: 'Information.17_PV_Surplus.pv_boost_active',
42
+ };
43
+ }
44
+
45
+ _renderBase() {
46
+ const tpl = document.createElement('template');
47
+ tpl.innerHTML = `
48
+ <style>
49
+ :host {
50
+ --lux-surface: rgba(127, 127, 127, 0.11);
51
+ --lux-border: rgba(127, 127, 127, 0.24);
52
+ --lux-pipe-idle: rgba(148, 163, 184, 0.28);
53
+ --lux-heating: #f97316;
54
+ --lux-ww: #3b82f6;
55
+ --lux-defrost: #06b6d4;
56
+ --lux-source: #10b981;
57
+ --lux-zwe: #ef4444;
58
+ --lux-pv: #eab308;
59
+ display: block;
60
+ width: 100%;
61
+ height: 100%;
62
+ box-sizing: border-box;
63
+ font-family: inherit;
64
+ color: inherit;
65
+ }
66
+
67
+ .card {
68
+ width: 100%;
69
+ height: 100%;
70
+ box-sizing: border-box;
71
+ display: flex;
72
+ flex-direction: column;
73
+ gap: 8px;
74
+ padding: 12px;
75
+ overflow: hidden;
76
+ }
77
+
78
+ .header {
79
+ display: flex;
80
+ justify-content: space-between;
81
+ align-items: center;
82
+ gap: 8px;
83
+ flex-wrap: wrap;
84
+ }
85
+
86
+ .title { font-size: 0.98rem; font-weight: 600; }
87
+ .subtitle { font-size: 0.75rem; opacity: 0.72; }
88
+ .badges { display: flex; gap: 6px; align-items: center; }
89
+
90
+ .pill {
91
+ display: inline-flex;
92
+ align-items: center;
93
+ gap: 5px;
94
+ padding: 3px 9px;
95
+ border-radius: 999px;
96
+ font-size: 0.74rem;
97
+ font-weight: 600;
98
+ border: 1px solid var(--lux-border);
99
+ background: var(--lux-surface);
100
+ }
101
+
102
+ .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
103
+ .pill.mode-heating { color: var(--lux-heating); border-color: rgba(249, 115, 22, 0.45); background: rgba(249, 115, 22, 0.14); }
104
+ .pill.mode-ww { color: var(--lux-ww); border-color: rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.14); }
105
+ .pill.mode-defrost { color: var(--lux-defrost); border-color: rgba(6, 182, 212, 0.45); background: rgba(6, 182, 212, 0.14); }
106
+ .pill.mode-zwe { color: var(--lux-zwe); border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.14); }
107
+ .pill.pv-active { color: var(--lux-pv); border-color: rgba(234, 179, 8, 0.45); background: rgba(234, 179, 8, 0.14); }
108
+ .hidden { display: none !important; }
109
+
110
+ .svg-wrap {
111
+ flex: 1;
112
+ min-height: 0;
113
+ display: flex;
114
+ align-items: center;
115
+ justify-content: center;
116
+ }
117
+
118
+ svg {
119
+ width: 100%;
120
+ height: 100%;
121
+ max-height: 100%;
122
+ display: block;
123
+ }
124
+
125
+ .node-box {
126
+ fill: var(--lux-surface);
127
+ stroke: var(--lux-border);
128
+ stroke-width: 1.4;
129
+ rx: 12;
130
+ transition: stroke 0.3s ease;
131
+ }
132
+
133
+ .node-box.active-heating { stroke: var(--lux-heating); }
134
+ .node-box.active-ww { stroke: var(--lux-ww); }
135
+ .node-box.active-defrost { stroke: var(--lux-defrost); }
136
+ .node-box.active-source { stroke: var(--lux-source); }
137
+ .node-box.active-zwe { stroke: var(--lux-zwe); }
138
+
139
+ .lbl { font-size: 9.5px; font-weight: 600; fill: currentColor; opacity: 0.68; text-transform: uppercase; letter-spacing: 0.04em; }
140
+ .val-lg { font-size: 15px; font-weight: 700; fill: currentColor; font-variant-numeric: tabular-nums; }
141
+ .val-sm { font-size: 10.5px; font-weight: 500; fill: currentColor; opacity: 0.85; font-variant-numeric: tabular-nums; }
142
+ .pipe-lbl { font-size: 9.5px; font-weight: 600; fill: currentColor; opacity: 0.8; }
143
+
144
+ .pipe-bg {
145
+ fill: none;
146
+ stroke: var(--lux-pipe-idle);
147
+ stroke-width: 5;
148
+ stroke-linecap: round;
149
+ stroke-linejoin: round;
150
+ }
151
+
152
+ .pipe-flow {
153
+ fill: none;
154
+ stroke: transparent;
155
+ stroke-width: 4;
156
+ stroke-linecap: round;
157
+ stroke-linejoin: round;
158
+ stroke-dasharray: 8 10;
159
+ opacity: 0;
160
+ transition: opacity 0.3s ease, stroke 0.3s ease;
161
+ }
162
+
163
+ .pipe-flow.flowing {
164
+ opacity: 1;
165
+ animation: flowForward var(--lux-flow-speed, 1.1s) linear infinite;
166
+ }
167
+
168
+ .pipe-flow.flowing-reverse {
169
+ opacity: 1;
170
+ animation: flowReverse var(--lux-flow-speed, 1.1s) linear infinite;
171
+ }
172
+
173
+ @keyframes flowForward {
174
+ from { stroke-dashoffset: 36; }
175
+ to { stroke-dashoffset: 0; }
176
+ }
177
+
178
+ @keyframes flowReverse {
179
+ from { stroke-dashoffset: 0; }
180
+ to { stroke-dashoffset: 36; }
181
+ }
182
+
183
+ .rotor {
184
+ transform-box: fill-box;
185
+ transform-origin: center;
186
+ }
187
+
188
+ .rotor.spinning {
189
+ animation: spin var(--lux-rotor-speed, 1.8s) linear infinite;
190
+ }
191
+
192
+ @keyframes spin {
193
+ from { transform: rotate(0deg); }
194
+ to { transform: rotate(360deg); }
195
+ }
196
+
197
+ .valve-circle {
198
+ fill: var(--lux-surface);
199
+ stroke: var(--lux-border);
200
+ stroke-width: 1.6;
201
+ }
202
+
203
+ .valve-arrow {
204
+ fill: currentColor;
205
+ transform-box: fill-box;
206
+ transform-origin: center;
207
+ transition: transform 0.35s ease, fill 0.3s ease;
208
+ }
209
+
210
+ .zwe-tag {
211
+ fill: var(--lux-zwe);
212
+ font-size: 9px;
213
+ font-weight: 700;
214
+ }
215
+ </style>
216
+
217
+ <div class="card">
218
+ <div class="header">
219
+ <div>
220
+ <div class="title" data-ref="title">Hydraulik & Energiefluss</div>
221
+ <div class="subtitle" data-ref="subtitle">Bitte Instanz auswählen</div>
222
+ </div>
223
+ <div class="badges">
224
+ <span class="pill pv-active hidden" data-ref="pvBadge">PV-Boost</span>
225
+ <span class="pill mode-idle" data-ref="modePill">
226
+ <span class="dot"></span>
227
+ <span data-ref="modeText">–</span>
228
+ </span>
229
+ </div>
230
+ </div>
231
+
232
+ <div class="svg-wrap">
233
+ <svg viewBox="0 0 480 210" preserveAspectRatio="xMidYMid meet">
234
+ <!-- Rohrleitungen Hintergrund -->
235
+ <!-- Quelle <-> WP -->
236
+ <path class="pipe-bg" d="M 106 88 L 154 88" />
237
+ <path class="pipe-bg" d="M 154 126 L 106 126" />
238
+ <!-- WP <-> 3-Wege-Ventil -->
239
+ <path class="pipe-bg" d="M 274 107 L 314 107" />
240
+ <!-- Ventil -> Heizkreis (oben) -->
241
+ <path class="pipe-bg" d="M 328 93 L 328 56 L 358 56" />
242
+ <!-- Ventil -> Warmwasser (unten) -->
243
+ <path class="pipe-bg" d="M 328 121 L 328 158 L 358 158" />
244
+
245
+ <!-- Animierte Flusslinien -->
246
+ <path class="pipe-flow" data-ref="pipeSourceIn" d="M 106 88 L 154 88" />
247
+ <path class="pipe-flow" data-ref="pipeSourceOut" d="M 154 126 L 106 126" />
248
+ <path class="pipe-flow" data-ref="pipeMain" d="M 274 107 L 314 107" />
249
+ <path class="pipe-flow" data-ref="pipeHeating" d="M 328 93 L 328 56 L 358 56" />
250
+ <path class="pipe-flow" data-ref="pipeWw" d="M 328 121 L 328 158 L 358 158" />
251
+
252
+ <!-- Beschriftung Vorlauf / Rücklauf -->
253
+ <text class="pipe-lbl" x="294" y="96" text-anchor="middle" data-ref="vlLabel">VL –</text>
254
+ <text class="pipe-lbl" x="294" y="124" text-anchor="middle" data-ref="rlLabel">RL –</text>
255
+
256
+ <!-- 1. Wärmequelle / Außen -->
257
+ <rect class="node-box" data-ref="boxSource" x="8" y="48" width="98" height="118" />
258
+ <text class="lbl" x="57" y="68" text-anchor="middle">Quelle / Außen</text>
259
+ <text class="val-lg" x="57" y="94" text-anchor="middle" data-ref="outsideTemp">–</text>
260
+ <text class="val-sm" x="57" y="122" text-anchor="middle" data-ref="sourceIn">TWE: –</text>
261
+ <text class="val-sm" x="57" y="140" text-anchor="middle" data-ref="sourceOut">TWA: –</text>
262
+
263
+ <!-- 2. Wärmepumpe / Verdichter -->
264
+ <rect class="node-box" data-ref="boxHp" x="154" y="34" width="120" height="146" />
265
+ <text class="lbl" x="214" y="54" text-anchor="middle">Wärmepumpe</text>
266
+
267
+ <!-- Verdichter-Rotor Icon -->
268
+ <g transform="translate(214, 92)">
269
+ <circle r="21" fill="none" stroke="currentColor" stroke-opacity="0.22" stroke-width="2" />
270
+ <g class="rotor" data-ref="rotor">
271
+ <path d="M 0 -14 C 6 -12, 8 -4, 0 0 C -6 -2, -8 -10, 0 -14 Z" fill="currentColor" opacity="0.8" />
272
+ <path d="M 12 7 C 7 11, -1 9, 0 0 C 5 -4, 13 -1, 12 7 Z" fill="currentColor" opacity="0.8" />
273
+ <path d="M -12 7 C -13 -1, -5 -4, 0 0 C 1 9, -7 11, -12 7 Z" fill="currentColor" opacity="0.8" />
274
+ </g>
275
+ <circle r="4" fill="currentColor" />
276
+ </g>
277
+
278
+ <text class="val-sm" x="214" y="132" text-anchor="middle" data-ref="vdInfo">VD1: Aus</text>
279
+ <text class="val-sm" x="214" y="149" text-anchor="middle" data-ref="hupInfo">HUP: –</text>
280
+ <text class="val-sm" x="214" y="165" text-anchor="middle" data-ref="powerInfo">–</text>
281
+ <text class="zwe-tag hidden" x="214" y="25" text-anchor="middle" data-ref="zweTag">⚡ ZWE1 AKTIV</text>
282
+
283
+ <!-- 3. 3-Wege-Umschaltventil -->
284
+ <g transform="translate(328, 107)">
285
+ <circle class="valve-circle" r="14" data-ref="valveCircle" />
286
+ <polygon class="valve-arrow" data-ref="valveArrow" points="0,-8 6,5 -6,5" />
287
+ </g>
288
+
289
+ <!-- 4. Heizkreis -->
290
+ <rect class="node-box" data-ref="boxHeating" x="358" y="14" width="114" height="84" />
291
+ <text class="lbl" x="415" y="33" text-anchor="middle">Heizkreis</text>
292
+ <text class="val-lg" x="415" y="57" text-anchor="middle" data-ref="returnTemp">–</text>
293
+ <text class="val-sm" x="415" y="75" text-anchor="middle" data-ref="returnTarget">Soll: –</text>
294
+ <text class="val-sm" x="415" y="90" text-anchor="middle" data-ref="spreadInfo">ΔT: –</text>
295
+
296
+ <!-- 5. Warmwasser -->
297
+ <rect class="node-box" data-ref="boxWw" x="358" y="114" width="114" height="84" />
298
+ <text class="lbl" x="415" y="133" text-anchor="middle">Warmwasser</text>
299
+ <text class="val-lg" x="415" y="157" text-anchor="middle" data-ref="wwTemp">–</text>
300
+ <text class="val-sm" x="415" y="175" text-anchor="middle" data-ref="wwTarget">Soll: –</text>
301
+ <text class="val-sm" x="415" y="190" text-anchor="middle" data-ref="zipInfo">ZIP: Aus</text>
302
+ </svg>
303
+ </div>
304
+ </div>
305
+ `;
306
+ this.shadowRoot.appendChild(tpl.content.cloneNode(true));
307
+ }
308
+
309
+ _setPipe(el, color, direction) {
310
+ if (!el) {
311
+ return;
312
+ }
313
+ el.classList.remove('flowing', 'flowing-reverse');
314
+ if (direction === 'forward') {
315
+ el.style.stroke = color;
316
+ el.classList.add('flowing');
317
+ } else if (direction === 'reverse') {
318
+ el.style.stroke = color;
319
+ el.classList.add('flowing-reverse');
320
+ } else {
321
+ el.style.stroke = 'transparent';
322
+ }
323
+ }
324
+
325
+ _updateView() {
326
+ const r = this._refs;
327
+ if (!r.title) {
328
+ return;
329
+ }
330
+
331
+ const prefix = this._getInstancePrefix();
332
+ const v = this._values;
333
+ const modeCode = this._toNum(v.modeCode);
334
+ const modeInfo =
335
+ modeCode !== null && MODE_META[modeCode] ? MODE_META[modeCode] : { text: '–', cls: 'mode-idle' };
336
+
337
+ r.title.textContent = this._settings?.title || 'Hydraulik & Energiefluss';
338
+ r.subtitle.textContent = !prefix
339
+ ? 'Bitte Instanz in den Einstellungen wählen'
340
+ : v.duration
341
+ ? `Seit ${v.duration}`
342
+ : prefix;
343
+ r.modeText.textContent = modeInfo.text;
344
+ r.modePill.className = `pill ${modeInfo.cls}`;
345
+ r.pvBadge.classList.toggle('hidden', !this._toBool(v.pvBoost));
346
+
347
+ const vd1 = this._toBool(v.vd1);
348
+ const hup = this._toBool(v.hup);
349
+ const bup = this._toBool(v.bup);
350
+ const av = this._toBool(v.av);
351
+ const zw1 = this._toBool(v.zw1);
352
+ const zip = this._toBool(v.zipActive);
353
+
354
+ const isDefrost = modeCode === 4 || av;
355
+ const isWw = !isDefrost && (modeCode === 1 || (bup && vd1));
356
+ const isHeating = !isDefrost && !isWw && (modeCode === 0 || (vd1 && hup));
357
+ const isZwe = zw1 || modeCode === 6;
358
+
359
+ // Animationsgeschwindigkeit dynamisch an Inverter-Frequenz anpassen
360
+ const freq = this._toNum(v.freq);
361
+ if (freq && freq > 10) {
362
+ const factor = Math.max(0.55, Math.min(1.8, 60 / freq));
363
+ this.style.setProperty('--lux-flow-speed', `${(1.1 * factor).toFixed(2)}s`);
364
+ this.style.setProperty('--lux-rotor-speed', `${(1.6 * factor).toFixed(2)}s`);
365
+ } else {
366
+ this.style.setProperty('--lux-flow-speed', '1.15s');
367
+ this.style.setProperty('--lux-rotor-speed', '1.8s');
368
+ }
369
+
370
+ // Rotor & Box-Highlights
371
+ r.rotor.classList.toggle('spinning', vd1);
372
+ r.zweTag.classList.toggle('hidden', !isZwe);
373
+
374
+ r.boxSource.setAttribute('class', `node-box ${vd1 ? (isDefrost ? 'active-defrost' : 'active-source') : ''}`);
375
+ r.boxHp.setAttribute(
376
+ 'class',
377
+ `node-box ${isZwe ? 'active-zwe' : isDefrost ? 'active-defrost' : isWw ? 'active-ww' : isHeating ? 'active-heating' : ''}`,
378
+ );
379
+ r.boxHeating.setAttribute(
380
+ 'class',
381
+ `node-box ${isHeating ? 'active-heating' : isDefrost ? 'active-defrost' : ''}`,
382
+ );
383
+ r.boxWw.setAttribute('class', `node-box ${isWw ? 'active-ww' : ''}`);
384
+
385
+ // 3-Wege-Ventil Pfeil ausrichten (oben = Heizkreis, unten = WW)
386
+ if (isWw) {
387
+ r.valveArrow.style.transform = 'rotate(180deg)';
388
+ r.valveArrow.style.fill = 'var(--lux-ww)';
389
+ } else if (isDefrost) {
390
+ r.valveArrow.style.transform = 'rotate(0deg)';
391
+ r.valveArrow.style.fill = 'var(--lux-defrost)';
392
+ } else if (isHeating || hup) {
393
+ r.valveArrow.style.transform = 'rotate(0deg)';
394
+ r.valveArrow.style.fill = 'var(--lux-heating)';
395
+ } else {
396
+ r.valveArrow.style.transform = 'rotate(90deg)';
397
+ r.valveArrow.style.fill = 'currentColor';
398
+ }
399
+
400
+ // Animierte Rohre
401
+ if (isDefrost) {
402
+ this._setPipe(r.pipeSourceIn, 'var(--lux-defrost)', 'reverse');
403
+ this._setPipe(r.pipeSourceOut, 'var(--lux-defrost)', 'reverse');
404
+ this._setPipe(r.pipeMain, 'var(--lux-defrost)', 'reverse');
405
+ this._setPipe(r.pipeHeating, 'var(--lux-defrost)', 'reverse');
406
+ this._setPipe(r.pipeWw, '', 'off');
407
+ } else if (isWw) {
408
+ this._setPipe(r.pipeSourceIn, 'var(--lux-source)', vd1 ? 'forward' : 'off');
409
+ this._setPipe(r.pipeSourceOut, 'var(--lux-source)', vd1 ? 'forward' : 'off');
410
+ this._setPipe(r.pipeMain, 'var(--lux-ww)', 'forward');
411
+ this._setPipe(r.pipeHeating, '', 'off');
412
+ this._setPipe(r.pipeWw, 'var(--lux-ww)', 'forward');
413
+ } else if (isHeating || (hup && !vd1)) {
414
+ const c = isZwe ? 'var(--lux-zwe)' : 'var(--lux-heating)';
415
+ this._setPipe(r.pipeSourceIn, 'var(--lux-source)', vd1 ? 'forward' : 'off');
416
+ this._setPipe(r.pipeSourceOut, 'var(--lux-source)', vd1 ? 'forward' : 'off');
417
+ this._setPipe(r.pipeMain, c, 'forward');
418
+ this._setPipe(r.pipeHeating, c, 'forward');
419
+ this._setPipe(r.pipeWw, '', 'off');
420
+ } else {
421
+ this._setPipe(r.pipeSourceIn, '', 'off');
422
+ this._setPipe(r.pipeSourceOut, '', 'off');
423
+ this._setPipe(r.pipeMain, '', 'off');
424
+ this._setPipe(r.pipeHeating, '', 'off');
425
+ this._setPipe(r.pipeWw, '', 'off');
426
+ }
427
+
428
+ // Messwerte
429
+ const vl = this._toNum(v.supplyTemp);
430
+ const rl = this._toNum(v.returnTemp);
431
+ const spread = vl !== null && rl !== null ? vl - rl : null;
432
+
433
+ r.vlLabel.textContent = `VL ${this._fmtTemp(vl)}`;
434
+ r.rlLabel.textContent = `RL ${this._fmtTemp(rl)}`;
435
+ r.outsideTemp.textContent = this._fmtTemp(v.outsideTemp);
436
+ r.sourceIn.textContent = `TWE: ${this._fmtTemp(v.sourceIn)}`;
437
+ r.sourceOut.textContent = `TWA: ${this._fmtTemp(v.sourceOut)}`;
438
+
439
+ r.vdInfo.textContent = vd1 ? (freq && freq > 0 ? `VD1: ${freq.toFixed(0)} Hz` : 'VD1: Ein') : 'VD1: Aus';
440
+ r.hupInfo.textContent = `HUP: ${this._fmtNum(v.hupVoltage, 'V', 1)}${hup ? ' ●' : ''}`;
441
+
442
+ const heatW = this._toNum(v.heatPower);
443
+ const elecW = this._toNum(v.elecPower);
444
+ if (heatW !== null && heatW > 0 && elecW !== null && elecW > 0) {
445
+ r.powerInfo.textContent = `${(heatW / 1000).toFixed(1)} kW / ${(elecW / 1000).toFixed(2)} kW`;
446
+ } else if (heatW !== null && heatW > 0) {
447
+ r.powerInfo.textContent = `${(heatW / 1000).toFixed(1)} kW th.`;
448
+ } else {
449
+ r.powerInfo.textContent = vd1 ? 'Aktiv' : 'Standby';
450
+ }
451
+
452
+ r.returnTemp.textContent = this._fmtTemp(rl);
453
+ r.returnTarget.textContent = `Soll: ${this._fmtTemp(v.returnTarget)}`;
454
+ r.spreadInfo.textContent = `ΔT: ${spread === null ? '–' : `${spread.toFixed(1)} K`}`;
455
+
456
+ r.wwTemp.textContent = this._fmtTemp(v.wwTemp);
457
+ r.wwTarget.textContent = `Soll: ${this._fmtTemp(v.wwTarget)}`;
458
+ r.zipInfo.textContent = `ZIP: ${zip ? 'Aktiv' : 'Aus'}`;
459
+ }
460
+ }
461
+
462
+ if (!customElements.get('luxtronik-hydraulics-flow')) {
463
+ customElements.define('luxtronik-hydraulics-flow', LuxtronikHydraulicsFlow);
464
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "manifestVersion": 1,
3
+ "tag": "luxtronik-hydraulics-flow",
4
+ "module": "./luxtronik-hydraulics-flow.js",
5
+ "name": {
6
+ "en": "Luxtronik Hydraulics & Energy Flow",
7
+ "de": "Luxtronik Hydraulik- & Energiefluss"
8
+ },
9
+ "size": {
10
+ "width": 520,
11
+ "height": 290
12
+ },
13
+ "settings": {
14
+ "type": "panel",
15
+ "items": {
16
+ "instance": {
17
+ "type": "instance",
18
+ "adapter": "luxtronik2-controller",
19
+ "label": {
20
+ "en": "Adapter instance",
21
+ "de": "Adapter-Instanz"
22
+ }
23
+ },
24
+ "title": {
25
+ "type": "text",
26
+ "default": "Hydraulik & Energiefluss",
27
+ "label": {
28
+ "en": "Title",
29
+ "de": "Titel"
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }