iobroker.sprinklecontrol 1.0.6 → 1.0.8

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/io-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "sprinklecontrol",
4
- "version": "1.0.6",
4
+ "version": "1.0.8",
5
5
  "titleLang": {
6
6
  "en": "Sprinkler Control",
7
7
  "de": "Sprinklersteuerung",
@@ -19,6 +19,32 @@
19
19
  "Dirk Peter <dirk.peter@freenet.de>"
20
20
  ],
21
21
  "news": {
22
+ "1.0.8": {
23
+ "en": "Fixed error in \"Command without response\"\nWater Pressure Control Revised\nioBroker-Bot [E6004], [W1127], [W1133], [W1134], [S6022] completed",
24
+ "de": "Fehler behoben in \"Befehl ohne Antwort\"\nWasserdruckregelung überarbeitet\nioBroker-Bot [E6004], [W1127], [W1133], [W1134], [S6022] abgeschlossen",
25
+ "ru": "Исправленная ошибка в «Команда без ответа»\nКонтроль давления воды пересмотрен\nioBroker-Bot [E6004], [W1127], [W1133], [W1134], [S6022]",
26
+ "pt": "Erro corrigido em \"Comando sem resposta\"\nControlo da pressão da água revisto\nioBroker-Bot [E6004], [W1127], [W1133], [W1134], [S6022] concluído",
27
+ "nl": "Vaste fout in \"Command zonder respons\"\nWaterdrukregeling herzien\nioBroker-Bot [E6004], [W1127], [W1133], [W1134], [S6022] voltooid",
28
+ "fr": "Erreur corrigée dans \"Commande sans réponse\"\nContrôle de la pression d'eau révisé\nioBroker-Bot [E6004], [W1127], [W1133], [W1134], [S6022] complété",
29
+ "it": "Errore fisso in \"Comando senza risposta\"\nControllo della pressione dell'acqua\nioBroker-Bot [E6004], [W1127], [W1133], [W1134], [S6022] completato",
30
+ "es": "Error fijo en \"Command sin respuesta\"\nControl de la presión del agua revisado\nioBroker-Bot [E6004], [W1127], [W1133], [W1134], [S6022] completado",
31
+ "pl": "Naprawiono błąd w \"Polecenie bez odpowiedzi\"\nRegulacja ciśnienia wody\njoBroker- Bot [E6004], [W1127], [W1133], [W1134], [S6022] zakończone",
32
+ "uk": "Виправлена помилка в \"Command без відповіді\"\nКонтроль тиску води\nioBroker-Bot [E6004], [W1127], [W1134], [S6022] завершено",
33
+ "zh-cn": "\"无回复命令\"中的固定错误\n水压控制修订\nioBroker-Bot [E6004], [W1127], [W1133], [W1134], [S6022] 完成"
34
+ },
35
+ "1.0.7": {
36
+ "en": "Added pressure monitoring.",
37
+ "de": "Drucküberwachung hinzugefügt.",
38
+ "ru": "Добавлен мониторинг давления.",
39
+ "pt": "Aumentou a monitorização da pressão.",
40
+ "nl": "Toegevoegde drukbewaking.",
41
+ "fr": "Ajout de la surveillance de la pression.",
42
+ "it": "Aggiunto monitoraggio della pressione.",
43
+ "es": "Añadido control de presión.",
44
+ "pl": "Dodano monitorowanie ciśnienia.",
45
+ "uk": "Додано контроль тиску.",
46
+ "zh-cn": "增加了压力监测."
47
+ },
22
48
  "1.0.6": {
23
49
  "en": "Cistern Control Optimized\nTranslation revised",
24
50
  "de": "Zisternensteuerung optimiert\nÜbersetzung überarbeitet",
@@ -83,32 +109,6 @@
83
109
  "pl": "Dodano czasy zakazu nawadniania",
84
110
  "uk": "Додані часи для поливу заборони",
85
111
  "zh-cn": "灌溉禁令增加的时间"
86
- },
87
- "1.0.1": {
88
- "en": "Add Homematic ON_TIME\nAdapter configuration revised\nioBroker-Bot [E4041], [E4043] completed",
89
- "de": "Homematic ON TIME hinzufügen\nAdapterkonfiguration überarbeitet\nioBroker-Bot [E4041], [E4043] abgeschlossen",
90
- "ru": "Добавить Homematic on time\nПересмотренная конфигурация адаптера\nioBroker-Bot [E4041], [E4043]",
91
- "pt": "Adicionar tempo de on metragem homemática\nA configuração do adaptador foi revista\nioBroker-Bot [E4041], [E4043] completado",
92
- "nl": "Homematisch ON TIME toevoegen\nAdapterconfiguratie herzien\nioBroker-Bot [E4041], [E4043] voltooid",
93
- "fr": "Ajouter Homematic ON TIME\nConfiguration de l'adaptateur révisée\nioBroker-Bot [E4041], [E4043] terminé",
94
- "it": "Aggiungi Homematic ON TIME\nConfigurazione adattatore revisionata\nioBroker-Bot [E4041], [E4043] completato",
95
- "es": "Añadir Homematic ON TIME\nAjuste revisado de la configuración del adaptador\nioBroker-Bot [E4041], [E4043] completado",
96
- "pl": "Dodaj homematic on _ time\nZmieniona konfiguracja adaptera\njoBroker- Bot [E4041], [E4043] ukończone",
97
- "uk": "Додати Homematic ON TIME\nПереглянуто налаштування адаптера\nioBroker-Bot [E4041], [E4043] завершено",
98
- "zh-cn": "添加自定义 ON TIME\n修改适应器配置\nioBroker-Bot [E4041], [E4043] 完成"
99
- },
100
- "1.0.0": {
101
- "en": "Adapter redesign => Be sure to check your configuration\nAdaptation to “dasWeather” >= 4.0\nFix npm publish\ndependencies updated\nupdate dependabot",
102
- "de": "Adapter redesign => Überprüfen Sie Ihre Konfiguration\nAnpassung an „dasWeather“ >= 4.0\nNpm veröffentlichen\naktualisierte abhängigkeiten\nupdate abhängigabot",
103
- "ru": "Адаптивный редизайн = Обязательно проверьте свою конфигурацию\nАдаптация к «dasWeather» 4.0\nИздательство Fix npm\nобновленные зависимости\nобновление dependabot",
104
- "pt": "Redesenho do adaptador => Certifique-se de verificar sua configuração\nAdaptação ao “dasWeather” >= 4.0\nCorrigir a publicação do npm\ndependências atualizadas\nupdate dependebot",
105
- "nl": "Herontwerp van de adapter => Controleer zeker uw configuratie\nAanpassing aan het weer 4.0\nFix npm publiceren\nafhankelijkheden bijgewerkt\nupdate dependabot",
106
- "fr": "Remaniement de l'adaptateur => Vérifiez votre configuration\nAdaptation à la température de l'air >= 4,0\nCorrection de npm publier\ndépendances mises à jour\nmise à jour de dermabot",
107
- "it": "Redesign adattatore = > Assicurati di controllare la configurazione\nAdattamento a “dasWeather” >= 4.0\nFisso npm pubblicazione\ndipendenze aggiornate\naggiornamento dipendeabot",
108
- "es": "Adaptador de rediseño = confianza Asegúrese de comprobar su configuración\nAdaptación a “dasWeather” 4.0\nCorrección npm publicar\ndependencias actualizadas\nactualización dependabot",
109
- "pl": "Przeprojektowanie adaptera = > Sprawdź konfigurację\nAdaptacja do \"dasWeather\" > = 4. 0\nNapraw publikację npm\nzaktualizowane zależności\naktualizacja zależna",
110
- "uk": "Редизайн адаптера => Обов'язково перевірте налаштування\nАдаптація до \"dasWeather\" >= 4.8 км\nВиправлення npm опублікування\nоновлені залежності\nоновлення залежності",
111
- "zh-cn": "适应器的重新设计 请检查您的配置\n适应“DasWeather”_________________________ 4.0 (单位:百万美元)\n修复 npm 发布\n更新依赖关系\n更新依赖保护"
112
112
  }
113
113
  },
