diff --git a/README.md b/README.md index d956de97..c3f680b9 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,9 @@ You can thank the authors by these links: ----------------------------------------------------------------------------------------------------- ## Changelog +### 1.10.12 (2024-11-03) +* (asgothian) corr Channel Scan + ### 1.10.11 (2024-11-02) * BREAKING CHANGE * diff --git a/io-package.json b/io-package.json index e41088bc..1faa5dc0 100644 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,21 @@ { "common": { "name": "zigbee", - "version": "1.10.11", + "version": "1.10.12", "news": { + "1.10.12": { + "en": "corr Channel Scan", + "de": "corr Channel Scan", + "ru": "корректор канала", + "pt": "escaneamento do canal de cortiça", + "nl": "corr kanaalscan", + "fr": "balayage du canal corr", + "it": "corr Channel Scansione", + "es": "corr Channel Scan", + "pl": "corr Channel Scan", + "uk": "сканування каналу", + "zh-cn": "频道扫描" + }, "1.10.11": { "en": "BREAKING CHANGE\n\nbugs : ChannelScan is currently not available\n\n\nfix linter errors\ndisable map display for deactivated devices\nnew option on map: disable physics interaction\nnew zigbee-herdsman-converters 20.28.0\nnew zigbee-herdsman 2.1.1\nAllow use of keyless converters (used for TuYa and compatible devices in zigbee-herdsman-converters\nswap from request to axios\ndelete groups works again", "de": "VERWENDUNGSBEREICH\n\nbugs : ChannelScan ist derzeit nicht verfügbar\n\n\nlinterfehler beheben\nkartenanzeige für deaktivierte geräte deaktivieren\nneue option auf der karte: physik-interaktion deaktivieren\nneue zickbee-herdsman-konverter 20.28.0\nneuer zickbee-herdsman 2.1.1\nVerwenden von schlüssellosen Wandlern (für TuYa und kompatible Geräte in Zickbee-herdsman-Konverter verwendet)\nswap von anfrage an axios\nlöschen von gruppen funktioniert wieder", @@ -80,19 +93,6 @@ "pl": "podstawowa aktualizacja\naktualizacja zależności", "uk": "оновлення ядра\nоновлення залежності", "zh-cn": "核心更新\n依赖性更新" - }, - "1.10.5": { - "en": "icon ota device update\nicon fix", - "de": "icon ota device update\nsymbol fix", - "ru": "обновление значок ota\nзначок", - "pt": "atualização do dispositivo do ícone ota\ncorreção do ícone", - "nl": "pictogram ota apparaat update\npictogramfix", - "fr": "icône ota mise à jour du périphérique\ncorrection de l'icône", - "it": "icona ota aggiornamento del dispositivo\nicona fix", - "es": "icono ota actualización del dispositivo\nicono de fijación", - "pl": "icon ota aktualizacji urządzenia\nikona fix", - "uk": "ota пристрій оновлення\nфіксатор ікони", - "zh-cn": "图标 ota 设备更新\n图标修复" } }, "titleLang": { diff --git a/lib/zigbeecontroller.js b/lib/zigbeecontroller.js index 710c2c74..c5c8271a 100644 --- a/lib/zigbeecontroller.js +++ b/lib/zigbeecontroller.js @@ -1007,16 +1007,16 @@ class ZigbeeController extends EventEmitter { } async getChannelsEnergy() { - let clusterId = ZDO.ClusterId.NWK_UPDATE_REQUEST; + const clusterId = ZDO.ClusterId.NWK_UPDATE_REQUEST; const result = {}; try { - let payload = ZDO.Buffalo.buildRequest(false, clusterId, [11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], 0x05, 1, 0, undefined); + const payload = ZDO.Buffalo.buildRequest(false, clusterId, [11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], 0x05, 1, 0, undefined); const scanresult = await this.herdsman.adapter.sendZdo(0x0, 0x0, clusterId , payload, false); - this.debug(`scanresult is ${JSON.stringify(scanresult)}`) + this.debug(`scanresult is ${JSON.stringify(scanresult)}`) result.energyvalues = scanresult[1].entryList; - this.debug(`result is ${JSON.stringify(result)}`) - } + this.debug(`result is ${JSON.stringify(result)}`) + } catch (error) { this.sendError(error); this.error(`Failed to scan channels ${error.stack}`); @@ -1024,7 +1024,7 @@ class ZigbeeController extends EventEmitter { } return result; - + } } diff --git a/package-lock.json b/package-lock.json index b733069b..df6d78b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "iobroker.zigbee", - "version": "1.10.11", + "version": "1.10.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "iobroker.zigbee", - "version": "1.10.11", + "version": "1.10.12", "license": "MIT", "dependencies": { - "@iobroker/adapter-core": "^3.1.3", + "@iobroker/adapter-core": "^3.2.2", "@iobroker/dm-utils": "^0.5.0", "ajv": "^8.17.1", "humanize-duration": "^3.32.1", @@ -425,14 +425,14 @@ } }, "node_modules/@iobroker/adapter-core": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/@iobroker/adapter-core/-/adapter-core-3.1.4.tgz", - "integrity": "sha512-RYDGB8Vk/MEKvMMwo4fLgxY8kjHrCeQmqROo/JxQYiLBEA4/gwFCTpxdD6s7RQ+dh4yZoH16/yTWqdgyR6NAxQ==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@iobroker/adapter-core/-/adapter-core-3.2.2.tgz", + "integrity": "sha512-Cuiga42WRkJ/NduyrIGgSVWpLgD6ihIflIvZiWVThwgWfDyI+Okgw3snVSlf/p4ki6BAr3MH6Dfa0qPySCGWvQ==", "engines": { - "npm": ">=7.0.0" + "node": ">=16" }, "peerDependencies": { - "@iobroker/types": "^5.0.11" + "@iobroker/types": "^6.0.11" } }, "node_modules/@iobroker/dm-utils": { @@ -443,26 +443,6 @@ "@iobroker/adapter-core": "^3.1.6" } }, - "node_modules/@iobroker/dm-utils/node_modules/@iobroker/adapter-core": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/@iobroker/adapter-core/-/adapter-core-3.1.6.tgz", - "integrity": "sha512-cArv8IzVsP3r8HivsYwO02e5WueboIH9v66PkHSGtadeUQQKUyxV32dzirM6YArWcI6+Iw5USQgVR9E+ryP3xg==", - "engines": { - "npm": ">=7.0.0" - }, - "peerDependencies": { - "@iobroker/types": "^6.0.0" - } - }, - "node_modules/@iobroker/dm-utils/node_modules/@iobroker/types": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/@iobroker/types/-/types-6.0.11.tgz", - "integrity": "sha512-RNDURjtL5Cm9wt6ocCqdRi86Qx1350zBIvvrJ9+Fjgasoi6cWCdoOghkwEeb95TH2j//q/uLqWwL8SZ0vxx6Kw==", - "peer": true, - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/@iobroker/testing": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/@iobroker/testing/-/testing-5.0.0.tgz", @@ -593,9 +573,9 @@ } }, "node_modules/@iobroker/types": { - "version": "5.0.17", - "resolved": "https://registry.npmjs.org/@iobroker/types/-/types-5.0.17.tgz", - "integrity": "sha512-OGVGHw21/Kw5vyaF/91E1MW184rE8iJ3OOZKo+6IcQSu1VaKXWsgKDvfW0NgYB02bZqmeP4WPux5MveZnFshAg==", + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/@iobroker/types/-/types-6.0.11.tgz", + "integrity": "sha512-RNDURjtL5Cm9wt6ocCqdRi86Qx1350zBIvvrJ9+Fjgasoi6cWCdoOghkwEeb95TH2j//q/uLqWwL8SZ0vxx6Kw==", "peer": true, "engines": { "node": ">=12.0.0" diff --git a/package.json b/package.json index 0ee89792..7ad5b081 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.zigbee", - "version": "1.10.11", + "version": "1.10.12", "author": { "name": "Kirov Ilya", "email": "kirovilya@gmail.com"