iobroker.pv-notifications 1.2.0 → 1.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 CHANGED
@@ -339,14 +339,17 @@ sadam6752@gmail.com
339
339
  ### **WORK IN PROGRESS**
340
340
  -->
341
341
 
342
- ### 1.2.0 (2026-03-01)
342
+ ### 1.2.2 (2026-03-02)
343
343
 
344
- * (ADD) common.news section added to io-package.json for repository checker (E136 fix)
345
- * (ADD) News for versions 1.1.7, 1.1.8, 1.1.9 in multiple languages
344
+ * (FIX) Weekly statistics: Now uses weeklyProduction/weeklyConsumption/weeklyFeedIn/weeklyGridPower fields instead of daily values
345
+
346
+ ### 1.2.1 (2026-03-01)
346
347
 
347
- ### 1.1.9 (2026-03-01)
348
+ * (FIX) Added size attributes (xs, xl) for night mode and quiet mode fields in admin UI (E5507 fix)
348
349
 
349
- * (ADD) Weather today added to battery full (100%) and empty (0%) messages
350
+ ### 1.2.0 (2026-03-01)
351
+
352
+ * (ADD) common.news section added to io-package.json for repository checker (E136 fix)
350
353
 
351
354
  ### 1.1.1 (2026-03-01)
352
355
 
@@ -248,45 +248,55 @@
248
248
  "nightModeEnabled": {
249
249
  "type": "checkbox",
250
250
  "label": "label_nightModeEnabled",
251
+ "xs": 12,
251
252
  "sm": 4,
252
253
  "md": 4,
253
254
  "lg": 4,
255
+ "xl": 4,
254
256
  "default": true,
255
257
  "tooltip": "tooltip_nightModeEnabled"
256
258
  },
257
259
  "nightModeStart": {
258
260
  "type": "text",
259
261
  "label": "label_nightModeStart",
262
+ "xs": 12,
260
263
  "sm": 3,
261
264
  "md": 3,
262
265
  "lg": 3,
266
+ "xl": 3,
263
267
  "default": "23:00",
264
268
  "tooltip": "tooltip_nightModeStart"
265
269
  },
266
270
  "nightModeEnd": {
267
271
  "type": "text",
268
272
  "label": "label_nightModeEnd",
273
+ "xs": 12,
269
274
  "sm": 3,
270
275
  "md": 3,
271
276
  "lg": 3,
277
+ "xl": 3,
272
278
  "default": "06:00",
273
279
  "tooltip": "tooltip_nightModeEnd"
274
280
  },
275
281
  "nightModeIgnoreEmpty": {
276
282
  "type": "checkbox",
277
283
  "label": "label_nightModeIgnoreEmpty",
284
+ "xs": 12,
278
285
  "sm": 12,
279
286
  "md": 12,
280
287
  "lg": 12,
288
+ "xl": 12,
281
289
  "default": true,
282
290
  "tooltip": "tooltip_nightModeIgnoreEmpty"
283
291
  },
284
292
  "quietModeEnabled": {
285
293
  "type": "checkbox",
286
294
  "label": "label_quietModeEnabled",
295
+ "xs": 12,
287
296
  "sm": 4,
288
297
  "md": 4,
289
298
  "lg": 4,
299
+ "xl": 4,
290
300
  "default": false,
291
301
  "tooltip": "tooltip_quietModeEnabled"
292
302
  },
package/io-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "pv-notifications",
4
- "version": "1.2.0",
4
+ "version": "1.2.2",
5
5
  "titleLang": {
6
6
  "en": "PV Notifications",
7
7
  "de": "PV-Benachrichtigungen",
@@ -29,6 +29,21 @@
29
29
  "zh-cn": "发送 Telegram 通知用于 PV 电池状态"
30
30
  },