114
114
  "desc": {
@@ -171,8 +171,8 @@
171
171
  "maximumParallelValves": "5",
172
172
  "switchingDistance": "0.5",
173
173
  "pressureRelief": false,
174
- "pumpSelection": "mainPump",
175
- "triggerMainPump": "hm-rpc.0.MEQ1234567.1.STATE",
174
+ "pumpSelection": "noPump",
175
+ "triggerMainPump": "",
176
176
  "triggerMainPumpPower": "2000",
177
177
  "mainPumpLeadTime": "1",
178
178
  "triggerCisternPump": "",
@@ -193,14 +193,19 @@
193
193
  "startOfInterruption": "10:00",
194
194
  "endOfInterruption": "18:00",
195
195
  "publicWeekend": true,
196
+ "publicWeekend2": true,
196
197
  "weekEndLiving": "07:30",
197
198
  "publicHolidays": false,
199
+ "publicHolidays2": false,
198
200
  "publicHolInstance": "",
199
201
  "latitude": "",
200
202
  "longitude": "",
203
+ "sensorPressure": "",
204
+ "minimumPressure": "2.0",
201
205
  "sensorOutsideTemperature": "",
202
206
  "sensorOutsideHumidity": "",
203
207
  "sensorWindSpeed": "",
208
+ "unitOfWindSpeed": "km/h",
204
209
  "sensorBrightness": "",
205
210
  "sensorRainfall": "",
206
211
  "switchingBehavior": "noResponse",
@@ -294,7 +299,7 @@
294
299
  "_id": "evaporation.ETpCurrent",
295
300
  "type": "state",
296
301
  "common": {
297
- "role": "indicator",
302
+ "role": "value",
298
303
  "name": "Calculation of the current pot. Evapotranspiration",
299
304
  "desc": {
300
305
  "en": "Calculation of the current pot. Evapotranspiration",
@@ -321,7 +326,7 @@
321
326
  "_id": "evaporation.ETpToday",
322
327
  "type": "state",
323
328
  "common": {
324
- "role": "indicator",
329
+ "role": "value",
325
330
  "name": "today's pot. Evapotranspiration",
326
331
  "desc": {
327
332
  "en": "today's pot. Evapotranspiration",
@@ -348,7 +353,7 @@
348
353
  "_id": "evaporation.ETpYesterday",
349
354
  "type": "state",
350
355
  "common": {
351
- "role": "indicator",
356
+ "role": "value",
352
357
  "name": "yesterday's pot. Evapotranspiration",
353
358
  "desc": {
354
359
  "en": "yesterday's pot. Evapotranspiration",
@@ -375,7 +380,7 @@
375
380
  "_id": "evaporation.dailyHighTemp",
376
381
  "type": "state",
377
382
  "common": {
378
- "role": "indicator",
383
+ "role": "value",
379
384
  "name": "Daily High Temperature",
380
385
  "desc": {
381
386
  "en": "Daily high temperature",
@@ -465,10 +470,6 @@
465
470
  "zh-cn": "自动或手动控制喷头"
466
471
  },
467
472
  "type": "boolean",
468
- "states": {
469
- "false": "off",
470
- "true": "Auto"
471
- },
472
473
  "read": true,
473
474
  "write": true,
474
475
  "def": true
@@ -495,7 +496,7 @@
495
496
  "zh-cn": "立即启动灌溉过程"
496
497
  },
497
498
  "type": "boolean",
498
- "read": true,
499
+ "read": false,
499
500
  "write": true,
500
501
  "def": false
501
502
  },
@@ -505,7 +506,7 @@
505
506
  "_id": "control.parallelOfMax",
506
507
  "type": "state",
507
508
  "common": {
508
- "role": "indicator",
509
+ "role": "text",
509
510
  "name": "parallel of max Sprinklers",
510
511
  "desc": {
511
512
  "en": "Number of sprinklers that are currently running in parallel",
@@ -531,7 +532,7 @@
531
532
  "_id": "control.restFlow",
532
533
  "type": "state",
533
534
  "common": {
534
- "role": "indicator",
535
+ "role": "text",
535
536
  "name": "rest Flow of Pump",
536
537
  "desc": {
537
538
  "en": "Rest flow of the pump in l/h",
@@ -578,7 +579,7 @@
578
579
  "_id": "info.nextAutoStart",
579
580
  "type": "state",
580
581
  "common": {
581
- "role": "indicator",
582
+ "role": "text",
582
583
  "name": "Next automatic start of the sprinklers",
583
584
  "desc": {
584
585
  "en": "Next automatic start of the sprinklers",
@@ -604,7 +605,7 @@
604
605
  "_id": "info.rainToday",
605
606
  "type": "state",
606
607
  "common": {
607
- "role": "indicator",
608
+ "role": "value",
608
609
  "name": "Amount of rain today",
609
610
  "desc": {
610
611
  "en": "Amount of rain today",
@@ -631,7 +632,7 @@
631
632
  "_id": "info.rainTomorrow",
632
633
  "type": "state",
633
634
  "common": {
634
- "role": "indicator",
635
+ "role": "value",
635
636
  "name": "Amount of rain tomorrow",
636
637
  "desc": {
637
638
  "en": "Amount of rain tomorrow",
@@ -658,7 +659,7 @@
658
659
  "_id": "info.cisternState",
659
660
  "type": "state",
660
661
  "common": {
661
- "role": "indicator",
662
+ "role": "text",
662
663
  "name": "State of the cistern",
663
664
  "desc": {
664
665
  "en": "State of the cistern",
@@ -374,7 +374,7 @@ const evaporation = {
374
374
  adapter.log.debug(`${curTemperature.val}°C | ${curHumidity.val}% | ${curIllumination.val} | ${curWindSpeed.val}km/h | ts: ${curTime} - lastChangeEvaPor: ${lastChangeEvaPor} = timeDifference: ${timeDifference}`);
375
375
 
376
376
  if (timeDifference) {
377
- setTimeout(() => {
377
+ adapter.setTimeout(() => {
378
378
  calcEvaporation(timeDifference);
379
379
  }, 100);
380
380
  }
@@ -384,7 +384,7 @@ const evaporation = {
384
384
  * akt. LuftFeuchtigkeit in %
385
385
  *
386
386
  * @param {number} value
387
- * @param {any} lc
387
+ * @param {number} lc
388
388
  */
389
389
  setCurHumidity (value, lc) {
390
390
  curHumidity.val = value;
@@ -394,7 +394,7 @@ const evaporation = {
394
394
  * akt. Helligkeit wird auf 0 bis 7000 begrenzt
395
395
  *
396
396
  * @param {number} value
397
- * @param {any} lc
397
+ * @param {number} lc
398
398
  */
399
399
  setCurIllumination (value, lc) {
400
400
  curIllumination.val = value;
@@ -404,7 +404,7 @@ const evaporation = {
404
404
  * akt. Windgeschwindigkeit
405
405
  *
406
406
  * @param {number} value Windgeschwindigkeit in km/h
407
- * @param {any} lc
407
+ * @param {number} lc
408
408
  */
409
409
  setCurWindSpeed (value, lc) {
410
410
  curWindSpeed.val = value;
@@ -447,7 +447,7 @@ const evaporation = {
447
447
  */
448
448
  setNewDay () {
449
449
  extraTerStr();
450
- setTimeout(() => {
450
+ adapter.setTimeout(() => {
451
451
  adapter.setState('evaporation.ETpYesterday', {
452
452
  val: Math.round(ETpTodayNum * 10000) / 10000,
453
453
  ack: true
package/lib/myConfig.js CHANGED
@@ -138,7 +138,9 @@ const myConfig = {
138
138
 
139
139
  /* Abonnieren der Statusänderungen des Objekts (reagieren auf Änderung des 'Ventils'
140
140
  der einzelnen Bewässerungskreise zur Fehlerkontrolle bzw. Verbrauchsermittlung) */
141
- adapter.subscribeForeignStates(newEntry.control.idACK);
141
+ if (newEntry?.control?.idACK !== null) {
142
+ adapter.subscribeForeignStates(newEntry.control.idACK);
143
+ }
142
144
 
143
145
  // @ts-ignore
144
146
  myConfig.config.push(newEntry);
@@ -87,7 +87,7 @@ const sendMessageText = {
87
87
 
88
88
  let sendMessage = message;
89
89
 
90
- setTimeout(function () {
90
+ adapter.setTimeout(function () {
91
91
  switch (ObjMessage.notificationsType) {
92
92
  case 'Telegram':
93
93
  if (ObjMessage.enabled &&
package/lib/tools.js CHANGED
@@ -59,7 +59,7 @@ const tools = {
59
59
  *
60
60
  * @template T
61
61
  * @param {T[]} elements
62
- * @param {any} cb
62
+ * @param {(element: T, index: number, elements: T[]) => Promise<boolean>} cb
63
63
  * @returns {Promise<T | undefined>}
64
64
  */
65
65
  findAsync: async function ( elements, cb) {
@@ -149,7 +149,14 @@ const tools = {
149
149
  }
150
150
 
151
151
  default: {
152
- adapter.log.error(`No switching behavior was selected for the "${id}" watering circuit.`);
152
+ adapter.log.error(`„Zusätzliche Einstellungen“ => „Schaltverhalten anpassen“ enthielt keine Eingabe! Es wurde daher auf „Befehl ohne Rückmeldung“ gesetzt.`);
153
+ adapter.config.switchingBehavior = "noResponse";
154
+ return {
155
+ idState: id,
156
+ idON_TIME: null,
157
+ idACK: null,
158
+ maker: "default"
159
+ };
153
160
  }
154
161
  }
155
162
  },