iobroker.lorawan 1.18.5 → 1.18.6

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.6 (2025-11-21)
27
+ * (BenAhrdt) set role color to entity_category config
28
+
26
29
  ### 1.18.5 (2025-11-21)
27
30
  * (BenAhrdt) add mixed to type text for color values
28
31
 
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.18.5",
4
+ "version": "1.18.6",
5
5
  "news": {
6
+ "1.18.6": {
7
+ "en": "set role color to entity_category config",
8
+ "de": "rollenfarbe auf entity_category config einstellen",
9
+ "ru": "установить цвет ролей в конфигурации entity_category",
10
+ "pt": "definir a cor do papel para a configuração entity_category",
11
+ "nl": "rolkleur instellen op entiteit_categorie configuratie",
12
+ "fr": "définir la couleur du rôle à la config entity_category",
13
+ "it": "impostare colore ruolo a enti_category config",
14
+ "es": "definir el papel color a entity_category config",
15
+ "pl": "ustaw kolor ról do konfiguracji podmiotu _ kategorii",
16
+ "uk": "встановити колір ролі на сутність_category config",
17
+ "zh-cn": "设置角色颜色到实体_ 类别配置"
18
+ },
6
19
  "1.18.5": {
7
20
  "en": "add mixed to type text for color values",
8
21
  "de": "hinzufügen gemischt zu geben text für farbwerte",
@@ -80,19 +93,6 @@
80
93
  "pl": "Nowa auryzacja NPM",
81
94
  "uk": "Нова Ауроляція NPM",
82
95
  "zh-cn": "新国家预防机制"
83
- },
84
- "1.17.19": {
85
- "en": "improve Bridge Handling",
86
- "de": "verbesserung der Bridge Handling",
87
- "ru": "улучшение Bridge Handling",
88
- "pt": "melhorar o manuseio da ponte",
89
- "nl": "verbeteren Bridge Handling",
90
- "fr": "améliorer la manipulation des ponts",
91
- "it": "migliorare la gestione del ponte",
92
- "es": "mejorar el manejo del puente",
93
- "pl": "poprawić obsługę mostów",
94
- "uk": "поліпшити мост ручка",
95
- "zh-cn": "改进桥梁处理"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -1100,7 +1100,7 @@ class bridgeClass {
1100
1100
  const normalizedUnit = this.normalizeUnit(unit);
1101
1101
  const normalizedUnitLower = normalizedUnit.toLowerCase();
1102
1102
 
1103
- if (entityType === 'sensor' || entityType === 'number') {
1103
+ if (entityType === 'sensor' || entityType === 'number' || entityType === 'text') {
1104
1104
  if (role.includes('temperature')) {
1105
1105
  attributes.device_class = 'temperature';
1106
1106
  attributes.unit_of_measurement = normalizedUnit || '°C';
@@ -1121,6 +1121,8 @@ class bridgeClass {
1121
1121
  if (attributes.unit_of_measurement === 'V') {
1122
1122
  attributes.suggested_display_precision = 2;
1123
1123
  }
1124
+ } else if (role.includes('color')) {
1125
+ attributes.entity_category = 'config';
1124
1126
  } else if (role.includes('level.timer')) {
1125
1127
  attributes.entity_category = 'config';
1126
1128
  attributes.unit_of_measurement = normalizedUnit || 'min';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.18.5",
3
+ "version": "1.18.6",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",