31
31
  "news": {
32
+ "1.2.2": {
33
+ "en": "Fixed weekly statistics: Now uses weeklyProduction/weeklyConsumption/weeklyFeedIn/weeklyGridPower fields instead of daily values",
34
+ "de": "Wochenstatistik fixiert: Verwendet jetzt weeklyProduction/weeklyConsumption/weeklyFeedIn/weeklyGridPower Felder statt Tageswerten",
35
+ "ru": "Исправлена недельная статистика: теперь используются поля weeklyProduction/weeklyConsumption/weeklyFeedIn/weeklyGridPower вместо дневных значений"
36
+ },
37
+ "1.2.1": {
38
+ "en": "Added size attributes (xs, xl) for night mode and quiet mode fields in admin UI",
39
+ "de": "Größenattribute (xs, xl) für Nachtmodus und Ruhemodus-Felder im Admin-UI hinzugefügt",
40
+ "ru": "Добавлены атрибуты размеров (xs, xl) для полей ночного режима и тихого режима в админ-интерфейсе"
41
+ },
42
+ "1.2.0": {
43
+ "en": "Added common.news section for repository checker (E136 fix)",
44
+ "de": "common.news Sektion für Repository Checker hinzugefügt (E136 Fix)",
45
+ "ru": "Добавлен раздел common.news для проверки репозитория (исправление E136)"
46
+ },
32
47
  "1.1.9": {
33
48
  "en": "Weather today added to battery full (100%) and empty (0%) messages",
34
49
  "de": "Wetter heute zu Batterie VOLL (100%) und LEER (0%) Nachrichten hinzugefügt",
@@ -195,7 +210,10 @@
195
210
  "monthlyProduction": "",
196
211
  "monthlyConsumption": "",
197
212
  "monthlyFeedIn": "",
198
- "monthlyGridPower": ""
213
+ "monthlyGridPower": "",
214
+ "weatherEnabled": true,
215
+ "weatherInIntermediate": true,
216
+ "weatherInDailyStats": true
199
217
  },
200
218
  "objects": [
201
219
  {
package/main.js CHANGED
@@ -1412,15 +1412,17 @@ ${statusText}`;
1412
1412
  this.log.info('Auto-saving weekly statistics (Sunday 23:55, before sourceanalytix reset)');
1413
1413
 
1414
1414
  // Aktuelle Daten aus externen States lesen (direkter Zugriff)
1415
- const totalProd = await this.getForeignStateAsync(this.config.totalProduction);
1416
- const consumption = await this.getForeignStateAsync(this.config.consumption);
1417
- const feedIn = await this.getForeignStateAsync(this.config.feedIn);
1418
- const gridPower = await this.getForeignStateAsync(this.config.gridPower);
1419
-
1420
- this.stats.lastWeekProduction = totalProd && totalProd.val !== null ? totalProd.val : 0;
1421
- this.stats.lastWeekConsumption = consumption && consumption.val !== null ? consumption.val : 0;
1422
- this.stats.lastWeekFeedIn = feedIn && feedIn.val !== null ? feedIn.val : 0;
1423
- this.stats.lastWeekGridPower = gridPower && gridPower.val !== null ? gridPower.val : 0;
1415
+ // WICHTIG: weeklyProduction/weeklyConsumption/etc. verwenden (sourceanalytix Wochenwerte)
1416
+ // NICHT totalProduction/consumption/etc. (das sind Tageswerte!)
1417
+ const weeklyProd = await this.getForeignStateAsync(this.config.weeklyProduction);
1418
+ const weeklyConsumption = await this.getForeignStateAsync(this.config.weeklyConsumption);
1419
+ const weeklyFeedIn = await this.getForeignStateAsync(this.config.weeklyFeedIn);
1420
+ const weeklyGridPower = await this.getForeignStateAsync(this.config.weeklyGridPower);
1421
+
1422
+ this.stats.lastWeekProduction = weeklyProd && weeklyProd.val !== null ? weeklyProd.val : 0;
1423
+ this.stats.lastWeekConsumption = weeklyConsumption && weeklyConsumption.val !== null ? weeklyConsumption.val : 0;
1424
+ this.stats.lastWeekFeedIn = weeklyFeedIn && weeklyFeedIn.val !== null ? weeklyFeedIn.val : 0;
1425
+ this.stats.lastWeekGridPower = weeklyGridPower && weeklyGridPower.val !== null ? weeklyGridPower.val : 0;
1424
1426
  this.stats.lastWeekFullCycles = this.stats.weekFullCycles;
1425
1427
  this.stats.lastWeekEmptyCycles = this.stats.weekEmptyCycles;
1426
1428
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.pv-notifications",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "PV-Anlage Batterie-Status Telegram Benachrichtigungen",
5
5
  "author": {
6
6
  "name": "Alex1808 via LLM: Qwen",