iobroker.lorawan 1.18.62 → 1.18.63
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 +3 -0
- package/io-package.json +14 -14
- package/lib/modules/bridge.js +54 -52
- package/main.js +0 -18
- package/package.json +1 -1
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.63 (2026-01-01)
|
|
27
|
+
* (BenAhrdt) return to await calls in checkAll (bridge)
|
|
28
|
+
|
|
26
29
|
### 1.18.62 (2026-01-01)
|
|
27
30
|
* (BenAhrdt) Promise the foreign functions in Promise.all
|
|
28
31
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "1.18.
|
|
4
|
+
"version": "1.18.63",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.18.63": {
|
|
7
|
+
"en": "return to await calls in checkAll (bridge)",
|
|
8
|
+
"de": "zurück zu warten Anrufe im Check Alle (Brücke)",
|
|
9
|
+
"ru": "возвращение в ожидании звонков в чек Все (мост)",
|
|
10
|
+
"pt": "retornar para aguardar chamadas em cheque Todos (ponte)",
|
|
11
|
+
"nl": "terug te keren naar wachten gesprekken in check Alle (brug)",
|
|
12
|
+
"fr": "retour à attendre les appels en contrôle Tous (pont)",
|
|
13
|
+
"it": "ritorno in attesa chiamate in controllo Tutti (ponte)",
|
|
14
|
+
"es": "volver a esperar llamadas en cheque Todo (puente)",
|
|
15
|
+
"pl": "powrót czekać rozmowy w czeku Wszystkie (most)",
|
|
16
|
+
"uk": "поверніть на чек дзвінків Всі (місто)",
|
|
17
|
+
"zh-cn": "返回等待呼叫检查 全部(桥梁)"
|
|
18
|
+
},
|
|
6
19
|
"1.18.62": {
|
|
7
20
|
"en": "Promise the foreign functions in Promise.all",
|
|
8
21
|
"de": "Versprechen Sie die ausländischen Funktionen in Promise.all",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "cache Infos w konfiguracji dla większej wydajności",
|
|
81
94
|
"uk": "cache Infos в конфігурації для більшої продуктивності",
|
|
82
95
|
"zh-cn": "为更多性能在配置中缓存信息"
|
|
83
|
-
},
|
|
84
|
-
"1.18.56": {
|
|
85
|
-
"en": "remoove namespace twice remooved\nserialize getConfigStates",
|
|
86
|
-
"de": "remoove namespace zweimal remooved\nserialisieren getConfigStates",
|
|
87
|
-
"ru": "remoove namespace дважды удаляется\nсерийный GetConfigStates",
|
|
88
|
-
"pt": "remoove namespace duas vezes remooved\nserialize getConfigStates",
|
|
89
|
-
"nl": "naamruimte twee keer verplaatsen\nserialiseren getConfigStates",
|
|
90
|
-
"fr": "remove namespace deux fois removed\nsérialiser getConfigStates",
|
|
91
|
-
"it": "rimoove namespace due volte rimuovi\nserializzare ottenereConfigStates",
|
|
92
|
-
"es": "remoove namespace dos remooved\nserialize getConfigStates",
|
|
93
|
-
"pl": "remoove namespace two remooved\nserialize getConfigurations",
|
|
94
|
-
"uk": "remoove namespace двічі remooved\nсертифіковано getConfigStates",
|
|
95
|
-
"zh-cn": "两次重新移动命名空间\n序列化获取配置状态"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/lib/modules/bridge.js
CHANGED
|
@@ -1749,6 +1749,59 @@ class bridgeClass {
|
|
|
1749
1749
|
*
|
|
1750
1750
|
* @param options options to special functions
|
|
1751
1751
|
*/
|
|
1752
|
+
async checkAllStatesForBridgeWork(options) {
|
|
1753
|
+
const activeFunction = 'bridge.js - checkAllStatesForBridgeWork';
|
|
1754
|
+
this.adapter.log.debug(`Function ${activeFunction} started.`);
|
|
1755
|
+
try {
|
|
1756
|
+
// get old Discovered ids
|
|
1757
|
+
this.OldDiscoveredIds = JSON.parse((await this.adapter.getStateAsync('info.discoveredIds')).val);
|
|
1758
|
+
this.oldDiscoveredDevices = this.generateOldDevices(this.OldDiscoveredIds);
|
|
1759
|
+
// Clear object of all subscribed Ids and published Topics
|
|
1760
|
+
this.SubscribedTopics = {};
|
|
1761
|
+
this.PublishedIds = {};
|
|
1762
|
+
this.Notifications = {};
|
|
1763
|
+
|
|
1764
|
+
//this.adapter.log.error(JSON.stringify(this.oldDiscoveredDevices));
|
|
1765
|
+
await this.discoverGeneralNotification();
|
|
1766
|
+
|
|
1767
|
+
await this.discoverDataExchange();
|
|
1768
|
+
|
|
1769
|
+
// Get all ids in adapterfolder
|
|
1770
|
+
// Generate Infos of all devices and decoded folders
|
|
1771
|
+
const adapterObjects = await this.adapter.getAdapterObjectsAsync();
|
|
1772
|
+
for (const adapterObject of Object.values(adapterObjects)) {
|
|
1773
|
+
if (
|
|
1774
|
+
adapterObject._id.includes(
|
|
1775
|
+
`${this.adapter.messagehandler.directoryhandler.reachableSubfolders.uplinkDecoded}.`,
|
|
1776
|
+
) ||
|
|
1777
|
+
adapterObject._id.includes(
|
|
1778
|
+
`${this.adapter.messagehandler.directoryhandler.reachableSubfolders.downlinkControl}.`,
|
|
1779
|
+
)
|
|
1780
|
+
) {
|
|
1781
|
+
if (adapterObject.type === 'state') {
|
|
1782
|
+
const localOptions = {
|
|
1783
|
+
...(options || {}),
|
|
1784
|
+
common: adapterObject.common,
|
|
1785
|
+
};
|
|
1786
|
+
|
|
1787
|
+
await this.work(adapterObject._id, undefined, localOptions);
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
await this.discoverClimate();
|
|
1792
|
+
await this.getForeignStatesForStandardEntities();
|
|
1793
|
+
await this.getForeignClimateConfig();
|
|
1794
|
+
await this.getForeignHumidifierConfig();
|
|
1795
|
+
await this.getForeignLightConfig();
|
|
1796
|
+
await this.getForeignCoverConfig();
|
|
1797
|
+
await this.getForeignLockConfig();
|
|
1798
|
+
await this.checkDiscoveries();
|
|
1799
|
+
} catch (error) {
|
|
1800
|
+
this.adapter.log.error(`error at ${activeFunction}: ${error}`);
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
/*
|
|
1752
1805
|
async checkAllStatesForBridgeWork(options) {
|
|
1753
1806
|
const activeFunction = 'bridge.js - checkAllStatesForBridgeWork';
|
|
1754
1807
|
this.adapter.log.debug(`Function ${activeFunction} started.`);
|
|
@@ -1819,59 +1872,8 @@ class bridgeClass {
|
|
|
1819
1872
|
this.adapter.log.error(`error at ${activeFunction}: ${error}`);
|
|
1820
1873
|
}
|
|
1821
1874
|
}
|
|
1822
|
-
|
|
1823
|
-
/* Alte Version
|
|
1824
|
-
async checkAllStatesForBridgeWork(options) {
|
|
1825
|
-
const activeFunction = 'bridge.js - checkAllStatesForBridgeWork';
|
|
1826
|
-
this.adapter.log.debug(`Function ${activeFunction} started.`);
|
|
1827
|
-
try {
|
|
1828
|
-
// get old Discovered ids
|
|
1829
|
-
this.OldDiscoveredIds = JSON.parse((await this.adapter.getStateAsync('info.discoveredIds')).val);
|
|
1830
|
-
this.oldDiscoveredDevices = this.generateOldDevices(this.OldDiscoveredIds);
|
|
1831
|
-
// Clear object of all subscribed Ids and published Topics
|
|
1832
|
-
this.SubscribedTopics = {};
|
|
1833
|
-
this.PublishedIds = {};
|
|
1834
|
-
this.Notifications = {};
|
|
1835
|
-
|
|
1836
|
-
//this.adapter.log.error(JSON.stringify(this.oldDiscoveredDevices));
|
|
1837
|
-
await this.discoverGeneralNotification();
|
|
1838
|
-
|
|
1839
|
-
await this.discoverDataExchange();
|
|
1840
|
-
|
|
1841
|
-
// Get all ids in adapterfolder
|
|
1842
|
-
// Generate Infos of all devices and decoded folders
|
|
1843
|
-
const adapterObjects = await this.adapter.getAdapterObjectsAsync();
|
|
1844
|
-
for (const adapterObject of Object.values(adapterObjects)) {
|
|
1845
|
-
if (
|
|
1846
|
-
adapterObject._id.includes(
|
|
1847
|
-
`${this.adapter.messagehandler.directoryhandler.reachableSubfolders.uplinkDecoded}.`,
|
|
1848
|
-
) ||
|
|
1849
|
-
adapterObject._id.includes(
|
|
1850
|
-
`${this.adapter.messagehandler.directoryhandler.reachableSubfolders.downlinkControl}.`,
|
|
1851
|
-
)
|
|
1852
|
-
) {
|
|
1853
|
-
if (adapterObject.type === 'state') {
|
|
1854
|
-
if (!options) {
|
|
1855
|
-
options = {};
|
|
1856
|
-
}
|
|
1857
|
-
options.common = adapterObject.common;
|
|
1858
|
-
await this.work(adapterObject._id, undefined, options);
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
await this.discoverClimate();
|
|
1863
|
-
await this.getForeignStatesForStandardEntities();
|
|
1864
|
-
await this.getForeignClimateConfig();
|
|
1865
|
-
await this.getForeignHumidifierConfig();
|
|
1866
|
-
await this.getForeignLightConfig();
|
|
1867
|
-
await this.getForeignCoverConfig();
|
|
1868
|
-
await this.getForeignLockConfig();
|
|
1869
|
-
await this.checkDiscoveries();
|
|
1870
|
-
} catch (error) {
|
|
1871
|
-
this.adapter.log.error(`error at ${activeFunction}: ${error}`);
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
1875
|
*/
|
|
1876
|
+
|
|
1875
1877
|
/**
|
|
1876
1878
|
* @param oldDiscoveredIds Ids wiche are discovered last time that Adapter runs
|
|
1877
1879
|
*/
|
package/main.js
CHANGED
|
@@ -846,24 +846,6 @@ class Lorawan extends utils.Adapter {
|
|
|
846
846
|
native: {},
|
|
847
847
|
});
|
|
848
848
|
await this.setState(id, '', true);
|
|
849
|
-
} else if (words[1] === 'chunk') {
|
|
850
|
-
this.extendObject('bridge.debug', {
|
|
851
|
-
type: 'folder',
|
|
852
|
-
common: { name: 'Debugfunctions of bridge' },
|
|
853
|
-
native: {},
|
|
854
|
-
});
|
|
855
|
-
this.extendObject('bridge.debug.chunk', {
|
|
856
|
-
type: 'state',
|
|
857
|
-
common: {
|
|
858
|
-
name: 'chunk of parallel works',
|
|
859
|
-
type: 'number',
|
|
860
|
-
read: true,
|
|
861
|
-
write: true,
|
|
862
|
-
def: 32,
|
|
863
|
-
},
|
|
864
|
-
native: {},
|
|
865
|
-
});
|
|
866
|
-
await this.setState(id, '', true);
|
|
867
849
|
}
|
|
868
850
|
} else {
|
|
869
851
|
let notificationId = `${this.namespace}.${this.bridge?.Words.notification}${this.bridge?.GeneralId}`;
|