iobroker.lorawan 1.18.10 → 1.18.12

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
@@ -23,6 +23,12 @@ For now there is documentation in English here: https://wiki.hafenmeister.de
23
23
  Placeholder for the next version (at the beginning of the line):
24
24
  ### **WORK IN PROGRESS**
25
25
  -->
26
+ ### 1.18.12 (2025-11-23)
27
+ * (BenAhrdt) Bugfix fx in case of number
28
+
29
+ ### 1.18.11 (2025-11-23)
30
+ * (BenAhrdt) Bugfix fx for published ids
31
+
26
32
  ### 1.18.10 (2025-11-23)
27
33
  * (BenAhrdt) Effects for Lights in common.states
28
34
 
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.18.10",
4
+ "version": "1.18.12",
5
5
  "news": {
6
+ "1.18.12": {
7
+ "en": "Bugfix fx in case of number",
8
+ "de": "Bugfix fx bei Anzahl",
9
+ "ru": "Bugfix fx в случае номера",
10
+ "pt": "Bugfix fx em caso de número",
11
+ "nl": "Bugfix fx bij aantal",
12
+ "fr": "Bugfix fx en cas de nombre",
13
+ "it": "Bugfix fx in caso di numero",
14
+ "es": "Fx Bugfix en caso de número",
15
+ "pl": "Bugfix fx w przypadku liczby",
16
+ "uk": "Виправлення помилок при кількості",
17
+ "zh-cn": "如果出现数字, 错误fx"
18
+ },
19
+ "1.18.11": {
20
+ "en": "Bugfix fx for published ids",
21
+ "de": "Bugfix fx für veröffentlichte ids",
22
+ "ru": "Bugfix fx для опубликованных идентификаторов",
23
+ "pt": "Bugfix fx para IDs publicados",
24
+ "nl": "Bugfix fx voor gepubliceerde id's",
25
+ "fr": "Bugfix fx pour les ids publiés",
26
+ "it": "Bugfix fx per ids pubblicati",
27
+ "es": "Fx Bugfix para los ids publicados",
28
+ "pl": "Bugfix fx dla opublikowanych idów",
29
+ "uk": "Bugfix fx для опублікованих ids",
30
+ "zh-cn": "已发布 ID 的臭虫fx"
31
+ },
6
32
  "1.18.10": {
7
33
  "en": "Effects for Lights in common.states",
8
34
  "de": "Effekte für Lichter gemeinsam. Staaten",
@@ -67,32 +93,6 @@
67
93
  "pl": "ustaw kolor ról do konfiguracji podmiotu _ kategorii",
68
94
  "uk": "встановити колір ролі на сутність_category config",
69
95
  "zh-cn": "设置角色颜色到实体_ 类别配置"
70
- },
71
- "1.18.5": {
72
- "en": "add mixed to type text for color values",
73
- "de": "hinzufügen gemischt zu geben text für farbwerte",
74
- "ru": "добавить смешанный текст для цветовых значений",
75
- "pt": "adicionar texto misto ao tipo para valores de cores",
76
- "nl": "gemengd toevoegen aan type tekst voor kleurwaarden",
77
- "fr": "ajouter mélangé au texte type pour les valeurs de couleur",
78
- "it": "aggiungere testo misto per digitare i valori di colore",
79
- "es": "añadir mezclado para escribir texto para valores de color",
80
- "pl": "dodaj mieszany do tekstu dla wartości kolorów",
81
- "uk": "додати змішаний для типу текст для значень кольору",
82
- "zh-cn": "在颜色值类型中添加混合文本"
83
- },
84
- "1.18.4": {
85
- "en": "Change unique id for lorawan internal standard states\nChange sequence of dicovery and check downlinks at startup",
86
- "de": "Ändern Sie einzigartige id für lorawan interne Standardzustände\nÄndern Sie die Reihenfolge der Dicovery und überprüfen Sie Downlinks beim Start",
87
- "ru": "Изменение уникального идентификатора для внутренних стандартных состояний Lorawan\nИзмените последовательность обнаружения и проверьте нисходящие ссылки при запуске",
88
- "pt": "Mudar o ID único para estados padrão internos do lorawan\nAltere a sequência de dicovery e verifique os links abaixo na inicialização",
89
- "nl": "Wijzig unieke id voor Lorawan interne standaardstaten\nVerander de sequentie van de dicovery en controleer downlinks bij opstarten",
90
- "fr": "Modifier l'identifiant unique pour les états standard internes de lorawan\nChanger la séquence de dicovery et vérifier les liens descendants au démarrage",
91
- "it": "Cambiare id unico per lorawan stati standard interni\nModificare la sequenza di scoperta e controllare downlink all'avvio",
92
- "es": "Cambio único id para los estados estándar internos de Lorawan\nCambio de secuencia de descubrimiento y check downlinks al inicio",
93
- "pl": "Zmiana niepowtarzalnego identyfikatora dla stanów wewnętrznych Lorawan\nZmień sekwencję dicovery i sprawdź linki w dół przy starcie",
94
- "uk": "Зміна унікальних ідентифікаторів для внутрішніх стандартних станів лоурен\nЗміна послідовності дифективних і контрольних посилань при запуску",
95
- "zh-cn": "更改 Lorawan 内部标准状态的独有 ID\n更改隐藏的顺序并在启动时检查下行链路"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -2224,10 +2224,15 @@ class bridgeClass {
2224
2224
  if (config.LightEffects) {
2225
2225
  const effectObject = await this.adapter.getForeignObjectAsync(config.LightIds.effects);
2226
2226
  const effect_list = [];
2227
+ const isNumber = effectObject.common.type && effectObject.common.type === 'number' ? true : false;
2227
2228
  if (effectObject.common.states) {
2228
2229
  effectState = effectObject.common.states;
2229
2230
  for (const effect in effectObject.common.states) {
2230
- effectSet[effectObject.common.states[effect]] = effect;
2231
+ if (isNumber) {
2232
+ effectSet[effectObject.common.states[effect]] = Number(effect);
2233
+ } else {
2234
+ effectSet[effectObject.common.states[effect]] = effect;
2235
+ }
2231
2236
  effect_list.push(effectObject.common.states[effect]);
2232
2237
  }
2233
2238
  }
@@ -2248,6 +2253,9 @@ class bridgeClass {
2248
2253
  { light: true, LightIds: config.LightIds, effects: effectSet },
2249
2254
  );
2250
2255
 
2256
+ // Define Additional Object for Published Ids
2257
+ const additionalObject = { light: true, LightIds: config.LightIds, effects: effectState };
2258
+
2251
2259
  // Assign published Ids
2252
2260
  this.assignIdStructure(
2253
2261
  this.PublishedIds,
@@ -2258,7 +2266,7 @@ class bridgeClass {
2258
2266
  DiscoveryTopic,
2259
2267
  DiscoveryPayload,
2260
2268
  `${lightTopic}${this.EndingState}`,
2261
- { light: true, LightIds: config.LightIds },
2269
+ additionalObject,
2262
2270
  );
2263
2271
 
2264
2272
  if (config.LightBrightness) {
@@ -2271,7 +2279,7 @@ class bridgeClass {
2271
2279
  DiscoveryTopic,
2272
2280
  DiscoveryPayload,
2273
2281
  `${lightTopic}${this.EndingState}`,
2274
- { light: true, LightIds: config.LightIds },
2282
+ additionalObject,
2275
2283
  );
2276
2284
  }
2277
2285
 
@@ -2285,7 +2293,7 @@ class bridgeClass {
2285
2293
  DiscoveryTopic,
2286
2294
  DiscoveryPayload,
2287
2295
  `${lightTopic}${this.EndingState}`,
2288
- { light: true, LightIds: config.LightIds },
2296
+ additionalObject,
2289
2297
  );
2290
2298
  }
2291
2299
 
@@ -2299,7 +2307,7 @@ class bridgeClass {
2299
2307
  DiscoveryTopic,
2300
2308
  DiscoveryPayload,
2301
2309
  `${lightTopic}${this.EndingState}`,
2302
- { light: true, LightIds: config.LightIds, effects: effectState },
2310
+ additionalObject,
2303
2311
  );
2304
2312
  }
2305
2313
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.18.10",
3
+ "version": "1.18.12",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",