iobroker.device-watcher 2.2.1 → 2.2.2
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 +7 -0
- package/admin/i18n/de/translations.json +4 -1
- package/admin/i18n/en/translations.json +97 -94
- package/admin/i18n/es/translations.json +4 -1
- package/admin/i18n/fr/translations.json +4 -1
- package/admin/i18n/it/translations.json +4 -1
- package/admin/i18n/nl/translations.json +4 -1
- package/admin/i18n/pl/translations.json +4 -1
- package/admin/i18n/pt/translations.json +4 -1
- package/admin/i18n/ru/translations.json +4 -1
- package/admin/i18n/uk/translations.json +4 -1
- package/admin/i18n/zh-cn/translations.json +4 -1
- package/io-package.json +15 -15
- package/main.js +22 -51
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,6 +90,13 @@ If you don't want a specifice device in the list, you can add it in the blacklis
|
|
|
90
90
|
Placeholder for the next version (at the beginning of the line):
|
|
91
91
|
### **WORK IN PROGRESS**
|
|
92
92
|
-->
|
|
93
|
+
### 2.2.2 (2022-12-29)
|
|
94
|
+
|
|
95
|
+
- (ciddi89) some translation added
|
|
96
|
+
- (ciddi89) datapoints will be written in intervall
|
|
97
|
+
- (ciddi89) improvements of lists
|
|
98
|
+
- (ciddi89) some other small improvements
|
|
99
|
+
|
|
93
100
|
### 2.2.1 (2022-12-28)
|
|
94
101
|
|
|
95
102
|
- (ciddi89) Innogy Smarthome added
|
|
@@ -96,5 +96,8 @@
|
|
|
96
96
|
"Update the datapoints directly": "Aktualisieren Sie die Datenpunkte direkt",
|
|
97
97
|
"Update lists & counts which each statechange of devices": "Aktualisiere Listen und Zählungen, die sich bei jedem Statuswechsel von Geräten ändern",
|
|
98
98
|
"Update datapoints directly": "Datenpunkte direkt aktualisieren",
|
|
99
|
-
"Update lists & counts directly with each statechange of devices": "Aktualisieren Sie Listen und Zählungen direkt bei jedem Zustandswechsel von Geräten"
|
|
99
|
+
"Update lists & counts directly with each statechange of devices": "Aktualisieren Sie Listen und Zählungen direkt bei jedem Zustandswechsel von Geräten",
|
|
100
|
+
"Overview of low battery devices": "Übersicht über schwache Batteriegeräte",
|
|
101
|
+
"Get a regular message with an overview all low battery devices": "Erhalten Sie eine regelmäßige Nachricht mit einer Übersicht aller schwachen Batteriegeräte",
|
|
102
|
+
"From what % battery is considered low": "Ab wie viel % gilt der Akku als schwach"
|
|
100
103
|
}
|
|
@@ -1,96 +1,99 @@
|
|
|
1
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
|
-
|
|
2
|
+
"Add own notes, name, etc": "Add own notes, name, etc",
|
|
3
|
+
"Battery message": "Battery message",
|
|
4
|
+
"Choose devices to watch": "Choose devices to watch",
|
|
5
|
+
"Choose if only devices with batteries should be listed or all devices": "Choose if only devices with batteries should be listed or all devices",
|
|
6
|
+
"Choose the Time:": "Choose the Time:",
|
|
7
|
+
"Choose the day(s) where you want to get the message of low battery:": "Choose the day(s) where you want to get the message of low battery:",
|
|
8
|
+
"Choose the day(s) where you want to get the overview of offline devices:": "Choose the day(s) where you want to get the overview of offline devices:",
|
|
9
|
+
"Choose the priority": "Choose the priority",
|
|
10
|
+
"Choose which devices should be excluded": "Choose which devices should be excluded",
|
|
11
|
+
"Choose your Chat-ID": "Choose your Chat-ID",
|
|
12
|
+
"Choose your device": "Choose your device",
|
|
13
|
+
"Choose your email address": "Choose your email address",
|
|
14
|
+
"Choose your notification services": "Choose your notification services",
|
|
15
|
+
"Choose your recipient": "Choose your recipient",
|
|
16
|
+
"Choose your subject for the Email": "Choose your subject for the Email",
|
|
17
|
+
"Choose your title for Pushmessage": "Choose your title for Pushmessage",
|
|
18
|
+
"Common Notification Settings": "Common Notification Settings",
|
|
19
|
+
"Create additionally HTML lists": "Create additionally HTML lists",
|
|
20
|
+
"Create own folders for each adapter": "Create own folders for each adapter",
|
|
21
|
+
"Create the lists also in HTML": "Create the lists also in HTML",
|
|
22
|
+
"Daily overview of offline devices": "Daily overview of offline devices",
|
|
23
|
+
"Device-ID (optional)": "Device-ID (optional)",
|
|
24
|
+
"Email Instance": "Email Instance",
|
|
25
|
+
"Fri": "Fri",
|
|
26
|
+
"From how much min % would you get a message": "From how much min % would you get a message",
|
|
27
|
+
"Get a message with an overview all offline devices": "Get a message with an overview all offline devices",
|
|
28
|
+
"Get daily an overview with all offline devices": "Get daily an overview with all offline devices",
|
|
29
|
+
"Get message if an device has low battery": "Get message if an device has low battery",
|
|
30
|
+
"Get message if an device is not reachable": "Get message if an device is not reachable",
|
|
31
|
+
"Here you can choose your notification service, you can use more than one service, but you can also leave all blank, then only the datapoint lastNotification will be filled.": "Here you can choose your notification service, you can use more than one service, but you can also leave all blank, then only the datapoint lastNotification will be filled.",
|
|
32
|
+
"Here you can define the offline times of each adapter. If you want to use the data points of the devices (online, available, reachable etc.) directly to determine the status, enter ' 0 '.": "Here you can define the offline times of each adapter. If you want to use the data points of the devices (online, available, reachable etc.) directly to determine the status, enter ' 0 '.",
|
|
33
|
+
"Here you can define the offline times of each adapter. If you want to use the data points of the devices (online, available, reachable etc.) directly to determine the status, enter '-1'.": "Here you can define the offline times of each adapter. If you want to use the data points of the devices (online, available, reachable etc.) directly to determine the status, enter '-1'.",
|
|
34
|
+
"Here you can define the update interval of the datapoints/lists. For performance reasons, it is not recommended to select a poll value that is too low. Lower than two seconds is not selectable.": "Here you can define the update interval of the datapoints/lists. For performance reasons, it is not recommended to select a poll value that is too low. Lower than two seconds is not selectable.",
|
|
35
|
+
"High Priority": "High Priority",
|
|
36
|
+
"If you like to have for every Adapter an own folder with own data": "If you like to have for every Adapter an own folder with own data",
|
|
37
|
+
"Ignor in lists": "Ignor in lists",
|
|
38
|
+
"Ignor in notifications": "Ignor in notifications",
|
|
39
|
+
"Jarvis Instance": "Jarvis Instance",
|
|
40
|
+
"List only devices with batteries": "List only devices with batteries",
|
|
41
|
+
"Lovelace Instance": "Lovelace Instance",
|
|
42
|
+
"Lovelace Notification": "Lovelace Notification",
|
|
43
|
+
"Mon": "Mon",
|
|
44
|
+
"Notification Service": "Notification Service",
|
|
45
|
+
"Notifications": "Notifications",
|
|
46
|
+
"Offline Time": "Offline Time",
|
|
47
|
+
"Offline message": "Offline message",
|
|
48
|
+
"Offline time of Devices": "Offline time of Devices",
|
|
49
|
+
"Other Settings": "Other Settings",
|
|
50
|
+
"Overview of offline devices": "Overview of offline devices",
|
|
51
|
+
"Please choose": "Please choose",
|
|
52
|
+
"Please choose the Whatsapp instance": "Please choose the Whatsapp instance",
|
|
53
|
+
"Please choose the email instance": "Please choose the email instance",
|
|
54
|
+
"Please choose the jarvis instance": "Please choose the jarvis instance",
|
|
55
|
+
"Please choose the lovelace instance": "Please choose the lovelace instance",
|
|
56
|
+
"Please choose the pushover instance": "Please choose the pushover instance",
|
|
57
|
+
"Please choose the telegram instance": "Please choose the telegram instance",
|
|
58
|
+
"Please choose the Synochat instance": "Please choose the Synochat instance",
|
|
59
|
+
"Synochat Instance": "Synochat Instance",
|
|
60
|
+
"Enter the channelname for Synochat": "Enter the channelname for Synochat",
|
|
61
|
+
"Pushover Instance": "Pushover Instance",
|
|
62
|
+
"Recipient (optional)": "Recipient (optional)",
|
|
63
|
+
"Sat": "Sat",
|
|
64
|
+
"Send batterie message": "Send batterie message",
|
|
65
|
+
"Send offline message": "Send offline message",
|
|
66
|
+
"Send to (optional)": "Send to (optional)",
|
|
67
|
+
"Subject (optional)": "Subject (optional)",
|
|
68
|
+
"Sun": "Sun",
|
|
69
|
+
"Telegram Instance": "Telegram Instance",
|
|
70
|
+
"Thu": "Thu",
|
|
71
|
+
"Title (optional)": "Title (optional)",
|
|
72
|
+
"True State": "True State",
|
|
73
|
+
"Tue": "Tue",
|
|
74
|
+
"Update-Interval": "Update-Interval",
|
|
75
|
+
"Use the true state from quality state": "Use the true state from quality state",
|
|
76
|
+
"Use the true value of the signal strength, or it is converted to %": "Use the true value of the signal strength, Or it is converted to %",
|
|
77
|
+
"Wed": "Wed",
|
|
78
|
+
"Whatsapp Instance": "Whatsapp Instance",
|
|
79
|
+
"With confirmation": "With confirmation",
|
|
80
|
+
"device-watcher adapter settings": "Adapter settings for device-watcher",
|
|
81
|
+
"in minutes": "in minutes",
|
|
82
|
+
"in percent": "in percent",
|
|
83
|
+
"Add adapter name in notifcations": "Add adapter name in notifcations",
|
|
84
|
+
"Will add the adaptername from the device": "Will add the adaptername from the device",
|
|
85
|
+
"Adapter update message": "Adapter update message",
|
|
86
|
+
"Receive a message when an update for an adapter is available": "Receive a message when an update for an adapter is available",
|
|
87
|
+
"Device update message": "Device update message",
|
|
88
|
+
"Receive a message when an update for an device is available": "Receive a message when an update for an device is available",
|
|
89
|
+
"Overview of devices with update": "Overview of devices with update",
|
|
90
|
+
"Get a message with an overview all devices with update": "Get a message with an overview of all devices with update",
|
|
91
|
+
"Choose the day(s) where you want to get the overview of update devices:": "Choose the day(s) where you want to get the overview of update devices:",
|
|
92
|
+
"Other Notification Settings": "Other Notification Settings",
|
|
93
|
+
"Update datapoints directly": "Update datapoints directly",
|
|
94
|
+
"Update lists & counts which each statechange of devices": "Update lists & counts which each statechange of devices",
|
|
95
|
+
"Update lists & counts directly with each statechange of devices": "Update lists & counts directly with each statechange of devices",
|
|
96
|
+
"Overview of low battery devices": "Overview of low battery devices",
|
|
97
|
+
"Get a regular message with an overview all low battery devices": "Get a regular message with an overview all low battery devices",
|
|
98
|
+
"From what % battery is considered low": "From what % battery is considered low"
|
|
96
99
|
}
|
|
@@ -96,5 +96,8 @@
|
|
|
96
96
|
"Update the datapoints directly": "Actualizar los puntos de datos directamente",
|
|
97
97
|
"Update lists & counts which each statechange of devices": "Actualizar listas y recuentos en los que cada estado cambia de dispositivos",
|
|
98
98
|
"Update datapoints directly": "Actualizar puntos de datos directamente",
|
|
99
|
-
"Update lists & counts directly with each statechange of devices": "Actualice listas y conteos directamente con cada cambio de estado de los dispositivos"
|
|
99
|
+
"Update lists & counts directly with each statechange of devices": "Actualice listas y conteos directamente con cada cambio de estado de los dispositivos",
|
|
100
|
+
"Overview of low battery devices": "Descripción general de los dispositivos con batería baja",
|
|
101
|
+
"Get a regular message with an overview all low battery devices": "Reciba un mensaje regular con una descripción general de todos los dispositivos con batería baja",
|
|
102
|
+
"From what % battery is considered low": "A partir de qué % de batería se considera bajo"
|
|
100
103
|
}
|
|
@@ -96,5 +96,8 @@
|
|
|
96
96
|
"Update the datapoints directly": "Mettre à jour les points de données directement",
|
|
97
97
|
"Update lists & counts which each statechange of devices": "Mettre à jour les listes et compter chaque changement d'état des appareils",
|
|
98
98
|
"Update datapoints directly": "Mettre à jour directement les points de données",
|
|
99
|
-
"Update lists & counts directly with each statechange of devices": "Mettre à jour les listes et les décomptes directement à chaque changement d'état des appareils"
|
|
99
|
+
"Update lists & counts directly with each statechange of devices": "Mettre à jour les listes et les décomptes directement à chaque changement d'état des appareils",
|
|
100
|
+
"Overview of low battery devices": "Aperçu des appareils à batterie faible",
|
|
101
|
+
"Get a regular message with an overview all low battery devices": "Recevez un message régulier avec un aperçu de tous les appareils à batterie faible",
|
|
102
|
+
"From what % battery is considered low": "A partir de quel % la batterie est considérée comme faible"
|
|
100
103
|
}
|
|
@@ -96,5 +96,8 @@
|
|
|
96
96
|
"Update the datapoints directly": "Aggiorna direttamente i datapoint",
|
|
97
97
|
"Update lists & counts which each statechange of devices": "Aggiorna elenchi e conteggi che ogni stato cambia di dispositivi",
|
|
98
98
|
"Update datapoints directly": "Aggiorna direttamente i datapoint",
|
|
99
|
-
"Update lists & counts directly with each statechange of devices": "Aggiorna elenchi e conteggi direttamente con ogni cambio di stato dei dispositivi"
|
|
99
|
+
"Update lists & counts directly with each statechange of devices": "Aggiorna elenchi e conteggi direttamente con ogni cambio di stato dei dispositivi",
|
|
100
|
+
"Overview of low battery devices": "Panoramica dei dispositivi con batteria scarica",
|
|
101
|
+
"Get a regular message with an overview all low battery devices": "Ricevi un messaggio regolare con una panoramica di tutti i dispositivi con batteria scarica",
|
|
102
|
+
"From what % battery is considered low": "Da quale % la batteria è considerata scarica"
|
|
100
103
|
}
|
|
@@ -96,5 +96,8 @@
|
|
|
96
96
|
"Update the datapoints directly": "Werk de datapunten direct bij",
|
|
97
97
|
"Update lists & counts which each statechange of devices": "Update lijsten & tellingen die elke statusverandering van apparaten",
|
|
98
98
|
"Update datapoints directly": "Update datapunten direct",
|
|
99
|
-
"Update lists & counts directly with each statechange of devices": "Update lijsten en tellingen direct bij elke statusverandering van apparaten"
|
|
99
|
+
"Update lists & counts directly with each statechange of devices": "Update lijsten en tellingen direct bij elke statusverandering van apparaten",
|
|
100
|
+
"Overview of low battery devices": "Overzicht apparaten met bijna lege batterij",
|
|
101
|
+
"Get a regular message with an overview all low battery devices": "Ontvang regelmatig een bericht met een overzicht van alle bijna lege apparaten",
|
|
102
|
+
"From what % battery is considered low": "Van welk % batterij als laag wordt beschouwd"
|
|
100
103
|
}
|
|
@@ -96,5 +96,8 @@
|
|
|
96
96
|
"Update the datapoints directly": "Bezpośrednio aktualizuj punkty danych",
|
|
97
97
|
"Update lists & counts which each statechange of devices": "Aktualizuj listy i liczniki, które powodują każdą zmianę stanu urządzeń",
|
|
98
98
|
"Update datapoints directly": "Aktualizuj punkty danych bezpośrednio",
|
|
99
|
-
"Update lists & counts directly with each statechange of devices": "Aktualizuj listy i liczniki bezpośrednio przy każdej zmianie stanu urządzeń"
|
|
99
|
+
"Update lists & counts directly with each statechange of devices": "Aktualizuj listy i liczniki bezpośrednio przy każdej zmianie stanu urządzeń",
|
|
100
|
+
"Overview of low battery devices": "Przegląd urządzeń o niskim poziomie naładowania baterii",
|
|
101
|
+
"Get a regular message with an overview all low battery devices": "Otrzymuj regularne wiadomości z przeglądem wszystkich urządzeń o niskim poziomie baterii",
|
|
102
|
+
"From what % battery is considered low": "Od jakiego % baterii uważa się za niski"
|
|
100
103
|
}
|
|
@@ -96,5 +96,8 @@
|
|
|
96
96
|
"Update the datapoints directly": "Atualize os pontos de dados diretamente",
|
|
97
97
|
"Update lists & counts which each statechange of devices": "Listas de atualização e conta qual cada mudança de estado dos dispositivos",
|
|
98
98
|
"Update datapoints directly": "Atualizar pontos de dados diretamente",
|
|
99
|
-
"Update lists & counts directly with each statechange of devices": "Atualiza listas e contagens diretamente com cada mudança de estado dos dispositivos"
|
|
99
|
+
"Update lists & counts directly with each statechange of devices": "Atualiza listas e contagens diretamente com cada mudança de estado dos dispositivos",
|
|
100
|
+
"Overview of low battery devices": "Visão geral de dispositivos com bateria fraca",
|
|
101
|
+
"Get a regular message with an overview all low battery devices": "Receba uma mensagem regular com uma visão geral de todos os dispositivos com bateria fraca",
|
|
102
|
+
"From what % battery is considered low": "A partir de que % a bateria é considerada fraca"
|
|
100
103
|
}
|
|
@@ -96,5 +96,8 @@
|
|
|
96
96
|
"Update the datapoints directly": "Обновляйте точки данных напрямую",
|
|
97
97
|
"Update lists & counts which each statechange of devices": "Обновление списков и подсчетов при каждом изменении состояния устройств.",
|
|
98
98
|
"Update datapoints directly": "Обновляйте точки данных напрямую",
|
|
99
|
-
"Update lists & counts directly with each statechange of devices": "Обновляйте списки и счетчики непосредственно при каждом изменении состояния устройств."
|
|
99
|
+
"Update lists & counts directly with each statechange of devices": "Обновляйте списки и счетчики непосредственно при каждом изменении состояния устройств.",
|
|
100
|
+
"Overview of low battery devices": "Обзор устройств с низким зарядом батареи",
|
|
101
|
+
"Get a regular message with an overview all low battery devices": "Получайте регулярное сообщение с обзором всех устройств с низким зарядом батареи",
|
|
102
|
+
"From what % battery is considered low": "С какого % батарея считается разряженной"
|
|
100
103
|
}
|
|
@@ -96,5 +96,8 @@
|
|
|
96
96
|
"Update the datapoints directly": "Оновіть точки даних безпосередньо",
|
|
97
97
|
"Update lists & counts which each statechange of devices": "Оновлення списків і підрахунок кожної зміни стану пристроїв",
|
|
98
98
|
"Update datapoints directly": "Оновіть точки даних безпосередньо",
|
|
99
|
-
"Update lists & counts directly with each statechange of devices": "Оновлюйте списки та підрахунки безпосередньо з кожною зміною стану пристроїв"
|
|
99
|
+
"Update lists & counts directly with each statechange of devices": "Оновлюйте списки та підрахунки безпосередньо з кожною зміною стану пристроїв",
|
|
100
|
+
"Overview of low battery devices": "Огляд розряджених пристроїв",
|
|
101
|
+
"Get a regular message with an overview all low battery devices": "Отримуйте регулярне повідомлення з оглядом усіх пристроїв із розрядженим акумулятором",
|
|
102
|
+
"From what % battery is considered low": "Від якого % батарея вважається розрядженою"
|
|
100
103
|
}
|
|
@@ -96,5 +96,8 @@
|
|
|
96
96
|
"Update the datapoints directly": "直接更新数据点",
|
|
97
97
|
"Update lists & counts which each statechange of devices": "更新设备每次状态变化的列表和计数",
|
|
98
98
|
"Update datapoints directly": "直接更新数据点",
|
|
99
|
-
"Update lists & counts directly with each statechange of devices": "每次设备状态变化时直接更新列表和计数"
|
|
99
|
+
"Update lists & counts directly with each statechange of devices": "每次设备状态变化时直接更新列表和计数",
|
|
100
|
+
"Overview of low battery devices": "低电量设备概述",
|
|
101
|
+
"Get a regular message with an overview all low battery devices": "获取包含所有低电量设备概览的常规消息",
|
|
102
|
+
"From what % battery is considered low": "从什么百分比电池被认为是低"
|
|
100
103
|
}
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "device-watcher",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.2",
|
|
5
5
|
"news": {
|
|
6
|
+
"2.2.2": {
|
|
7
|
+
"en": "some translation added\ndatapoints will be written in intervall\nimprovements of lists\nsome other small improvements",
|
|
8
|
+
"de": "einige übersetzung hinzugefügt\ndatenpunkte werden in intervall geschrieben\nverbesserungen der listen\neinige andere kleine verbesserungen",
|
|
9
|
+
"ru": "некоторый перевод добавлен\nдата-точки будут написаны в интервале\nулучшения списков\nнекоторые другие небольшие улучшения",
|
|
10
|
+
"pt": "alguma tradução adicionada\ndatapoints serão escritos em intervalo\nmelhorias das listas\noutras pequenas melhorias",
|
|
11
|
+
"nl": "vertaling:\ndatapoints worden geschreven in intervall\nverbeteringen van lijsten\nandere kleine verbetering",
|
|
12
|
+
"fr": "une traduction ajoutée\nles points de données seront écrits en intervalles\naméliorations des listes\nd'autres petites améliorations",
|
|
13
|
+
"it": "qualche traduzione aggiunta\ni datapoint saranno scritti in intervallo\nmiglioramenti degli elenchi\nalcuni altri piccoli miglioramenti",
|
|
14
|
+
"es": "algo de traducción añadido\ndatapoints se escribirá en intervalol\nmejoras de las listas\nalgunas otras pequeñas mejoras",
|
|
15
|
+
"pl": "w tłumaczeniu dodano również nowe tłumaczenia\npunkty danych są zapisywane w interwałcie\npoprawa list\ndrobne ulepszenia",
|
|
16
|
+
"uk": "додано переклад\nдані будуть написані в інтервалі\nудосконалення переліків\nдеякі інші невеликі поліпшення",
|
|
17
|
+
"zh-cn": "一些翻译\n数据点将在相互间记录。\n改进名单\n其他一些小的改进"
|
|
18
|
+
},
|
|
6
19
|
"2.2.1": {
|
|
7
20
|
"en": "Innogy Smarthome added\nLists for each adapter are working again",
|
|
8
21
|
"de": "Innogy Smarthome hinzugefügt\nListen für jeden Adapter arbeiten wieder",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "Jeśli urządzenie jest offline, ustawia siłę sygnału do 0%\nJeśli urządzenie jest wycinane, ustawiono baterię do '- '\nwyremontowano drobne problemy w listach",
|
|
81
94
|
"uk": "Якщо пристрій вимкнено, встановлюється міцність сигналу на 0%\nЯкщо пристрій вимкнено, встановіть акумулятор до ' - '\nремонт деяких невеликих питань у переліках",
|
|
82
95
|
"zh-cn": "如果装置落空,信号强度达到0%\n如果装置不线,便将电池到该地。\n在名单中修理一些小型问题"
|
|
83
|
-
},
|
|
84
|
-
"2.0.0": {
|
|
85
|
-
"en": "added Lupusec, HS100 adapter, Zigbee2MQTT and MaxCube\nchanged name of Homematic to HM-RPC\nmade a completly makeover of the blacklist\nclean up the code and shorten some",
|
|
86
|
-
"de": "lupusec, HS100 Adapter, Zigbee2MQTT und MaxCube\ngeänderter Name von Homematic zu HM-RPC\naus einem kompletten makeover der blacklist\nden code reinigen und einige verkürzen",
|
|
87
|
-
"ru": "добавлено Lupusec, HS100 адаптер, Zigbee2MQTT и MaxCube\nизменено имя Homematic в HM-RPC\nсделал полный макияж черного списка\nочистить код и сократить некоторые",
|
|
88
|
-
"pt": "adicionado Lupusec, adaptador HS100, Zigbee2MQTT e MaxCube\nnome alterado de Homematic para HM-RPC\nfez uma reforma completa da lista negra\nlimpar o código e encurtar alguns",
|
|
89
|
-
"nl": "voegde Lupusec toe, HS100 adapter, Zigbee2MQT en MaxCube\nveranderde naam van Homema aan HM-RPC\n_\nruim de code op en verklein wat",
|
|
90
|
-
"fr": "lupusec, adaptateur HS100, Zigbee2MQTT et MaxCube\nchangement de nom de Homematic à HM-RPC\nfait un complet de la liste noire\nnettoyer le code et raccourcir certains",
|
|
91
|
-
"it": "aggiunto Lupusec, adattatore HS100, Zigbee2MQTT e MaxCube\ncambiato nome di Homematic a HM-RPC\nreso completo della lista nera\npulire il codice e accorciare alcuni",
|
|
92
|
-
"es": "añadido Lupusec, adaptador HS100, Zigbee2MQTT y MaxCube\ncambio de nombre de Homematic a HM-RPC\nhizo un cambio completly de la lista negra\nlimpiar el código y acortar algunos",
|
|
93
|
-
"pl": "lupusec, adapter HS100, Zigbee2MQTT i MaxCube\nzmienił nazwę Homematic na HM-RPC\nudało się to zrobić zupełnienie czarnej listy\nczyścił kod i skrócił niektóre z nich",
|
|
94
|
-
"uk": "додано Lupusec, HS100 адаптер, Zigbee2MQTT і MaxCube\nзмінено назву Homematic до HM-RPC\nвиготовлений комплетально макіяж чорного списку\nочистити код і скорочувати деякі",
|
|
95
|
-
"zh-cn": "加上Lupusec,HS100适应者,Zigbee2MQTT和MaxCube\n家庭名称改为HM-RPC\n填写黑名单\na. 守则的清理和缩短某些人"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
"channelSynochat": "",
|
|
309
309
|
"showAdapterNameinMsg": false,
|
|
310
310
|
"tableBlacklist": [],
|
|
311
|
-
"updateinterval":
|
|
311
|
+
"updateinterval": 10,
|
|
312
312
|
"ownDataEditor": [],
|
|
313
313
|
"checkSendDeviceUpgrade": false,
|
|
314
314
|
"checkSendUpgradeMsg": false,
|
package/main.js
CHANGED
|
@@ -68,6 +68,8 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
68
68
|
|
|
69
69
|
try {
|
|
70
70
|
this.listOnlyBattery = this.config.listOnlyBattery;
|
|
71
|
+
this.createOwnFolder = this.config.createOwnFolder;
|
|
72
|
+
this.createHtmlList = this.config.createHtmlList;
|
|
71
73
|
|
|
72
74
|
this.supAdapter = {
|
|
73
75
|
alexa2: this.config.alexa2Devices,
|
|
@@ -195,17 +197,13 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
195
197
|
}
|
|
196
198
|
|
|
197
199
|
//create and fill datapoints for each adapter if selected
|
|
198
|
-
if (this.
|
|
200
|
+
if (this.createOwnFolder) {
|
|
199
201
|
try {
|
|
200
202
|
for (const [id] of Object.entries(arrApart)) {
|
|
201
|
-
if (
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
this.log.debug(`Created datapoints for ${this.capitalize(id)}`);
|
|
206
|
-
}
|
|
207
|
-
} else {
|
|
208
|
-
return; // cancel run if unloaded was called.
|
|
203
|
+
if (this.supAdapter !== undefined && this.supAdapter[id]) {
|
|
204
|
+
await this.createDPsForEachAdapter(id);
|
|
205
|
+
if (this.createHtmlList) await this.createHtmlListDatapoints(id);
|
|
206
|
+
this.log.debug(`Created datapoints for ${this.capitalize(id)}`);
|
|
209
207
|
}
|
|
210
208
|
}
|
|
211
209
|
} catch (error) {
|
|
@@ -214,7 +212,7 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
214
212
|
}
|
|
215
213
|
|
|
216
214
|
// create HTML list
|
|
217
|
-
if (this.
|
|
215
|
+
if (this.createHtmlList) await this.createHtmlListDatapoints();
|
|
218
216
|
|
|
219
217
|
//read data first at start
|
|
220
218
|
await this.main();
|
|
@@ -249,7 +247,6 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
249
247
|
let oldLowBatState;
|
|
250
248
|
let contactData;
|
|
251
249
|
let oldStatus;
|
|
252
|
-
let oldSignalStrength;
|
|
253
250
|
|
|
254
251
|
for (const device of this.listAllDevicesRaw) {
|
|
255
252
|
// On statechange update available datapoint
|
|
@@ -257,10 +254,6 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
257
254
|
case device.UpdateDP:
|
|
258
255
|
if (state.val) {
|
|
259
256
|
device.Upgradable = state.val;
|
|
260
|
-
|
|
261
|
-
await this.createLists();
|
|
262
|
-
await this.writeDatapoints();
|
|
263
|
-
if (this.config.createOwnFolder) await this.createDataForEachAdapter(device.adapterID);
|
|
264
257
|
if (!this.blacklistNotify.includes(device.Path)) {
|
|
265
258
|
await this.sendDeviceUpdatesNotification(device.Device, device.Adapter);
|
|
266
259
|
}
|
|
@@ -268,13 +261,7 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
268
261
|
break;
|
|
269
262
|
|
|
270
263
|
case device.SignalStrengthDP:
|
|
271
|
-
oldSignalStrength = device.SignalStrength;
|
|
272
264
|
device.SignalStrength = await this.calculateSignalStrength(state, device.adapterID);
|
|
273
|
-
if (oldSignalStrength !== device.SignalStrength) {
|
|
274
|
-
await this.createLists();
|
|
275
|
-
await this.writeDatapoints();
|
|
276
|
-
if (this.config.createOwnFolder) await this.createDataForEachAdapter(device.adapterID);
|
|
277
|
-
}
|
|
278
265
|
break;
|
|
279
266
|
|
|
280
267
|
case device.batteryDP:
|
|
@@ -287,16 +274,9 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
287
274
|
device.LowBat = await this.setLowbatIndicator(state.val, undefined, device.LowBatDP);
|
|
288
275
|
|
|
289
276
|
if (device.LowBat && oldLowBatState !== device.LowBat) {
|
|
290
|
-
await this.createLists();
|
|
291
|
-
await this.writeDatapoints();
|
|
292
|
-
if (this.config.createOwnFolder) await this.createDataForEachAdapter(device.adapterID);
|
|
293
277
|
if (this.config.checkSendBatteryMsg && !this.blacklistNotify.includes(device.Path)) {
|
|
294
278
|
await this.sendLowBatNoticiation(device.Device, device.Adapter, device.Battery);
|
|
295
279
|
}
|
|
296
|
-
} else if (!device.LowBat && oldLowBatState !== device.LowBat) {
|
|
297
|
-
await this.createLists();
|
|
298
|
-
await this.writeDatapoints();
|
|
299
|
-
if (this.config.createOwnFolder) await this.createDataForEachAdapter(device.adapterID);
|
|
300
280
|
}
|
|
301
281
|
}
|
|
302
282
|
break;
|
|
@@ -310,16 +290,9 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
310
290
|
device.LowBat = await this.setLowbatIndicator(device.BatteryRaw, state.val, device.LowBatDP);
|
|
311
291
|
|
|
312
292
|
if (device.LowBat && oldLowBatState !== device.LowBat) {
|
|
313
|
-
await this.createLists();
|
|
314
|
-
await this.writeDatapoints();
|
|
315
|
-
if (this.config.createOwnFolder) await this.createDataForEachAdapter(device.adapterID);
|
|
316
293
|
if (this.config.checkSendBatteryMsg && !this.blacklistNotify.includes(device.Path)) {
|
|
317
294
|
await this.sendLowBatNoticiation(device.Device, device.Adapter, device.Battery);
|
|
318
295
|
}
|
|
319
|
-
} else if (!device.LowBat && oldLowBatState !== device.LowBat) {
|
|
320
|
-
await this.createLists();
|
|
321
|
-
await this.writeDatapoints();
|
|
322
|
-
if (this.config.createOwnFolder) await this.createDataForEachAdapter(device.adapterID);
|
|
323
296
|
}
|
|
324
297
|
}
|
|
325
298
|
|
|
@@ -344,11 +317,6 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
344
317
|
device.Status = contactData[1];
|
|
345
318
|
device.SignalStrength = contactData[2];
|
|
346
319
|
}
|
|
347
|
-
if (device.Status !== oldStatus) {
|
|
348
|
-
await this.createLists();
|
|
349
|
-
await this.writeDatapoints();
|
|
350
|
-
if (this.config.createOwnFolder) await this.createDataForEachAdapter(device.adapterID);
|
|
351
|
-
}
|
|
352
320
|
|
|
353
321
|
if (device.Status && oldStatus !== device.Status && this.config.checkSendOfflineMsg && !this.blacklistNotify.includes(device.Path)) {
|
|
354
322
|
await this.sendOfflineNotifications(device.Device, device.Adapter, device.Status, device.LastContact);
|
|
@@ -401,6 +369,18 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
401
369
|
const nextTimeout = this.config.updateinterval * 1000;
|
|
402
370
|
|
|
403
371
|
await this.checkLastContact();
|
|
372
|
+
await this.createLists();
|
|
373
|
+
await this.writeDatapoints();
|
|
374
|
+
|
|
375
|
+
if (this.createOwnFolder) {
|
|
376
|
+
for (const [id] of Object.entries(arrApart)) {
|
|
377
|
+
if (this.supAdapter !== undefined && this.supAdapter[id]) {
|
|
378
|
+
await this.createLists(id);
|
|
379
|
+
await this.writeDatapoints(id);
|
|
380
|
+
this.log.debug(`Created and filled data for ${this.capitalize(id)}`);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
404
384
|
|
|
405
385
|
// Clear existing timeout
|
|
406
386
|
if (this.refreshDataTimeout) {
|
|
@@ -434,7 +414,7 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
434
414
|
}
|
|
435
415
|
|
|
436
416
|
// fill datapoints for each adapter if selected
|
|
437
|
-
if (this.
|
|
417
|
+
if (this.createOwnFolder) {
|
|
438
418
|
try {
|
|
439
419
|
for (const [id] of Object.entries(arrApart)) {
|
|
440
420
|
if (this.supAdapter !== undefined && this.supAdapter[id]) {
|
|
@@ -969,8 +949,6 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
969
949
|
await this.sendOfflineNotifications(device.Device, device.Adapter, device.Status, device.LastContact);
|
|
970
950
|
}
|
|
971
951
|
}
|
|
972
|
-
await this.createLists();
|
|
973
|
-
await this.writeDatapoints();
|
|
974
952
|
}
|
|
975
953
|
|
|
976
954
|
/**
|
|
@@ -1303,11 +1281,6 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
1303
1281
|
|
|
1304
1282
|
// Count how many devices has update available
|
|
1305
1283
|
this.upgradableDevicesCount = this.upgradableList.length;
|
|
1306
|
-
|
|
1307
|
-
// raws
|
|
1308
|
-
|
|
1309
|
-
// Count how many devcies are offline
|
|
1310
|
-
this.offlineDevicesCountRaw = this.offlineDevicesRaw.length;
|
|
1311
1284
|
}
|
|
1312
1285
|
|
|
1313
1286
|
/**
|
|
@@ -1322,10 +1295,8 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
1322
1295
|
if (device.adapterID.includes(adptName)) {
|
|
1323
1296
|
// list device only if selected adapter matched with device
|
|
1324
1297
|
await this.createLists(adptName);
|
|
1325
|
-
await this.writeDatapoints(adptName);
|
|
1326
1298
|
}
|
|
1327
1299
|
}
|
|
1328
|
-
|
|
1329
1300
|
await this.writeDatapoints(adptName); // fill the datapoints
|
|
1330
1301
|
} catch (error) {
|
|
1331
1302
|
this.errorReporting('[createDataForEachAdapter]', error);
|
|
@@ -1836,7 +1807,7 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
1836
1807
|
});
|
|
1837
1808
|
|
|
1838
1809
|
//write HTML list
|
|
1839
|
-
if (this.
|
|
1810
|
+
if (this.createHtmlList) {
|
|
1840
1811
|
await this.setStateAsync(`${dpSubFolder}linkQualityListHTML`, {
|
|
1841
1812
|
val: await this.creatLinkQualityListHTML(this.linkQualityDevices, this.linkQualityCount),
|
|
1842
1813
|
ack: true,
|