iobroker.lorawan 1.18.11 → 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,9 @@ 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
+
26
29
  ### 1.18.11 (2025-11-23)
27
30
  * (BenAhrdt) Bugfix fx for published ids
28
31
 
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.18.11",
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
+ },
6
19
  "1.18.11": {
7
20
  "en": "Bugfix fx for published ids",
8
21
  "de": "Bugfix fx für veröffentlichte ids",
@@ -80,19 +93,6 @@
80
93
  "pl": "ustaw kolor ról do konfiguracji podmiotu _ kategorii",
81
94
  "uk": "встановити колір ролі на сутність_category config",
82
95
  "zh-cn": "设置角色颜色到实体_ 类别配置"
83
- },
84
- "1.18.5": {
85
- "en": "add mixed to type text for color values",
86
- "de": "hinzufügen gemischt zu geben text für farbwerte",
87
- "ru": "добавить смешанный текст для цветовых значений",
88
- "pt": "adicionar texto misto ao tipo para valores de cores",
89
- "nl": "gemengd toevoegen aan type tekst voor kleurwaarden",
90
- "fr": "ajouter mélangé au texte type pour les valeurs de couleur",
91
- "it": "aggiungere testo misto per digitare i valori di colore",
92
- "es": "añadir mezclado para escribir texto para valores de color",
93
- "pl": "dodaj mieszany do tekstu dla wartości kolorów",
94
- "uk": "додати змішаний для типу текст для значень кольору",
95
- "zh-cn": "在颜色值类型中添加混合文本"
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.18.11",
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",