iobroker.pv-notifications 1.2.14 → 1.2.15
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 +3 -0
- package/io-package.json +14 -14
- package/main.js +13 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -344,6 +344,9 @@ sadam6752@gmail.com
|
|
|
344
344
|
### **WORK IN PROGRESS**
|
|
345
345
|
-->
|
|
346
346
|
|
|
347
|
+
### 1.2.15 (2026-03-08)
|
|
348
|
+
* (ADD) Added separator lines to battery full/empty and intermediate messages for improved readability
|
|
349
|
+
|
|
347
350
|
### 1.2.14 (2026-03-06)
|
|
348
351
|
* (FIX) Fixed intermediate message formatting: Removed extra line break before weather data (weather today appears directly below separator)
|
|
349
352
|
|
package/io-package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "pv-notifications",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.15",
|
|
5
5
|
"titleLang": {
|
|
6
6
|
"en": "PV Notifications",
|
|
7
7
|
"de": "PV-Benachrichtigungen",
|
|
@@ -29,6 +29,19 @@
|
|
|
29
29
|
"zh-cn": "发送 Telegram 通知用于 PV 电池状态"
|
|
30
30
|
},
|
|
31
31
|
"news": {
|
|
32
|
+
"1.2.15": {
|
|
33
|
+
"en": "Added separator lines to battery full/empty and intermediate messages for improved readability",
|
|
34
|
+
"de": "Trennlinien zu Batterie VOLL/LEER und Intermediate-Nachrichten für bessere Lesbarkeit hinzugefügt",
|
|
35
|
+
"ru": "Добавлены разделительные линии к сообщениям о полной/пустой батарее и промежуточным сообщениям для улучшения читаемости",
|
|
36
|
+
"pt": "Adicionadas linhas separadoras às mensagens de bateria cheia/vazia e intermediárias para melhor legibilidade",
|
|
37
|
+
"nl": "Scheidinglijnen toegevoegd aan batterij vol/leeg en intermediate-berichten voor verbeterde leesbaarheid",
|
|
38
|
+
"fr": "Ajout de lignes séparatrices aux messages batterie pleine/vide et intermédiaires pour une meilleure lisibilité",
|
|
39
|
+
"it": "Aggiunte linee separatrici ai messaggi di batteria piena/vuota e intermedi per una migliore leggibilità",
|
|
40
|
+
"es": "Agregadas líneas separadoras a los mensajes de batería llena/vacía e intermedios para mejorar la legibilidad",
|
|
41
|
+
"pl": "Dodano linie oddzielające do wiadomości o pełnej/pustej baterii i pośrednich dla lepszej czytelności",
|
|
42
|
+
"uk": "Додано розділювальні лінії до повідомлень про повну/порожню батарею та проміжних для покращення читабельності",
|
|
43
|
+
"zh-cn": "已添加分隔线到电池满/空和中间消息以提高可读性"
|
|
44
|
+
},
|
|
32
45
|
"1.2.14": {
|
|
33
46
|
"en": "Fixed intermediate message formatting: Removed extra line break before weather data",
|
|
34
47
|
"de": "Intermediate-Nachricht formatiert: Zusätzlichen Zeilenumbruch vor Wetterdaten entfernt",
|
|
@@ -106,19 +119,6 @@
|
|
|
106
119
|
"pl": "Naprawiono problemy z formatowaniem ESLint (75 błędów prettier/prettier automatycznie naprawionych za pomocą lint:fix)",
|
|
107
120
|
"uk": "Виправлено проблеми з форматуванням ESLint (75 помилок prettier/prettier автоматично виправлено за допомогою lint:fix)",
|
|
108
121
|
"zh-cn": "已修复 ESLint 格式化问题(75 个 prettier/prettier 错误已通过 lint:fix 自动修复)"
|
|
109
|
-
},
|
|
110
|
-
"1.2.8": {
|
|
111
|
-
"en": "Fixed duplicate news entry in io-package.json (E1036/E2005 fix)",
|
|
112
|
-
"de": "Doppelten news-Eintrag in io-package.json behoben (E1036/E2005 Fix)",
|
|
113
|
-
"ru": "Исправлена дублирующаяся запись news в io-package.json (исправление E1036/E2005)",
|
|
114
|
-
"pt": "Corrigida entrada duplicada de notícias no io-package.json (correção E1036/E2005)",
|
|
115
|
-
"nl": "Dubbele nieuwsvermelding in io-package.json hersteld (E1036/E2005 fix)",
|
|
116
|
-
"fr": "Correction d'une entrée de nouvelles en double dans io-package.json (correction E1036/E2005)",
|
|
117
|
-
"it": "Corretta voce duplicata delle notizie in io-package.json (correzione E1036/E2005)",
|
|
118
|
-
"es": "Entrada de noticias duplicada corregida en io-package.json (corrección E1036/E2005)",
|
|
119
|
-
"pl": "Naprawiono podwójny wpis wiadomości w io-package.json (poprawka E1036/E2005)",
|
|
120
|
-
"uk": "Виправлено подвійний запис новин у io-package.json (виправлення E1036/E2005)",
|
|
121
|
-
"zh-cn": "已修复 io-package.json 中的重复新闻条目(E1036/E2005 修复)"
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
"authors": [
|
package/main.js
CHANGED
|
@@ -888,12 +888,14 @@ class PvNotifications extends utils.Adapter {
|
|
|
888
888
|
const feedIn = feedInState && feedInState.val !== null ? feedInState.val : 0;
|
|
889
889
|
const consumption = consumptionState && consumptionState.val !== null ? consumptionState.val : 0;
|
|
890
890
|
|
|
891
|
-
|
|
891
|
+
const separator = '\n━━━━━━━━━━━━━━━━━━━━━━';
|
|
892
|
+
|
|
893
|
+
let message = `🔋 *${this.translate('Battery full')}* (${soc}%)${separator}
|
|
892
894
|
|
|
893
895
|
⚡ ${this.translate('Current production')}: ${this.round(power)} W
|
|
894
896
|
🏠 ${this.translate('Current consumption')}: ${this.round(consumption)} W
|
|
895
897
|
☀️ ${this.translate('Production today')}: ${this.round(totalProd)} kWh
|
|
896
|
-
🔌 ${this.translate('Feed-in today')}: ${this.round(Math.abs(feedIn), 0)} kWh`;
|
|
898
|
+
🔌 ${this.translate('Feed-in today')}: ${this.round(Math.abs(feedIn), 0)} kWh${separator}`;
|
|
897
899
|
|
|
898
900
|
// Wetter-Prognose hinzufügen (heute und morgen)
|
|
899
901
|
const weatherConfigured =
|
|
@@ -963,7 +965,7 @@ class PvNotifications extends utils.Adapter {
|
|
|
963
965
|
|
|
964
966
|
// Empfehlungen bei hoher Produktion
|
|
965
967
|
if (power > this.config.highProduction) {
|
|
966
|
-
message +=
|
|
968
|
+
message += `${separator}\n🚗 ${this.translate('Now ideal for electric car washing machine dishwasher')}`;
|
|
967
969
|
}
|
|
968
970
|
|
|
969
971
|
return message;
|
|
@@ -982,10 +984,12 @@ class PvNotifications extends utils.Adapter {
|
|
|
982
984
|
const gridPower = gridPowerState && gridPowerState.val !== null ? gridPowerState.val : 0;
|
|
983
985
|
const consumption = consumptionState && consumptionState.val !== null ? consumptionState.val : 0;
|
|
984
986
|
|
|
985
|
-
|
|
987
|
+
const separator = '\n━━━━━━━━━━━━━━━━━━━━━━';
|
|
988
|
+
|
|
989
|
+
let message = `🔋 *${this.translate('Battery empty')}* (${soc}%)${separator}
|
|
986
990
|
|
|
987
991
|
⚠️ ${this.translate('Grid consumption today')}: ${this.round(gridPower)} W
|
|
988
|
-
🏠 ${this.translate('Consumption today')}: ${this.round(consumption)} W`;
|
|
992
|
+
🏠 ${this.translate('Consumption today')}: ${this.round(consumption)} W${separator}`;
|
|
989
993
|
|
|
990
994
|
// Wetter-Prognose hinzufügen (heute und morgen)
|
|
991
995
|
const weatherConfigured =
|
|
@@ -1055,7 +1059,7 @@ class PvNotifications extends utils.Adapter {
|
|
|
1055
1059
|
|
|
1056
1060
|
// Spartipps
|
|
1057
1061
|
if (consumption > this.config.highConsumption) {
|
|
1058
|
-
message +=
|
|
1062
|
+
message += `${separator}\n💰 ${this.translate('High consumption Turn off unnecessary devices')}`;
|
|
1059
1063
|
}
|
|
1060
1064
|
|
|
1061
1065
|
return message;
|
|
@@ -1197,6 +1201,8 @@ ${statusText}
|
|
|
1197
1201
|
}
|
|
1198
1202
|
}
|
|
1199
1203
|
|
|
1204
|
+
message += '\n━━━━━━━━━━━━━━━━━━━━━━';
|
|
1205
|
+
|
|
1200
1206
|
return message;
|
|
1201
1207
|
}
|
|
1202
1208
|
|
|
@@ -1373,7 +1379,7 @@ ${statusText}
|
|
|
1373
1379
|
━━━━━━━━━━━━━━━━━━━━━━
|
|
1374
1380
|
🔋 ${this.translate('Full cycles last month')}: ${this.stats.lastMonthFullCycles}
|
|
1375
1381
|
📉 ${this.translate('Empty cycles last month')}: ${this.stats.lastMonthEmptyCycles}
|
|
1376
|
-
|
|
1382
|
+
���━━━━━━━━━━━━━━━━━━━━━
|
|
1377
1383
|
☀️ ${this.translate('Production')}: ${totalProd} kWh
|
|
1378
1384
|
🏠 ${this.translate('Own consumption')}: ${selfConsumption} kWh (${selfConsumptionRate}%)
|
|
1379
1385
|
🔌 ${this.translate('Feed-in')}: ${feedIn} kWh
|