iobroker.aquaclean-bridge 0.1.2 → 0.1.3
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 +5 -0
- package/io-package.json +14 -1
- package/main.js +8 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -440,6 +440,11 @@ and the service terms of your installer.
|
|
|
440
440
|
Placeholder for the next version (at the beginning of the line):
|
|
441
441
|
### **WORK IN PROGRESS**
|
|
442
442
|
-->
|
|
443
|
+
### 0.1.3 (2026-11-28)
|
|
444
|
+
|
|
445
|
+
- (barloew) The bridge firmware is shown for own YAML builds too (as "own build" with its compilation time).
|
|
446
|
+
- (barloew) Numbers from the bridge are rounded to two decimals.
|
|
447
|
+
|
|
443
448
|
### 0.1.2 (2026-11-25)
|
|
444
449
|
|
|
445
450
|
- (barloew) Requires js-controller 7.0.7 or newer.
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "aquaclean-bridge",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.1.3": {
|
|
7
|
+
"en": "Bridge firmware shown for own YAML builds too; numbers rounded to two decimals",
|
|
8
|
+
"de": "Bridge-Firmware auch bei eigenen YAML-Builds angezeigt; Zahlen auf zwei Nachkommastellen gerundet",
|
|
9
|
+
"ru": "Прошивка моста отображается и для собственных YAML-сборок; числа округляются до двух знаков",
|
|
10
|
+
"pt": "Firmware da bridge mostrado também em compilações YAML próprias; números arredondados a duas casas decimais",
|
|
11
|
+
"nl": "Bridge-firmware ook getoond bij eigen YAML-builds; getallen afgerond op twee decimalen",
|
|
12
|
+
"fr": "Firmware du bridge affiché aussi pour les builds YAML personnels ; nombres arrondis à deux décimales",
|
|
13
|
+
"it": "Firmware del bridge mostrato anche per build YAML proprie; numeri arrotondati a due decimali",
|
|
14
|
+
"es": "Firmware del bridge mostrado también en compilaciones YAML propias; números redondeados a dos decimales",
|
|
15
|
+
"pl": "Firmware bridge wyświetlany także dla własnych kompilacji YAML; liczby zaokrąglane do dwóch miejsc",
|
|
16
|
+
"uk": "Прошивка мосту показується й для власних YAML-збірок; числа округлюються до двох знаків",
|
|
17
|
+
"zh-cn": "自行编译的 YAML 固件也会显示 Bridge 固件信息;数字四舍五入到两位小数"
|
|
18
|
+
},
|
|
6
19
|
"0.1.2": {
|
|
7
20
|
"en": "Requires js-controller 7.0.7 or newer",
|
|
8
21
|
"de": "Benötigt js-controller 7.0.7 oder neuer",
|
package/main.js
CHANGED
|
@@ -179,7 +179,12 @@ class AquaCleanBridge extends utils.Adapter {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
await this.setState('info.connection', true, true);
|
|
182
|
-
|
|
182
|
+
// The project name and version exist only in builds that set `esphome: project:` (the bridge's own images);
|
|
183
|
+
// an own YAML build without it is shown by its compilation time.
|
|
184
|
+
const firmware = info.projectName
|
|
185
|
+
? `${info.projectName} ${info.projectVersion || ''}`.trim()
|
|
186
|
+
: `own build${info.compilationTime ? `, ${info.compilationTime}` : ''}`;
|
|
187
|
+
await this.setState('info.firmware', firmware, true);
|
|
183
188
|
await this.setState('info.esphome', info.esphomeVersion || '', true);
|
|
184
189
|
const recognised = [...bridge.entities.values()].filter(e => e.bridgeKey).length;
|
|
185
190
|
this.log.info(
|
|
@@ -402,7 +407,8 @@ class AquaCleanBridge extends utils.Adapter {
|
|
|
402
407
|
}
|
|
403
408
|
if (rec.type === 'number') {
|
|
404
409
|
const n = Number(value);
|
|
405
|
-
|
|
410
|
+
// the bridge sends floats (e.g. operating hours 12.769444465637207): two decimals are plenty
|
|
411
|
+
return Number.isFinite(n) ? Math.round(n * 100) / 100 : null;
|
|
406
412
|
}
|
|
407
413
|
if (rec.type === 'boolean') {
|
|
408
414
|
return !!value;
|