iobroker.faikout 0.0.17 → 0.0.18
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.
- package/README.md +16 -45
- package/io-package.json +14 -14
- package/package.json +1 -1
- package/widgets/faikout/js/faikout.js +56 -15
- package/widgets/faikout.html +12 -36
package/README.md
CHANGED
|
@@ -89,12 +89,28 @@ Out of the box a module reports its state every 60 seconds (`reporting` setting)
|
|
|
89
89
|
is only confirmed with the next report — expect up to a minute. Enabling `livestatus` in the
|
|
90
90
|
module's **Extra** settings makes it report immediately.
|
|
91
91
|
|
|
92
|
+
## Visualisation (vis templates)
|
|
93
|
+
|
|
94
|
+
The folder [`vis-templates/`](vis-templates/) contains ready-made **vis 1** views for two units: overview,
|
|
95
|
+
one detail page per unit with controls, energy history and a phone view. They use only data points of
|
|
96
|
+
`faikout.0` and the widgets of this adapter – no scripts, no other adapters. Import instructions:
|
|
97
|
+
[vis-templates/README.md](vis-templates/README.md).
|
|
98
|
+
|
|
92
99
|
## Changelog
|
|
93
100
|
|
|
94
101
|
<!--
|
|
95
102
|
Placeholder for the next version (at the beginning of the line):
|
|
96
103
|
### **WORK IN PROGRESS**
|
|
97
104
|
-->
|
|
105
|
+
### 0.0.18 (2026-10-25)
|
|
106
|
+
- VIS widgets: fixed rendering in the vis runtime – the widgets showed nothing and logged `missing ) after argument list`.
|
|
107
|
+
They now subscribe the data points of their device themselves (vis only subscribed the device object), so values
|
|
108
|
+
and states are shown and kept up to date. Energy history: works with vis 1 (`getStates`), shows a fixed range
|
|
109
|
+
(last 24 hours / 31 days / 12 months) and formats numbers in the VIS language.
|
|
110
|
+
- VIS widgets: the accent colour follows the mode again (heating orange, cooling blue, off grey) – jQuery 1.11 in vis 1
|
|
111
|
+
cannot set CSS custom properties with `.css()`, so it always stayed blue.
|
|
112
|
+
- New: vis templates (`vis-templates/`) – overview, detail page per unit, energy and phone view.
|
|
113
|
+
|
|
98
114
|
### 0.0.17
|
|
99
115
|
- Fixed units of `status.comp` and `status.fanfreq`: the module sends Hz by default and rpm only with `ha.comprpm`/`ha.fanrpm`.
|
|
100
116
|
The adapter now takes the unit from the module's Home Assistant discovery (a fractional fan value is always Hz),
|
|
@@ -122,51 +138,6 @@ module's **Extra** settings makes it report immediately.
|
|
|
122
138
|
`day`/`month`/`year`, reading keys) and a dictionary for all eleven languages. Values saved by older views are still understood.
|
|
123
139
|
- Names of states for unknown fields carry all eleven languages.
|
|
124
140
|
|
|
125
|
-
### 0.0.13
|
|
126
|
-
- On start, names and roles of existing states are updated to the current field description. Objects are only created
|
|
127
|
-
when a value arrives, so rarely reported fields (like `status.reason`) kept their old description after an update.
|
|
128
|
-
|
|
129
|
-
### 0.0.12
|
|
130
|
-
- New state `status.reason`: the disconnect reason the broker publishes from the module's MQTT last will (value `LWT`),
|
|
131
|
-
now described with role and names in all eleven languages (it was created as an unknown field before).
|
|
132
|
-
|
|
133
|
-
### 0.0.11
|
|
134
|
-
- Remaining log messages in English (hour change, client disconnect/error, failed command).
|
|
135
|
-
- Stopping the adapter no longer hangs while faikout modules stay connected: open MQTT connections are closed actively,
|
|
136
|
-
with a 2 s upper limit (previously the js-controller killed the process after its stop timeout). New test.
|
|
137
|
-
|
|
138
|
-
### 0.0.10
|
|
139
|
-
- Review findings (PR #6700): all log messages and error texts in English (`main.js`, `lib/broker.js`, `lib/verbrauch.js`).
|
|
140
|
-
- `control.swing`: state labels in English (`off`, `on`, `vertical`, `horizontal`, `both`, `comfort`).
|
|
141
|
-
- VIS widgets: every visible text goes through a small translation helper – German for a German VIS, English for all other languages; decimal separator and month names follow the VIS language.
|
|
142
|
-
|
|
143
|
-
### 0.0.9
|
|
144
|
-
- Maintenance: `@iobroker/testing` updated to 6.3 (W0037).
|
|
145
|
-
- `.gitignore` uses `.vscode/*` so the tracked `.vscode/settings.json` is no longer covered by an ignore rule (W9008).
|
|
146
|
-
|
|
147
|
-
### 0.0.8
|
|
148
|
-
- Object structure fixed for the repository check: all datapoint names now in eleven languages
|
|
149
|
-
(`lib/namen.js`), invalid roles corrected (`info` → `info.name`/`info.address`/`text`,
|
|
150
|
-
`level.mode.*` → `state`), instance objects translated as well. New test `test/namen.js`.
|
|
151
|
-
- Shared `@iobroker/eslint-config` and `@alcalzone/release-script` adopted, older changelog
|
|
152
|
-
entries moved to `CHANGELOG_OLD.md`, `.vscode/settings.json` added, contact address in the
|
|
153
|
-
copyright line.
|
|
154
|
-
|
|
155
|
-
### 0.0.7
|
|
156
|
-
- Maintenance release: `@iobroker/adapter-core` 3.4.3 and `@iobroker/testing` 6.2.1, tests also on
|
|
157
|
-
Node.js 26, `testing-action-check` v2, admin translations in the short format
|
|
158
|
-
(`admin/i18n/<lang>.json`), `tsconfig.json` and JSON schemas for VS Code.
|
|
159
|
-
- Published through GitHub Actions with provenance (0.0.6 had been published manually).
|
|
160
|
-
|
|
161
|
-
### 0.0.6
|
|
162
|
-
- Released through GitHub Actions with npm provenance (trusted publishing). No functional
|
|
163
|
-
changes; 0.0.5 was published manually and therefore carries no provenance attestation.
|
|
164
|
-
|
|
165
|
-
### 0.0.5
|
|
166
|
-
- Meet the ioBroker repository requirements: updated dev dependencies, removed the deprecated
|
|
167
|
-
`common.main`, fixed responsive column widths, and translated the admin texts into the nine
|
|
168
|
-
remaining languages.
|
|
169
|
-
|
|
170
141
|
[Older changelog entries can be found here](CHANGELOG_OLD.md)
|
|
171
142
|
|
|
172
143
|
## Trademark and relationship to the hardware project
|
package/io-package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "faikout",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.18",
|
|
5
5
|
"titleLang": {
|
|
6
6
|
"en": "Faikout",
|
|
7
7
|
"de": "Faikout",
|
|
@@ -68,6 +68,19 @@
|
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
70
|
"news": {
|
|
71
|
+
"0.0.18": {
|
|
72
|
+
"en": "VIS widgets render again in the vis runtime and show live values; mode colour on all widgets; energy history with fixed ranges; new vis templates",
|
|
73
|
+
"de": "VIS-Widgets werden in der vis-Laufzeit wieder gezeichnet und zeigen Live-Werte; Farbe der Betriebsart auf allen Widgets; Energieverlauf mit festen Zeiträumen; neue vis-Vorlagen",
|
|
74
|
+
"ru": "Виджеты VIS снова отображаются в среде выполнения vis и показывают текущие значения; цвет режима на всех виджетах; история энергии с фиксированными периодами; новые шаблоны vis",
|
|
75
|
+
"pt": "Os widgets VIS voltam a ser apresentados no runtime do vis e mostram valores em tempo real; cor do modo em todos os widgets; histórico de energia com períodos fixos; novos modelos vis",
|
|
76
|
+
"nl": "VIS-widgets worden weer weergegeven in de vis-runtime en tonen live waarden; kleur van de bedrijfsmodus op alle widgets; energieverloop met vaste perioden; nieuwe vis-sjablonen",
|
|
77
|
+
"fr": "Les widgets VIS s’affichent à nouveau dans le runtime vis et montrent les valeurs en direct ; couleur du mode sur tous les widgets ; historique d’énergie sur des périodes fixes ; nouveaux modèles vis",
|
|
78
|
+
"it": "I widget VIS vengono di nuovo visualizzati nel runtime di vis e mostrano i valori in tempo reale; colore della modalità su tutti i widget; storico energia con periodi fissi; nuovi modelli vis",
|
|
79
|
+
"es": "Los widgets VIS vuelven a mostrarse en el runtime de vis con valores en directo; color del modo en todos los widgets; historial de energía con periodos fijos; nuevas plantillas vis",
|
|
80
|
+
"pl": "Widżety VIS znów renderują się w środowisku vis i pokazują bieżące wartości; kolor trybu pracy na wszystkich widżetach; historia energii ze stałymi okresami; nowe szablony vis",
|
|
81
|
+
"uk": "Віджети VIS знову відображаються в середовищі vis і показують поточні значення; колір режиму на всіх віджетах; історія енергії з фіксованими періодами; нові шаблони vis",
|
|
82
|
+
"zh-cn": "VIS 小部件可在 vis 运行时中重新正常显示并显示实时数值;所有小部件显示运行模式颜色;能耗历史采用固定时间范围;新增 vis 模板"
|
|
83
|
+
},
|
|
71
84
|
"0.0.17": {
|
|
72
85
|
"en": "Units of compressor and fan speed detected from the module (Hz or rpm), all module fields described, new tab \"Module settings\"",
|
|
73
86
|
"de": "Einheit von Verdichter- und Lüfterdrehzahl wird am Modul erkannt (Hz oder rpm), alle Modulfelder beschrieben, neuer Reiter „Moduleinstellungen“",
|
|
@@ -145,19 +158,6 @@
|
|
|
145
158
|
"pl": "Nowy stan status.reason (przyczyna rozłączenia z MQTT last will, np. „LWT”) z nazwami we wszystkich językach",
|
|
146
159
|
"uk": "Новий стан status.reason (причина відключення з MQTT last will, напр. «LWT») з назвами всіма мовами",
|
|
147
160
|
"zh-cn": "新状态 status.reason(来自 MQTT 遗嘱消息的断开原因,例如“LWT”),名称支持所有语言"
|
|
148
|
-
},
|
|
149
|
-
"0.0.11": {
|
|
150
|
-
"en": "Remaining log messages in English; the adapter now stops quickly even while faikout modules stay connected (no more forced kill on stop)",
|
|
151
|
-
"de": "Restliche Log-Meldungen auf Englisch; der Adapter beendet sich jetzt schnell, auch wenn faikout-Module verbunden bleiben (kein erzwungener Abbruch mehr beim Stoppen)",
|
|
152
|
-
"ru": "Оставшиеся сообщения журнала на английском; адаптер теперь быстро останавливается, даже если модули faikout остаются подключёнными (больше нет принудительного завершения)",
|
|
153
|
-
"pt": "Restantes mensagens de registo em inglês; o adaptador para agora rapidamente mesmo com módulos faikout ligados (sem encerramento forçado ao parar)",
|
|
154
|
-
"nl": "Resterende logberichten in het Engels; de adapter stopt nu snel, ook als faikout-modules verbonden blijven (geen geforceerde beëindiging meer)",
|
|
155
|
-
"fr": "Messages de journal restants en anglais ; l'adaptateur s'arrête désormais rapidement même si des modules faikout restent connectés (plus d'arrêt forcé)",
|
|
156
|
-
"it": "Messaggi di log rimanenti in inglese; l'adattatore ora si arresta rapidamente anche con moduli faikout connessi (nessuna terminazione forzata)",
|
|
157
|
-
"es": "Mensajes de registro restantes en inglés; el adaptador ahora se detiene rápidamente aunque los módulos faikout sigan conectados (sin cierre forzado)",
|
|
158
|
-
"pl": "Pozostałe komunikaty dziennika po angielsku; adapter zatrzymuje się teraz szybko, nawet gdy moduły faikout pozostają połączone (bez wymuszonego zakończenia)",
|
|
159
|
-
"uk": "Решта повідомлень журналу англійською; адаптер тепер швидко зупиняється, навіть якщо модулі faikout залишаються підключеними (без примусового завершення)",
|
|
160
|
-
"zh-cn": "其余日志消息改为英文;即使 faikout 模块保持连接,适配器现在也能快速停止(停止时不再被强制终止)"
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
"restartAdapters": [
|
package/package.json
CHANGED
|
@@ -61,6 +61,9 @@ vis.binds.faikout = {
|
|
|
61
61
|
'Summe': 'Total',
|
|
62
62
|
'Dieser Monat': 'This month',
|
|
63
63
|
'Dieses Jahr': 'This year',
|
|
64
|
+
'Letzte 24 Stunden': 'Last 24 hours',
|
|
65
|
+
'Letzte 31 Tage': 'Last 31 days',
|
|
66
|
+
'Letzte 12 Monate': 'Last 12 months',
|
|
64
67
|
'Tag': 'Day',
|
|
65
68
|
'Monat': 'Month',
|
|
66
69
|
'Jahr': 'Year',
|
|
@@ -242,6 +245,7 @@ vis.binds.faikout = {
|
|
|
242
245
|
return;
|
|
243
246
|
}
|
|
244
247
|
zustaende = zustaende || {};
|
|
248
|
+
b.abonnieren(zustaende);
|
|
245
249
|
var ctx = {
|
|
246
250
|
prefix: prefix,
|
|
247
251
|
einheiten: {},
|
|
@@ -300,6 +304,37 @@ vis.binds.faikout = {
|
|
|
300
304
|
});
|
|
301
305
|
},
|
|
302
306
|
|
|
307
|
+
/**
|
|
308
|
+
* VIS abonniert beim Laden einer Ansicht nur die IDs, die in den Widget-Attributen stehen -
|
|
309
|
+
* hier also nur das Geraeteobjekt, nicht die Datenpunkte darunter. Ohne eigenes Abo blieben
|
|
310
|
+
* vis.states leer und alle Werte zeigten "–". Deshalb: Anfangswerte in vis.states legen
|
|
311
|
+
* (wenn noch keine da sind) und die Datenpunkte selbst abonnieren.
|
|
312
|
+
*/
|
|
313
|
+
abonnieren: function (zustaende) {
|
|
314
|
+
var neu = [];
|
|
315
|
+
var aktiv = (vis.subscribing && vis.subscribing.active) || null;
|
|
316
|
+
Object.keys(zustaende).forEach(function (id) {
|
|
317
|
+
var s = zustaende[id];
|
|
318
|
+
if (s && vis.states.attr(id + '.val') === undefined) vis.updateState(id, s);
|
|
319
|
+
if (!aktiv) {
|
|
320
|
+
neu.push(id);
|
|
321
|
+
} else if (aktiv.indexOf(id) === -1) {
|
|
322
|
+
aktiv.push(id);
|
|
323
|
+
neu.push(id);
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
if (neu.length) vis.conn.subscribe(neu);
|
|
327
|
+
},
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Akzentfarbe (Betriebsart) als CSS-Variable setzen. jQuery 1.11 in vis 1 kann mit .css()
|
|
331
|
+
* keine Custom Properties setzen - der Akzent blieb deshalb immer blau.
|
|
332
|
+
*/
|
|
333
|
+
farbe: function ($w, wert) {
|
|
334
|
+
if ($w && $w[0] && $w[0].style) $w[0].style.setProperty('--fk-akzent', wert);
|
|
335
|
+
return $w;
|
|
336
|
+
},
|
|
337
|
+
|
|
303
338
|
/** Hinweis, wenn die Anlage den benoetigten Datenpunkt gar nicht hat. */
|
|
304
339
|
fehlt: function ($wurzel, feld) {
|
|
305
340
|
$wurzel.html('<div class="fk-fehler">' + vis.binds.faikout.t('Dieses Gerät hat keinen Datenpunkt %s.', '<code>' + feld + '</code>') + '</div>');
|
|
@@ -509,7 +544,7 @@ vis.binds.faikout = {
|
|
|
509
544
|
|
|
510
545
|
return function () {
|
|
511
546
|
var an = ctx.hat('control.power') ? !!ctx.wert('control.power') : true;
|
|
512
|
-
$wurzel
|
|
547
|
+
vis.binds.faikout.farbe($wurzel, ctx.akzent()).toggleClass('fk-aus', !an);
|
|
513
548
|
$wurzel.find('.fk-schalter').toggleClass('fk-an', an);
|
|
514
549
|
zeichneBogen();
|
|
515
550
|
var erreichbar = ctx.hat('info.online') ? !!ctx.wert('info.online') : true;
|
|
@@ -549,7 +584,7 @@ vis.binds.faikout = {
|
|
|
549
584
|
return function () {
|
|
550
585
|
var an = ctx.hat('control.power') ? !!ctx.wert('control.power') : true;
|
|
551
586
|
var m = ctx.wert('control.mode');
|
|
552
|
-
$wurzel
|
|
587
|
+
vis.binds.faikout.farbe($wurzel, ctx.akzent()).toggleClass('fk-aus', !an);
|
|
553
588
|
$wurzel.find('.fk-schalter').toggleClass('fk-an', an);
|
|
554
589
|
$wurzel.find('.fk-pille').each(function () {
|
|
555
590
|
$(this).toggleClass('fk-gewaehlt', $(this).attr('data-wert') === m && an);
|
|
@@ -584,7 +619,7 @@ vis.binds.faikout = {
|
|
|
584
619
|
|
|
585
620
|
return function () {
|
|
586
621
|
var f = ctx.wert('control.fan');
|
|
587
|
-
$wurzel
|
|
622
|
+
vis.binds.faikout.farbe($wurzel, ctx.akzent());
|
|
588
623
|
$wurzel.find('.fk-pille').each(function () {
|
|
589
624
|
$(this).toggleClass('fk-gewaehlt', $(this).attr('data-wert') === f);
|
|
590
625
|
});
|
|
@@ -623,7 +658,7 @@ vis.binds.faikout = {
|
|
|
623
658
|
|
|
624
659
|
return function () {
|
|
625
660
|
var w = parseInt(ctx.wert('control.demand'), 10);
|
|
626
|
-
$wurzel
|
|
661
|
+
vis.binds.faikout.farbe($wurzel, ctx.akzent());
|
|
627
662
|
if (!isNaN(w)) {
|
|
628
663
|
if (!$s.is(':active')) $s.val(w);
|
|
629
664
|
$wurzel.find('.fk-leistung-zahl').text(w);
|
|
@@ -675,7 +710,7 @@ vis.binds.faikout = {
|
|
|
675
710
|
b.fuss($wurzel, ctx, data);
|
|
676
711
|
|
|
677
712
|
return function () {
|
|
678
|
-
$wurzel
|
|
713
|
+
vis.binds.faikout.farbe($wurzel, ctx.akzent());
|
|
679
714
|
$wurzel.find('.fk-schalt').each(function () {
|
|
680
715
|
var f = $(this).attr('data-feld');
|
|
681
716
|
var v = ctx.wert(f);
|
|
@@ -721,7 +756,7 @@ vis.binds.faikout = {
|
|
|
721
756
|
'<div class="fk-mw-wert">' + v + '<small>' + b.einheit(ctx, m) + '</small></div></div>';
|
|
722
757
|
});
|
|
723
758
|
$wurzel.find('.fk-messwerte').html(html);
|
|
724
|
-
$wurzel
|
|
759
|
+
vis.binds.faikout.farbe($wurzel, ctx.akzent());
|
|
725
760
|
};
|
|
726
761
|
});
|
|
727
762
|
},
|
|
@@ -749,7 +784,7 @@ vis.binds.faikout = {
|
|
|
749
784
|
return function () {
|
|
750
785
|
var v = b.zahl(ctx.wert(m.feld), b.stellen(ctx, m));
|
|
751
786
|
$wurzel.find('.fk-einzel-wert').html((v === null ? '–' : v) + '<small>' + b.einheit(ctx, m) + '</small>');
|
|
752
|
-
$wurzel
|
|
787
|
+
vis.binds.faikout.farbe($wurzel, ctx.akzent());
|
|
753
788
|
};
|
|
754
789
|
});
|
|
755
790
|
},
|
|
@@ -785,7 +820,10 @@ vis.binds.faikout = {
|
|
|
785
820
|
return;
|
|
786
821
|
}
|
|
787
822
|
gefunden = true;
|
|
788
|
-
vis
|
|
823
|
+
// vis 1 kennt kein conn.getState, nur getStates (Liste oder Muster).
|
|
824
|
+
var oid = ctx.oid(pfad);
|
|
825
|
+
vis.conn.getStates([oid], function (err, zustaende) {
|
|
826
|
+
var zustand = zustaende && zustaende[oid];
|
|
789
827
|
if (!err && zustand && zustand.val) {
|
|
790
828
|
try {
|
|
791
829
|
JSON.parse(zustand.val).forEach(function (p) {
|
|
@@ -865,7 +903,7 @@ vis.binds.faikout = {
|
|
|
865
903
|
svg += '</g><g class="fk-v-achse">';
|
|
866
904
|
for (var j = 0; j <= 2; j++) {
|
|
867
905
|
var v = spitze * j / 2;
|
|
868
|
-
var t = v >= 10
|
|
906
|
+
var t = b.zahl(v, v >= 10 || v === 0 ? 0 : (v < 1 ? 2 : 1));
|
|
869
907
|
svg += '<text x="' + (LINKS - 4) + '" y="' + (y(v) + 3).toFixed(1) + '" text-anchor="end">' + t + '</text>';
|
|
870
908
|
}
|
|
871
909
|
// Beschriftung ausduennen, sonst kleben 24 oder 31 Werte aneinander.
|
|
@@ -884,8 +922,8 @@ vis.binds.faikout = {
|
|
|
884
922
|
svg += '<rect x="' + x.toFixed(1) + '" y="' + y(wert).toFixed(1) +
|
|
885
923
|
'" width="' + balkenB.toFixed(1) + '" height="' + h.toFixed(1) +
|
|
886
924
|
'" rx="1" fill="' + b.VERLAUF_FARBEN[r.art] + '">' +
|
|
887
|
-
'<title>' + punkte[k].beschriftung + ' · ' + b.t('Kühlen') + ' ' + punkte[k].cooling
|
|
888
|
-
' kWh · ' + b.t('Heizen') + ' ' + punkte[k].heating
|
|
925
|
+
'<title>' + punkte[k].beschriftung + ' · ' + b.t('Kühlen') + ' ' + b.zahl(punkte[k].cooling, 1) +
|
|
926
|
+
' kWh · ' + b.t('Heizen') + ' ' + b.zahl(punkte[k].heating, 1) + ' kWh</title></rect>';
|
|
889
927
|
});
|
|
890
928
|
});
|
|
891
929
|
svg += '</g></svg>';
|
|
@@ -904,7 +942,9 @@ vis.binds.faikout = {
|
|
|
904
942
|
cooling: b.attr(data, 'show_cooling', 'zeige_kuehlen') !== false,
|
|
905
943
|
heating: b.attr(data, 'show_heating', 'zeige_heizen') !== false
|
|
906
944
|
};
|
|
907
|
-
|
|
945
|
+
// Die Reihen des Adapters reichen weiter zurueck (Tage z. B. 62) - gezeigt wird ein fester Ausschnitt.
|
|
946
|
+
var BESCHRIFTUNG = { day: b.t('Letzte 24 Stunden'), month: b.t('Letzte 31 Tage'), year: b.t('Letzte 12 Monate') };
|
|
947
|
+
var ANZAHL = { day: 24, month: 31, year: 12 };
|
|
908
948
|
|
|
909
949
|
var $box = $('<div class="fk-verlauf"></div>').appendTo($wurzel);
|
|
910
950
|
if (b.attr(data, 'rangeSwitch', 'umschalter') !== false) {
|
|
@@ -954,16 +994,17 @@ vis.binds.faikout = {
|
|
|
954
994
|
$fuss.find('.fk-v-summe').text('');
|
|
955
995
|
return;
|
|
956
996
|
}
|
|
997
|
+
punkte = punkte.slice(-(ANZAHL[bereich] || punkte.length));
|
|
957
998
|
var w = $flaeche.width() || 400;
|
|
958
999
|
b.verlaufZeichnen($flaeche, punkte, arten, w, Math.max(110, Math.round(w * 0.42)));
|
|
959
1000
|
var summe = punkte.reduce(function (a, p) { return a + p.cooling + p.heating; }, 0);
|
|
960
1001
|
$fuss.find('.fk-v-summe').html(b.t('Summe') + ' <b>' +
|
|
961
|
-
(summe >= 100 ?
|
|
1002
|
+
b.zahl(summe, summe >= 100 ? 0 : 1) + ' kWh</b>');
|
|
962
1003
|
});
|
|
963
1004
|
}
|
|
964
1005
|
|
|
965
1006
|
return function () {
|
|
966
|
-
$wurzel
|
|
1007
|
+
vis.binds.faikout.farbe($wurzel, ctx.akzent());
|
|
967
1008
|
laden();
|
|
968
1009
|
};
|
|
969
1010
|
});
|
|
@@ -1005,7 +1046,7 @@ vis.binds.faikout = {
|
|
|
1005
1046
|
|
|
1006
1047
|
return function () {
|
|
1007
1048
|
var an = ctx.hat('control.power') ? !!ctx.wert('control.power') : true;
|
|
1008
|
-
$wurzel
|
|
1049
|
+
vis.binds.faikout.farbe($wurzel, ctx.akzent()).toggleClass('fk-aus', !an);
|
|
1009
1050
|
$wurzel.find('.fk-schalter').toggleClass('fk-an', an);
|
|
1010
1051
|
teile.forEach(function (f) { if (f) f(); });
|
|
1011
1052
|
var erreichbar = ctx.hat('info.online') ? !!ctx.wert('info.online') : true;
|
package/widgets/faikout.html
CHANGED
|
@@ -81,9 +81,7 @@
|
|
|
81
81
|
data-vis-attrs="deviceOid/id;titel;untertitel;theme/select,light,dark;rahmen/checkbox;kopf/checkbox;schalter/checkbox;fuss/checkbox;symbole/checkbox;ziehen/checkbox;zusatz/checkbox;beschriftung/checkbox"
|
|
82
82
|
data-vis-attrs0="group.readings;show_outdoor/checkbox;show_power/checkbox;show_today/checkbox;show_compressor/checkbox;show_fan/checkbox;show_refrigerant/checkbox;show_room/checkbox;show_humidity/checkbox;show_energy/checkbox;show_yesterday/checkbox;show_hour/checkbox">
|
|
83
83
|
<div id="<%= this.data.attr('wid') %>" class="vis-widget <%== this.data.attr('class') %>" style="width:380px;height:820px">
|
|
84
|
-
|
|
85
|
-
vis.binds.faikout.kachel('<%= this.data.attr('wid') %>', view, data, style);
|
|
86
|
-
<\/script>
|
|
84
|
+
<% vis.binds.faikout.kachel(this.data.wid, this.view, this.data, this.style); %>
|
|
87
85
|
</div>
|
|
88
86
|
</script>
|
|
89
87
|
|
|
@@ -96,9 +94,7 @@
|
|
|
96
94
|
data-vis-name="Set point arc"
|
|
97
95
|
data-vis-attrs="deviceOid/id;titel;untertitel;theme/select,light,dark;rahmen/checkbox;kopf/checkbox;schalter/checkbox;fuss/checkbox;ziehen/checkbox">
|
|
98
96
|
<div id="<%= this.data.attr('wid') %>" class="vis-widget <%== this.data.attr('class') %>" style="width:340px;height:350px">
|
|
99
|
-
|
|
100
|
-
vis.binds.faikout.bogen('<%= this.data.attr('wid') %>', view, data, style);
|
|
101
|
-
<\/script>
|
|
97
|
+
<% vis.binds.faikout.bogen(this.data.wid, this.view, this.data, this.style); %>
|
|
102
98
|
</div>
|
|
103
99
|
</script>
|
|
104
100
|
|
|
@@ -111,9 +107,7 @@
|
|
|
111
107
|
data-vis-name="Mode (horizontal)"
|
|
112
108
|
data-vis-attrs="deviceOid/id;titel;untertitel;theme/select,light,dark;rahmen/checkbox;kopf/checkbox;schalter/checkbox;fuss/checkbox;etikett/checkbox;symbole/checkbox">
|
|
113
109
|
<div id="<%= this.data.attr('wid') %>" class="vis-widget <%== this.data.attr('class') %>" style="width:380px;height:135px">
|
|
114
|
-
|
|
115
|
-
vis.binds.faikout.modus('<%= this.data.attr('wid') %>', view, data, false);
|
|
116
|
-
<\/script>
|
|
110
|
+
<% vis.binds.faikout.modus(this.data.wid, this.view, this.data, false); %>
|
|
117
111
|
</div>
|
|
118
112
|
</script>
|
|
119
113
|
|
|
@@ -125,9 +119,7 @@
|
|
|
125
119
|
data-vis-name="Mode (vertical)"
|
|
126
120
|
data-vis-attrs="deviceOid/id;titel;untertitel;theme/select,light,dark;rahmen/checkbox;kopf/checkbox;schalter/checkbox;fuss/checkbox;etikett/checkbox;symbole/checkbox">
|
|
127
121
|
<div id="<%= this.data.attr('wid') %>" class="vis-widget <%== this.data.attr('class') %>" style="width:190px;height:265px">
|
|
128
|
-
|
|
129
|
-
vis.binds.faikout.modus('<%= this.data.attr('wid') %>', view, data, true);
|
|
130
|
-
<\/script>
|
|
122
|
+
<% vis.binds.faikout.modus(this.data.wid, this.view, this.data, true); %>
|
|
131
123
|
</div>
|
|
132
124
|
</script>
|
|
133
125
|
|
|
@@ -140,9 +132,7 @@
|
|
|
140
132
|
data-vis-name="Fan speed (horizontal)"
|
|
141
133
|
data-vis-attrs="deviceOid/id;titel;untertitel;theme/select,light,dark;rahmen/checkbox;kopf/checkbox;schalter/checkbox;fuss/checkbox;etikett/checkbox">
|
|
142
134
|
<div id="<%= this.data.attr('wid') %>" class="vis-widget <%== this.data.attr('class') %>" style="width:420px;height:100px">
|
|
143
|
-
|
|
144
|
-
vis.binds.faikout.luefter('<%= this.data.attr('wid') %>', view, data, false);
|
|
145
|
-
<\/script>
|
|
135
|
+
<% vis.binds.faikout.luefter(this.data.wid, this.view, this.data, false); %>
|
|
146
136
|
</div>
|
|
147
137
|
</script>
|
|
148
138
|
|
|
@@ -154,9 +144,7 @@
|
|
|
154
144
|
data-vis-name="Fan speed (vertical)"
|
|
155
145
|
data-vis-attrs="deviceOid/id;titel;untertitel;theme/select,light,dark;rahmen/checkbox;kopf/checkbox;schalter/checkbox;fuss/checkbox;etikett/checkbox">
|
|
156
146
|
<div id="<%= this.data.attr('wid') %>" class="vis-widget <%== this.data.attr('class') %>" style="width:165px;height:345px">
|
|
157
|
-
|
|
158
|
-
vis.binds.faikout.luefter('<%= this.data.attr('wid') %>', view, data, true);
|
|
159
|
-
<\/script>
|
|
147
|
+
<% vis.binds.faikout.luefter(this.data.wid, this.view, this.data, true); %>
|
|
160
148
|
</div>
|
|
161
149
|
</script>
|
|
162
150
|
|
|
@@ -169,9 +157,7 @@
|
|
|
169
157
|
data-vis-name="Power limit"
|
|
170
158
|
data-vis-attrs="deviceOid/id;titel;untertitel;theme/select,light,dark;rahmen/checkbox;kopf/checkbox;schalter/checkbox;fuss/checkbox;etikett/checkbox">
|
|
171
159
|
<div id="<%= this.data.attr('wid') %>" class="vis-widget <%== this.data.attr('class') %>" style="width:280px;height:150px">
|
|
172
|
-
|
|
173
|
-
vis.binds.faikout.leistung('<%= this.data.attr('wid') %>', view, data, style);
|
|
174
|
-
<\/script>
|
|
160
|
+
<% vis.binds.faikout.leistung(this.data.wid, this.view, this.data, this.style); %>
|
|
175
161
|
</div>
|
|
176
162
|
</script>
|
|
177
163
|
|
|
@@ -184,9 +170,7 @@
|
|
|
184
170
|
data-vis-name="Extra functions (horizontal)"
|
|
185
171
|
data-vis-attrs="deviceOid/id;titel;untertitel;theme/select,light,dark;rahmen/checkbox;kopf/checkbox;schalter/checkbox;fuss/checkbox;etikett/checkbox;beschriftung/checkbox">
|
|
186
172
|
<div id="<%= this.data.attr('wid') %>" class="vis-widget <%== this.data.attr('class') %>" style="width:300px;height:115px">
|
|
187
|
-
|
|
188
|
-
vis.binds.faikout.zusatz('<%= this.data.attr('wid') %>', view, data, false);
|
|
189
|
-
<\/script>
|
|
173
|
+
<% vis.binds.faikout.zusatz(this.data.wid, this.view, this.data, false); %>
|
|
190
174
|
</div>
|
|
191
175
|
</script>
|
|
192
176
|
|
|
@@ -198,9 +182,7 @@
|
|
|
198
182
|
data-vis-name="Extra functions (vertical)"
|
|
199
183
|
data-vis-attrs="deviceOid/id;titel;untertitel;theme/select,light,dark;rahmen/checkbox;kopf/checkbox;schalter/checkbox;fuss/checkbox;etikett/checkbox">
|
|
200
184
|
<div id="<%= this.data.attr('wid') %>" class="vis-widget <%== this.data.attr('class') %>" style="width:230px;height:290px">
|
|
201
|
-
|
|
202
|
-
vis.binds.faikout.zusatz('<%= this.data.attr('wid') %>', view, data, true);
|
|
203
|
-
<\/script>
|
|
185
|
+
<% vis.binds.faikout.zusatz(this.data.wid, this.view, this.data, true); %>
|
|
204
186
|
</div>
|
|
205
187
|
</script>
|
|
206
188
|
|
|
@@ -221,9 +203,7 @@
|
|
|
221
203
|
data-vis-attrs="deviceOid/id;titel;untertitel;theme/select,light,dark;rahmen/checkbox;kopf/checkbox;schalter/checkbox;fuss/checkbox"
|
|
222
204
|
data-vis-attrs0="group.history;range/select,day,month,year;rangeSwitch/checkbox;seriesSelect/checkbox;show_total/checkbox;show_cooling/checkbox;show_heating/checkbox">
|
|
223
205
|
<div id="<%= this.data.attr('wid') %>" class="vis-widget <%== this.data.attr('class') %>" style="width:420px;height:250px">
|
|
224
|
-
|
|
225
|
-
vis.binds.faikout.verlauf('<%= this.data.attr('wid') %>', view, data, style);
|
|
226
|
-
<\/script>
|
|
206
|
+
<% vis.binds.faikout.verlauf(this.data.wid, this.view, this.data, this.style); %>
|
|
227
207
|
</div>
|
|
228
208
|
</script>
|
|
229
209
|
|
|
@@ -236,9 +216,7 @@
|
|
|
236
216
|
data-vis-attrs="deviceOid/id;titel;untertitel;theme/select,light,dark;rahmen/checkbox;kopf/checkbox;schalter/checkbox;fuss/checkbox"
|
|
237
217
|
data-vis-attrs0="group.readings;show_outdoor/checkbox;show_power/checkbox;show_today/checkbox;show_compressor/checkbox;show_fan/checkbox;show_refrigerant/checkbox;show_room/checkbox;show_humidity/checkbox;show_energy/checkbox;show_yesterday/checkbox;show_hour/checkbox">
|
|
238
218
|
<div id="<%= this.data.attr('wid') %>" class="vis-widget <%== this.data.attr('class') %>" style="width:380px;height:160px">
|
|
239
|
-
|
|
240
|
-
vis.binds.faikout.messwerte('<%= this.data.attr('wid') %>', view, data, style);
|
|
241
|
-
<\/script>
|
|
219
|
+
<% vis.binds.faikout.messwerte(this.data.wid, this.view, this.data, this.style); %>
|
|
242
220
|
</div>
|
|
243
221
|
</script>
|
|
244
222
|
|
|
@@ -251,8 +229,6 @@
|
|
|
251
229
|
data-vis-name="Reading (single)"
|
|
252
230
|
data-vis-attrs="deviceOid/id;reading/select,outdoor,power,today,compressor,fan,refrigerant,room,humidity,energy,yesterday,hour;titel;theme/select,light,dark;rahmen/checkbox;etikett/checkbox">
|
|
253
231
|
<div id="<%= this.data.attr('wid') %>" class="vis-widget <%== this.data.attr('class') %>" style="width:150px;height:100px">
|
|
254
|
-
|
|
255
|
-
vis.binds.faikout.einzelwert('<%= this.data.attr('wid') %>', view, data, style);
|
|
256
|
-
<\/script>
|
|
232
|
+
<% vis.binds.faikout.einzelwert(this.data.wid, this.view, this.data, this.style); %>
|
|
257
233
|
</div>
|
|
258
234
|
</script>
|