iobroker.device-watcher 2.9.13 → 2.9.14
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 +4 -0
- package/io-package.json +14 -14
- package/main.js +17 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -189,6 +189,10 @@ It's possible to select:
|
|
|
189
189
|
Placeholder for the next version (at the beginning of the line):
|
|
190
190
|
### **WORK IN PROGRESS**
|
|
191
191
|
-->
|
|
192
|
+
### 2.9.14 (2024-01-04)
|
|
193
|
+
|
|
194
|
+
- (ciddi89) Fixed: This schould fixed the bugs with high cpu and ram load, finally. Sorry about the last two buggy versions.
|
|
195
|
+
|
|
192
196
|
### 2.9.13 (2024-01-03)
|
|
193
197
|
|
|
194
198
|
- (ciddi89) Fixed: Issues from v2.9.12 [#283](https://github.com/ciddi89/ioBroker.device-watcher/issues/283)
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "device-watcher",
|
|
4
|
-
"version": "2.9.
|
|
4
|
+
"version": "2.9.14",
|
|
5
5
|
"news": {
|
|
6
|
+
"2.9.14": {
|
|
7
|
+
"en": "Fixed: This schould fixed the bugs with high cpu and ram load, finally. Sorry about the last two buggy versions.",
|
|
8
|
+
"de": "Behoben: Damit sollten die Fehler mit hoher CPU- und Ram-Last endlich behoben sein. Entschuldigung für die letzten beiden fehlerhaften Versionen.",
|
|
9
|
+
"ru": "Исправлено: Этот щит исправил ошибки с высокой загрузкой cpu и ram, наконец. Извините за последние две версии buggy.",
|
|
10
|
+
"pt": "Corrigido: Este schould corrigiu os insetos com alta carga cpu e ram, finalmente. Lamento as duas últimas versões.",
|
|
11
|
+
"nl": "Gerepareerd: Deze schould heeft de insecten gemaakt met hoge cpu en ramlading, eindelijk. Sorry voor de laatste twee rotversieën.",
|
|
12
|
+
"fr": "Correction : Ce schould a réparé les bogues avec une charge de cpu et de bélier élevée, enfin. Désolé pour les deux dernières versions de buggy.",
|
|
13
|
+
"it": "Risolto: Questa schould ha fissato i bug con un alto carico di cpu e raggi, finalmente. Mi dispiace per le ultime due versioni buggy.",
|
|
14
|
+
"es": "Arreglado: Esto podría arreglar los bichos con alta carga de cpu y carnero, finalmente. Siento lo de las últimas dos versiones.",
|
|
15
|
+
"pl": "Fixed: Ten schemat mógł naprawić błędy o wysokim cpu i załadowaniu ramy, w końcu. O ostatnich dwóch wersjach.",
|
|
16
|
+
"uk": "Виправлено: Цей schould зафіксував помилки з високою cpu і ram навантаження, нарешті. Про нас.",
|
|
17
|
+
"zh-cn": "固定: 最终,这就将固定在高棉和泥石头。 关于最后两个走私版本。."
|
|
18
|
+
},
|
|
6
19
|
"2.9.13": {
|
|
7
20
|
"en": "Fixed: Issues from v2.9.12 [#283](https://github.com/ciddi89/ioBroker.device-watcher/issues/283)\nFixed: High CPU usage at object and state changes [#283](https://github.com/ciddi89/ioBroker.device-watcher/issues/283)",
|
|
8
21
|
"de": "Behoben: Fehler von v2.9.12 [#283](https://github.com/ciddi89/ioBroker.device-watcher/issues/283)\nBehoben: Hohe CPU-Nutzung bei Objekt- und Zustandsänderungen [#283](https://github.com/ciddi89/ioBroker.device-watcher/issues/283)",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "Fixed: Added additional check for example states #262(https:/github.com/ciddi89/ioBroker,device-watcher/issues/262)\nFixed: Dostosowanie Execute nawet jeśli nie doda się adapter urządzenia",
|
|
81
94
|
"uk": "Виправлено: Додана додаткова перевірка станів екземпляра [#262](https://github.com/ciddi89/ioBroker.device-watcher/issues/262)\nВиправлено: Виконувати адаптер навіть якщо пристрій не вибрано",
|
|
82
95
|
"zh-cn": "固定地点:添加更多检查,例如[第262](http://github.com/ciddi89/ioBroker.device-watcher/issues/262)\n固定:假肢变器,即使没有装置的配件被选用"
|
|
83
|
-
},
|
|
84
|
-
"2.9.7": {
|
|
85
|
-
"en": "Added: Support for Wifilight\nFixed: Multiple messages if Sonoff devices reachable [#244](https://github.com/ciddi89/ioBroker.device-watcher/issues/244)",
|
|
86
|
-
"de": "Hinzugefügt: Unterstützung für Wifilight\nBehoben: Mehrere Meldungen, wenn Sonoff-Geräte erreichbar sind [#244](https://github.com/ciddi89/ioBroker.device-watcher/issues/244)",
|
|
87
|
-
"ru": "Добавлена: Поддержка Wifilight\nИсправлено: Несколько сообщений, если устройства Sonoff доступны [#244](https://github.com/ciddi89/ioBroker.device-watcher/issues/244)",
|
|
88
|
-
"pt": "Adicionado: Suporte para Wifilight\nCorrigido: Múltiplas mensagens se os dispositivos Sonoff atingirem [#244](https://github.com/ciddi89/ioBroker.device-watcher/issues/244)",
|
|
89
|
-
"nl": "Vertaling:\nVertaling:",
|
|
90
|
-
"fr": "Ajouté: Support pour Wifi\nCorrection : Messages multiples si les appareils Sonoff sont accessibles [#244](https://github.com/ciddi89/ioBroker.device-watcher/issues/244)",
|
|
91
|
-
"it": "Aggiunto: Supporto per Wifilight\nFisso: Messaggi multipli se dispositivi Sonoff raggiungibili [#244](https://github.com/ciddi89/ioBroker.device-watcher/issues/244)",
|
|
92
|
-
"es": "Añadido: Soporte para Wifilight\nCorregido: Múltiples mensajes si los dispositivos Sonoff pueden llegar a ser [#244](https://github.com/ciddi89/ioBroker.device-watcher/issues/244)",
|
|
93
|
-
"pl": "Wspieranie Wifilight\nFixed: Multiple messages, jeśli urządzenia Sonoff docierają do miejsca #244 (https:/github.com/ciddi89/ioBroker.device-watcher/issues/244)",
|
|
94
|
-
"uk": "Доданий: Підтримка Wifilight\nВиправлено: Кілька повідомлень, якщо пристрої Sonoff досягаються [#244](https://github.com/ciddi89/ioBroker.device-watcher/issues/244)",
|
|
95
|
-
"zh-cn": "增 编:支持光明\nFixed:Sonoff装置可达到[第244](http://github.com/ciddi89/ioBroker.device-watcher/issues/244)"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/main.js
CHANGED
|
@@ -687,10 +687,10 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
687
687
|
|
|
688
688
|
const instanceDeviceConnectionDP = `${instance}.info.connection`;
|
|
689
689
|
const instancedeviceConnected = await this.getInitValue(instanceDeviceConnectionDP);
|
|
690
|
-
|
|
690
|
+
this.subscribeForeignStates(instanceDeviceConnectionDP);
|
|
691
691
|
this.subscribeForeignObjects(`${this.selAdapter[i].Selektor}`);
|
|
692
692
|
// this.subscribeForeignObjects('*');
|
|
693
|
-
this.subscribeForeignStates('*');
|
|
693
|
+
//this.subscribeForeignStates('*');
|
|
694
694
|
/*=============================================
|
|
695
695
|
= Get device name =
|
|
696
696
|
=============================================*/
|
|
@@ -708,7 +708,7 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
708
708
|
const shortCurrDeviceString = currDeviceString.slice(0, currDeviceString.lastIndexOf('.') + 1 - 1);
|
|
709
709
|
|
|
710
710
|
// subscribe to object device path
|
|
711
|
-
|
|
711
|
+
this.subscribeForeignStates(currDeviceString);
|
|
712
712
|
|
|
713
713
|
/*=============================================
|
|
714
714
|
= Get signal strength =
|
|
@@ -735,7 +735,7 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
735
735
|
break;
|
|
736
736
|
}
|
|
737
737
|
//subscribe to states
|
|
738
|
-
|
|
738
|
+
this.subscribeForeignStates(deviceQualityDP);
|
|
739
739
|
|
|
740
740
|
const signalData = await this.calculateSignalStrength(deviceQualityState, adapterID);
|
|
741
741
|
let linkQuality = signalData[0];
|
|
@@ -807,9 +807,9 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
807
807
|
faultReportingState = await this.getInitValue(faultReportingDP);
|
|
808
808
|
|
|
809
809
|
//subscribe to states
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
810
|
+
this.subscribeForeignStates(deviceBatteryStateDP);
|
|
811
|
+
this.subscribeForeignStates(isLowBatDP);
|
|
812
|
+
this.subscribeForeignStates(faultReportingDP);
|
|
813
813
|
|
|
814
814
|
const batteryData = await this.getBatteryData(deviceBatteryState, deviceLowBatState, faultReportingState, adapterID);
|
|
815
815
|
batteryHealth = batteryData[0];
|
|
@@ -842,10 +842,10 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
842
842
|
}
|
|
843
843
|
|
|
844
844
|
// subscribe to states
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
845
|
+
this.subscribeForeignStates(timeSelector);
|
|
846
|
+
this.subscribeForeignStates(unreachDP);
|
|
847
|
+
this.subscribeForeignStates(deviceStateSelectorDP);
|
|
848
|
+
this.subscribeForeignStates(rssiPeerSelectorDP);
|
|
849
849
|
|
|
850
850
|
const onlineState = await this.getOnlineState(timeSelector, adapterID, unreachDP, linkQuality, deviceUnreachState, deviceStateSelectorDP, rssiPeerSelectorDP);
|
|
851
851
|
let deviceState;
|
|
@@ -883,8 +883,8 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
883
883
|
}
|
|
884
884
|
|
|
885
885
|
// subscribe to states
|
|
886
|
-
|
|
887
|
-
this.subscribeForeignStates('*');
|
|
886
|
+
this.subscribeForeignStates(deviceUpdateDP);
|
|
887
|
+
// this.subscribeForeignStates('*');
|
|
888
888
|
}
|
|
889
889
|
|
|
890
890
|
/*=============================================
|
|
@@ -2096,11 +2096,11 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
|
|
2098
2098
|
//subscribe to statechanges
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2099
|
+
this.subscribeForeignStates(id);
|
|
2100
|
+
this.subscribeForeignStates(instanceConnectedHostDP);
|
|
2101
|
+
this.subscribeForeignStates(instanceConnectedDeviceDP);
|
|
2102
2102
|
this.subscribeForeignObjects(`system.adapter.*`);
|
|
2103
|
-
this.subscribeForeignStates('*');
|
|
2103
|
+
// this.subscribeForeignStates('*');
|
|
2104
2104
|
// this.subscribeForeignObjects('*');
|
|
2105
2105
|
|
|
2106
2106
|
// create raw list
|