iobroker.lorawan 1.18.43 → 1.18.45
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 +6 -0
- package/admin/jsonConfig.json +24 -24
- package/io-package.json +27 -27
- package/lib/modules/bridgeMqttclient.js +4 -2
- package/main.js +1 -1
- package/package.json +1 -1
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.45 (2025-12-04)
|
|
27
|
+
* (BenAhrdt) improve showing Adapter state (yellw / green)
|
|
28
|
+
|
|
29
|
+
### 1.18.44 (2025-12-02)
|
|
30
|
+
* (BenAhrdt) add mixed to possible value types in config
|
|
31
|
+
|
|
26
32
|
### 1.18.43 (2025-12-02)
|
|
27
33
|
* (BenAhrdt) specific filter at objectId selection in config
|
|
28
34
|
|
package/admin/jsonConfig.json
CHANGED
|
@@ -1573,7 +1573,7 @@
|
|
|
1573
1573
|
"type": "objectId",
|
|
1574
1574
|
"attr": "TargetId",
|
|
1575
1575
|
"label": "ClimateTargetTemperatureText",
|
|
1576
|
-
"customFilter": {"common": { "type": "number" } },
|
|
1576
|
+
"customFilter": {"common": { "type": [ "number", "mixed" ] } },
|
|
1577
1577
|
"xs": 12,
|
|
1578
1578
|
"sm": 4,
|
|
1579
1579
|
"md": 4,
|
|
@@ -1584,7 +1584,7 @@
|
|
|
1584
1584
|
"type": "objectId",
|
|
1585
1585
|
"attr": "ActId",
|
|
1586
1586
|
"label": "ClimateActTemperatureText",
|
|
1587
|
-
"customFilter": {"common": { "type": "number" } },
|
|
1587
|
+
"customFilter": {"common": { "type": [ "number", "mixed" ] } },
|
|
1588
1588
|
"xs": 12,
|
|
1589
1589
|
"sm": 4,
|
|
1590
1590
|
"md": 4,
|
|
@@ -1596,7 +1596,7 @@
|
|
|
1596
1596
|
"attr": "ModeId",
|
|
1597
1597
|
"label": "ClimateModeTemperatureText",
|
|
1598
1598
|
"hidden": "data.VirtualMode === true",
|
|
1599
|
-
"customFilter": {"common": { "type": "string" } },
|
|
1599
|
+
"customFilter": {"common": { "type": [ "string", "mixed" ] } },
|
|
1600
1600
|
"xs": 12,
|
|
1601
1601
|
"sm": 4,
|
|
1602
1602
|
"md": 4,
|
|
@@ -1688,7 +1688,7 @@
|
|
|
1688
1688
|
"type": "objectId",
|
|
1689
1689
|
"attr": "OnOffId",
|
|
1690
1690
|
"label": "HumidifierOnOffText",
|
|
1691
|
-
"customFilter": {"common": { "type": "boolean" } },
|
|
1691
|
+
"customFilter": {"common": { "type": [ "boolean", "mixed" ] } },
|
|
1692
1692
|
"xs": 12,
|
|
1693
1693
|
"sm": 4,
|
|
1694
1694
|
"md": 4,
|
|
@@ -1699,7 +1699,7 @@
|
|
|
1699
1699
|
"type": "objectId",
|
|
1700
1700
|
"attr": "TargetId",
|
|
1701
1701
|
"label": "HumidifierTargetText",
|
|
1702
|
-
"customFilter": {"common": { "type": "number" } },
|
|
1702
|
+
"customFilter": {"common": { "type": [ "number", "mixed" ] } },
|
|
1703
1703
|
"xs": 12,
|
|
1704
1704
|
"sm": 4,
|
|
1705
1705
|
"md": 4,
|
|
@@ -1710,7 +1710,7 @@
|
|
|
1710
1710
|
"type": "objectId",
|
|
1711
1711
|
"attr": "ActId",
|
|
1712
1712
|
"label": "HumidifierActText",
|
|
1713
|
-
"customFilter": {"common": { "type": "number" } },
|
|
1713
|
+
"customFilter": {"common": { "type": [ "number", "mixed" ] } },
|
|
1714
1714
|
"hidden": "data.WithAct === false",
|
|
1715
1715
|
"xs": 12,
|
|
1716
1716
|
"sm": 4,
|
|
@@ -1823,7 +1823,7 @@
|
|
|
1823
1823
|
"type": "objectId",
|
|
1824
1824
|
"attr": "OnOffId",
|
|
1825
1825
|
"label": "LightOnOffText",
|
|
1826
|
-
"customFilter": {"common": { "type": "boolean" } },
|
|
1826
|
+
"customFilter": {"common": { "type": [ "boolean", "mixed" ] } },
|
|
1827
1827
|
"xs": 12,
|
|
1828
1828
|
"sm": 4,
|
|
1829
1829
|
"md": 4,
|
|
@@ -1834,7 +1834,7 @@
|
|
|
1834
1834
|
"type": "objectId",
|
|
1835
1835
|
"attr": "BrightnessId",
|
|
1836
1836
|
"label": "LightBrightnessText",
|
|
1837
|
-
"customFilter": {"common": { "type": "number" } },
|
|
1837
|
+
"customFilter": {"common": { "type": [ "number", "mixed" ] } },
|
|
1838
1838
|
"hidden": "data.LightBrightness === false",
|
|
1839
1839
|
"xs": 12,
|
|
1840
1840
|
"sm": 4,
|
|
@@ -1846,7 +1846,7 @@
|
|
|
1846
1846
|
"type": "objectId",
|
|
1847
1847
|
"attr": "ColorId",
|
|
1848
1848
|
"label": "LightColorText",
|
|
1849
|
-
"customFilter": {"common": { "type": "string" } },
|
|
1849
|
+
"customFilter": {"common": { "type": [ "string", "mixed" ] } },
|
|
1850
1850
|
"hidden": "data.LightColor === false",
|
|
1851
1851
|
"xs": 12,
|
|
1852
1852
|
"sm": 4,
|
|
@@ -1858,7 +1858,7 @@
|
|
|
1858
1858
|
"type": "objectId",
|
|
1859
1859
|
"attr": "EffectsId",
|
|
1860
1860
|
"label": "LightEffectsText",
|
|
1861
|
-
"customFilter": {"common": { "type": "number" } },
|
|
1861
|
+
"customFilter": {"common": { "type": [ "number", "mixed" ] } },
|
|
1862
1862
|
"hidden": "data.LightEffects === false",
|
|
1863
1863
|
"xs": 12,
|
|
1864
1864
|
"sm": 4,
|
|
@@ -1972,7 +1972,7 @@
|
|
|
1972
1972
|
"newLine": true,
|
|
1973
1973
|
"attr": "CommandId",
|
|
1974
1974
|
"label": "CommandText",
|
|
1975
|
-
"customFilter": {"common": { "type": "string" } },
|
|
1975
|
+
"customFilter": {"common": { "type": [ "string", "mixed" ] } },
|
|
1976
1976
|
"hidden": "data.CoverSeparate !== 'string'",
|
|
1977
1977
|
"xs": 12,
|
|
1978
1978
|
"sm": 4,
|
|
@@ -1985,7 +1985,7 @@
|
|
|
1985
1985
|
"newLine": true,
|
|
1986
1986
|
"attr": "OpenId",
|
|
1987
1987
|
"label": "CoverOpenText",
|
|
1988
|
-
"customFilter": {"common": { "type": "boolean" } },
|
|
1988
|
+
"customFilter": {"common": { "type": [ "boolean", "mixed" ] } },
|
|
1989
1989
|
"hidden": "data.CoverSeparate !== 'separate'",
|
|
1990
1990
|
"xs": 12,
|
|
1991
1991
|
"sm": 4,
|
|
@@ -1997,7 +1997,7 @@
|
|
|
1997
1997
|
"type": "objectId",
|
|
1998
1998
|
"attr": "CloseId",
|
|
1999
1999
|
"label": "CoverCloseText",
|
|
2000
|
-
"customFilter": {"common": { "type": "boolean" } },
|
|
2000
|
+
"customFilter": {"common": { "type": [ "boolean", "mixed" ] } },
|
|
2001
2001
|
"hidden": "data.CoverSeparate !== 'separate'",
|
|
2002
2002
|
"xs": 12,
|
|
2003
2003
|
"sm": 4,
|
|
@@ -2009,7 +2009,7 @@
|
|
|
2009
2009
|
"type": "objectId",
|
|
2010
2010
|
"attr": "StopId",
|
|
2011
2011
|
"label": "CoverStopText",
|
|
2012
|
-
"customFilter": {"common": { "type": "boolean" } },
|
|
2012
|
+
"customFilter": {"common": { "type": [ "boolean", "mixed" ] } },
|
|
2013
2013
|
"hidden": "data.CoverSeparate !== 'separate' || data.CoverStop === false",
|
|
2014
2014
|
"xs": 12,
|
|
2015
2015
|
"sm": 4,
|
|
@@ -2021,7 +2021,7 @@
|
|
|
2021
2021
|
"type": "checkbox",
|
|
2022
2022
|
"attr": "CoverPosition",
|
|
2023
2023
|
"label": "CoverPosition",
|
|
2024
|
-
"customFilter": {"common": { "type": "number" } },
|
|
2024
|
+
"customFilter": {"common": { "type": [ "number", "mixed" ] } },
|
|
2025
2025
|
"tooltip": "CoverPositionTooltip",
|
|
2026
2026
|
"newLine": true,
|
|
2027
2027
|
"default": true,
|
|
@@ -2045,7 +2045,7 @@
|
|
|
2045
2045
|
"type": "objectId",
|
|
2046
2046
|
"attr": "PositionId",
|
|
2047
2047
|
"label": "CoverPositionText",
|
|
2048
|
-
"customFilter": {"common": { "type": "number" } },
|
|
2048
|
+
"customFilter": {"common": { "type": [ "number", "mixed" ] } },
|
|
2049
2049
|
"hidden": "data.CoverPosition === false",
|
|
2050
2050
|
"xs": 12,
|
|
2051
2051
|
"sm": 4,
|
|
@@ -2080,7 +2080,7 @@
|
|
|
2080
2080
|
"type": "objectId",
|
|
2081
2081
|
"attr": "TiltId",
|
|
2082
2082
|
"label": "CoverTiltText",
|
|
2083
|
-
"customFilter": {"common": { "type": "number" } },
|
|
2083
|
+
"customFilter": {"common": { "type": [ "number", "mixed" ] } },
|
|
2084
2084
|
"hidden": "data.CoverTilt === false",
|
|
2085
2085
|
"xs": 12,
|
|
2086
2086
|
"sm": 4,
|
|
@@ -2129,7 +2129,7 @@
|
|
|
2129
2129
|
"type": "objectId",
|
|
2130
2130
|
"attr": "OpenSignalId",
|
|
2131
2131
|
"label": "CoverOpenSignalText",
|
|
2132
|
-
"customFilter": {"common": { "type": "boolean" } },
|
|
2132
|
+
"customFilter": {"common": { "type": [ "boolean", "mixed" ] } },
|
|
2133
2133
|
"hidden": "data.CoverOpenSignal === false",
|
|
2134
2134
|
"xs": 12,
|
|
2135
2135
|
"sm": 4,
|
|
@@ -2167,7 +2167,7 @@
|
|
|
2167
2167
|
"type": "objectId",
|
|
2168
2168
|
"attr": "ClosedSignalId",
|
|
2169
2169
|
"label": "CoverClosedSignalText",
|
|
2170
|
-
"customFilter": {"common": { "type": "boolean" } },
|
|
2170
|
+
"customFilter": {"common": { "type": [ "boolean", "mixed" ] } },
|
|
2171
2171
|
"hidden": "data.CoverClosedSignal === false",
|
|
2172
2172
|
"xs": 12,
|
|
2173
2173
|
"sm": 4,
|
|
@@ -2268,7 +2268,7 @@
|
|
|
2268
2268
|
"newLine": true,
|
|
2269
2269
|
"attr": "CommandId",
|
|
2270
2270
|
"label": "CommandText",
|
|
2271
|
-
"customFilter": {"common": { "type": "string" } },
|
|
2271
|
+
"customFilter": {"common": { "type": [ "string", "mixed" ] } },
|
|
2272
2272
|
"hidden": "data.LockSeparate !== 'string'",
|
|
2273
2273
|
"xs": 12,
|
|
2274
2274
|
"sm": 4,
|
|
@@ -2281,7 +2281,7 @@
|
|
|
2281
2281
|
"newLine": true,
|
|
2282
2282
|
"attr": "LockId",
|
|
2283
2283
|
"label": "LockLockText",
|
|
2284
|
-
"customFilter": {"common": { "type": "boolean" } },
|
|
2284
|
+
"customFilter": {"common": { "type": [ "boolean", "mixed" ] } },
|
|
2285
2285
|
"hidden": "data.LockSeparate !== 'separate'",
|
|
2286
2286
|
"xs": 12,
|
|
2287
2287
|
"sm": 4,
|
|
@@ -2293,7 +2293,7 @@
|
|
|
2293
2293
|
"type": "objectId",
|
|
2294
2294
|
"attr": "UnlockId",
|
|
2295
2295
|
"label": "LockUnlockText",
|
|
2296
|
-
"customFilter": {"common": { "type": "boolean" } },
|
|
2296
|
+
"customFilter": {"common": { "type": [ "boolean", "mixed" ] } },
|
|
2297
2297
|
"hidden": "data.LockSeparate !== 'separate'",
|
|
2298
2298
|
"xs": 12,
|
|
2299
2299
|
"sm": 4,
|
|
@@ -2305,7 +2305,7 @@
|
|
|
2305
2305
|
"type": "objectId",
|
|
2306
2306
|
"attr": "OpenId",
|
|
2307
2307
|
"label": "LockOpenText",
|
|
2308
|
-
"customFilter": {"common": { "type": "boolean" } },
|
|
2308
|
+
"customFilter": {"common": { "type": [ "boolean", "mixed" ] } },
|
|
2309
2309
|
"hidden": "data.LockSeparate !== 'separate' || data.LockOpen === false",
|
|
2310
2310
|
"xs": 12,
|
|
2311
2311
|
"sm": 4,
|
|
@@ -2328,7 +2328,7 @@
|
|
|
2328
2328
|
"type": "objectId",
|
|
2329
2329
|
"attr": "StateId",
|
|
2330
2330
|
"label": "StateText",
|
|
2331
|
-
"customFilter": {"common": { "type": "string" } },
|
|
2331
|
+
"customFilter": {"common": { "type": [ "string", "mixed" ] } },
|
|
2332
2332
|
"hidden": "data.LockSeparateState === false",
|
|
2333
2333
|
"xs": 12,
|
|
2334
2334
|
"sm": 4,
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "1.18.
|
|
4
|
+
"version": "1.18.45",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.18.45": {
|
|
7
|
+
"en": "improve showing Adapter state (yellw / green)",
|
|
8
|
+
"de": "verbesserung des Adapterzustands (gelb / grün)",
|
|
9
|
+
"ru": "улучшение отображения состояния адаптера (yellw / green)",
|
|
10
|
+
"pt": "melhorar mostrando o estado do adaptador (Yellw / verde)",
|
|
11
|
+
"nl": "verbetering van de stand van de adapter (geel / groen)",
|
|
12
|
+
"fr": "améliorer l'état de l'adaptateur (yellw / vert)",
|
|
13
|
+
"it": "migliorare lo stato dell'adattatore di visualizzazione (yellw / green)",
|
|
14
|
+
"es": "mejorar la visualización del estado del adaptador (yellw / verde)",
|
|
15
|
+
"pl": "poprawić wyświetlanie stanu Adapter (yellw / green)",
|
|
16
|
+
"uk": "поліпшення демонстрації стану адаптера (жовтий / зелений)",
|
|
17
|
+
"zh-cn": "改进显示适配器状态( yallw / 绿色)"
|
|
18
|
+
},
|
|
19
|
+
"1.18.44": {
|
|
20
|
+
"en": "add mixed to possible value types in config",
|
|
21
|
+
"de": "hinzufügen zu möglichen werttypen in config",
|
|
22
|
+
"ru": "добавить смешанные возможные типы значений в конфигурацию",
|
|
23
|
+
"pt": "adicionar mixed aos possíveis tipos de valor na configuração",
|
|
24
|
+
"nl": "gemengd toevoegen aan mogelijke waardetypes in configuratie",
|
|
25
|
+
"fr": "ajouter mélangé aux types de valeurs possibles dans config",
|
|
26
|
+
"it": "aggiungere misto a possibili tipi di valore in configurazione",
|
|
27
|
+
"es": "añadir mixto a posibles tipos de valor en config",
|
|
28
|
+
"pl": "dodać mieszane do możliwych typów wartości w konfigu",
|
|
29
|
+
"uk": "додати змішані для можливих типів значень в конфігурації",
|
|
30
|
+
"zh-cn": "在配置中向可能的值类型添加混合"
|
|
31
|
+
},
|
|
6
32
|
"1.18.43": {
|
|
7
33
|
"en": "specific filter at objectId selection in config",
|
|
8
34
|
"de": "spezifischer Filter am Objekt Id-Auswahl in config",
|
|
@@ -67,32 +93,6 @@
|
|
|
67
93
|
"pl": "budować więcej ról dla czujników kontaktu, w przypadku roli. (okno, drzwi, brama...)",
|
|
68
94
|
"uk": "будувати більше ролей для контакторів, у разі ролі. (вікно, двері, ворота ...)",
|
|
69
95
|
"zh-cn": "为联系人建立更多的角色,如果是角色的话。 (窗,门,门"
|
|
70
|
-
},
|
|
71
|
-
"1.18.38": {
|
|
72
|
-
"en": "add device class to cover in config",
|
|
73
|
-
"de": "geräteklasse in config hinzufügen",
|
|
74
|
-
"ru": "добавить класс устройства для покрытия в конфигурацию",
|
|
75
|
-
"pt": "adicionar a classe do dispositivo para cobrir na configuração",
|
|
76
|
-
"nl": "apparaatklasse toevoegen om in config te dekken",
|
|
77
|
-
"fr": "ajouter la classe de périphérique pour couvrir la configuration",
|
|
78
|
-
"it": "aggiungere classe di dispositivo per coprire in configurazione",
|
|
79
|
-
"es": "añadir clase de dispositivo para cubrir en config",
|
|
80
|
-
"pl": "dodaj klasę urządzenia do pokrycia w konfiguracji",
|
|
81
|
-
"uk": "додати клас пристрою для обкладинки в налаштування",
|
|
82
|
-
"zh-cn": "在配置中添加要覆盖的设备类"
|
|
83
|
-
},
|
|
84
|
-
"1.18.37": {
|
|
85
|
-
"en": "add tilt to cover config",
|
|
86
|
-
"de": "kippen auf cover config hinzufügen",
|
|
87
|
-
"ru": "добавить наклон для покрытия конфигурацией",
|
|
88
|
-
"pt": "adicionar inclinação à configuração da capa",
|
|
89
|
-
"nl": "kantel toevoegen aan cover config",
|
|
90
|
-
"fr": "ajouter l'inclinaison à la configuration du couvercle",
|
|
91
|
-
"it": "aggiungere inclinazione per coprire config",
|
|
92
|
-
"es": "añadir inclinación para cubrir config",
|
|
93
|
-
"pl": "dodaj tilt do okładki config",
|
|
94
|
-
"uk": "add tilt для налаштування кришки",
|
|
95
|
-
"zh-cn": "添加倾斜到覆盖配置"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
@@ -78,11 +78,11 @@ class bridgeMqttClientClass {
|
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
-
this.client.on('close', () => {
|
|
81
|
+
this.client.on('close', async () => {
|
|
82
82
|
if (this.internalConnectionstate) {
|
|
83
83
|
this.adapter.log.info(`Connection to Bridge is closed.`);
|
|
84
84
|
}
|
|
85
|
-
this.adapter.setState('info.bridgeConnection', false, true);
|
|
85
|
+
await this.adapter.setState('info.bridgeConnection', false, true);
|
|
86
86
|
if (this.adapter.config.notificationActivation === 'notification') {
|
|
87
87
|
this.adapter.registerNotification(
|
|
88
88
|
'lorawan',
|
|
@@ -90,6 +90,8 @@ class bridgeMqttClientClass {
|
|
|
90
90
|
this.adapter.i18nTranslation['connection to bridge is closed'],
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
|
+
const connectionInfo = await this.adapter.getConnectionInfo();
|
|
94
|
+
await this.adapter.setState('info.connection', connectionInfo, true);
|
|
93
95
|
this.internalConnectionstate = false;
|
|
94
96
|
});
|
|
95
97
|
|
package/main.js
CHANGED
|
@@ -1507,7 +1507,7 @@ class Lorawan extends utils.Adapter {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
|
|
1509
1509
|
async getConnectionInfo() {
|
|
1510
|
-
if (this.config.
|
|
1510
|
+
if (this.config.origin === 'off' || this.mqttClient?.internalConnectionstate) {
|
|
1511
1511
|
if (this.config.BridgeType === 'off' || this.bridge?.bridgeMqttClient?.internalConnectionstate) {
|
|
1512
1512
|
return true;
|
|
1513
1513
|
}
|