iobroker.shelly
Advanced tools
Comparing version 6.2.3 to 6.2.4
{ | ||
"common": { | ||
"name": "shelly", | ||
"version": "6.2.3", | ||
"version": "6.2.4", | ||
"news": { | ||
"6.2.4": { | ||
"en": "IP address of CoAP devices is unknown in some cases\nOptimized destroy process", | ||
"de": "IP-Adresse von CoAP-Geräten ist in einigen Fällen unbekannt\nOptimierter Zerstörungsprozess", | ||
"ru": "IP-адрес устройств CoAP неизведан в некоторых случаях\nОптимизированный процесс уничтожения", | ||
"pt": "O endereço IP de dispositivos CoAP é desconhecido em alguns casos\nProcesso de destruição otimizado", | ||
"nl": "IP adres van CoAP apparatuur is onbekend in sommige gevallen\nVernietigingsproces", | ||
"fr": "L'adresse IP des appareils CoAP est inconnue dans certains cas\nProcessus de destruction optimisé", | ||
"it": "L'indirizzo IP dei dispositivi CoAP è sconosciuto in alcuni casi\nProcesso di distruzione ottimizzato", | ||
"es": "IP address of CoAP devices is unknown in some cases\nProceso de destrucción optimizado", | ||
"pl": "Adres IP CoAP nie jest znany w niektórych przypadkach\nOptymizacja niszczeń", | ||
"uk": "IP-адреса пристроїв CoAP невідомо в деяких випадках\nОптимальний процес знищення", | ||
"zh-cn": "在某些情况下,IP处理联合设施设备的情况不明。\n销毁进程" | ||
}, | ||
"6.2.3": { | ||
@@ -79,14 +92,2 @@ "en": "Use unique ID for each command - generation 2 devices\nFix: Ack state if value is unchanged", | ||
"zh-cn": "重要的是:适应者现在至少需要第14.5号。\n* 增加她全盘的TRV(beta)\n* A/64/50。 如果价值变化,只向Shelly装置公布数据。\n* A/64/50。 处理: 合并只在新的第5号“UI”中工作。\n* A/64/50。 处理: 现在是数个(自那时以来)" | ||
}, | ||
"5.3.2": { | ||
"en": "Added cover position status for generation 2 devices\nAdded cover power, voltage, current and energy for generation 2 devices\nUpdated switch roles for material ui (switch.power to switch)", | ||
"de": "Positionsstatus der Abdeckung für Geräte der Generation 2 hinzugefügt\nAbdeckung von Leistung, Spannung, Strom und Energie für Geräte der Generation 2 hinzugefügt\nAktualisierte Switch-Rollen für die Material-Benutzeroberfläche (switch.power to switch)", | ||
"ru": "Добавлен статус положения крышки для устройств поколения 2.\nДобавлено покрытие мощности, напряжения, тока и энергии для устройств поколения 2.\nОбновлены роли переключения для пользовательского интерфейса материалов (switch.power для переключения).", | ||
"pt": "Adicionado status de posição da tampa para dispositivos de geração 2\nAdicionada potência de cobertura, tensão, corrente e energia para dispositivos de geração 2\nFunções de switch atualizadas para interface de usuário de material (switch.power para switch)", | ||
"nl": "Status omslagpositie toegevoegd voor apparaten van generatie 2\nToegevoegd dekkingsvermogen, spanning, stroom en energie voor apparaten van generatie 2\nBijgewerkte schakelrollen voor materiële ui (switch.power to switch)", | ||
"fr": "Ajout de l'état de la position de couverture pour les appareils de génération 2\nAjout de la puissance, de la tension, du courant et de l'énergie de couverture pour les appareils de génération 2\nRôles de commutateur mis à jour pour l'interface utilisateur matérielle (switch.power to switch)", | ||
"it": "Aggiunto lo stato della posizione della copertura per i dispositivi di seconda generazione\nAggiunta potenza di copertura, voltaggio, corrente ed energia per i dispositivi di seconda generazione\nRuoli di commutazione aggiornati per l'interfaccia utente materiale (switch.power to switch)", | ||
"es": "Se agregó el estado de la posición de la cubierta para los dispositivos de generación 2\nSe agregó cobertura de potencia, voltaje, corriente y energía para dispositivos de generación 2\nRoles de cambio actualizados para material ui (switch.power to switch)", | ||
"pl": "Dodano status pozycji okładki dla urządzeń generacji 2\nDodano moc osłony, napięcie, prąd i energię dla urządzeń generacji 2\nZaktualizowano role przełączników w interfejsie materiałów (switch.power to switch)", | ||
"zh-cn": "为第 2 代设备添加了封面位置状态\n增加了第 2 代设备的功率、电压、电流和能量\n更新了材质 ui 的切换角色(switch.power 切换)" | ||
} | ||
@@ -93,0 +94,0 @@ }, |
@@ -780,2 +780,3 @@ 'use strict'; | ||
this.adapter.log.debug(`[BaseClient] Destroying ${this.getLogInfo()}`); | ||
this.adapter.deviceStatusUpdate(this.getDeviceId(), false); // Device offline | ||
@@ -782,0 +783,0 @@ if (this.httpIoBrokerStateTimeout) { |
@@ -44,2 +44,3 @@ 'use strict'; | ||
this.deviceId = deviceId; // e.g. SHRGBW2#D88040#2 | ||
this.setIP(ip, 'CoAP'); // e.g. 192.168.1.2 | ||
@@ -49,4 +50,4 @@ // Device Mode information (init) | ||
this.adapter.log.debug(`[CoAP] Starting new client. Device ID: "${this.deviceId}", Device Mode: "${this.deviceMode}", IP: ${this.ip}`); | ||
this.start(payload, description, ip); | ||
this.adapter.log.debug(`[CoAP] Starting new client. Device ID: "${this.deviceId}", Device Mode: "${this.deviceMode ?? '<default>'}", IP: ${ip}`); | ||
this.start(payload, description); | ||
} | ||
@@ -106,9 +107,5 @@ | ||
/** | ||
* Cleanup, destroy this object | ||
*/ | ||
destroy() { | ||
super.destroy(); | ||
this.adapter.log.debug(`[CoAP] Destroying: ${this.getLogInfo()}`); | ||
this.adapter.deviceStatusUpdate(this.getDeviceId(), false); // Device offline | ||
this.adapter.log.debug(`[CoAP] Destroying`); | ||
@@ -165,3 +162,3 @@ if (this.listenerus) this.shelly.removeListener('update-device-status', this.listenerus); | ||
async start(payload, description, ip) { | ||
async start(payload, description) { | ||
if (this.deviceExists()) { // needs getDeviceClass() | ||
@@ -184,4 +181,2 @@ const polltime = this.getPolltime(); | ||
this.setIP(ip, 'CoAP'); | ||
this.adapter.deviceStatusUpdate(this.getDeviceId(), true); // Device online | ||
@@ -292,4 +287,8 @@ | ||
if (!err && deviceId && ip) { | ||
// if ip address change of coap device change | ||
this.adapter.log.debug(`[CoAP Server] Received device description for ${deviceId} (${ip}): ${JSON.stringify(description)}`); | ||
// ip address of coap device changed | ||
if (this.clients[deviceId] && this.clients[deviceId].getIP() !== ip) { | ||
this.adapter.log.debug(`[CoAP Server] IP of device ${deviceId} changed from ${this.clients[deviceId].getIP()} to ${ip}`); | ||
this.clients[deviceId].destroy(); | ||
@@ -296,0 +295,0 @@ delete this.clients[deviceId]; |
@@ -118,9 +118,5 @@ 'use strict'; | ||
/** | ||
* Cleanup, destroy this object | ||
*/ | ||
destroy() { | ||
super.destroy(); | ||
this.adapter.log.debug(`[MQTT] Destroying: ${this.getLogInfo()}`); | ||
this.adapter.deviceStatusUpdate(this.getDeviceId(), false); // Device offline | ||
this.adapter.log.debug(`[MQTT] Destroying`); | ||
@@ -127,0 +123,0 @@ for (const messageId in this.messageCache) { |
{ | ||
"name": "iobroker.shelly", | ||
"version": "6.2.3", | ||
"version": "6.2.4", | ||
"description": "Integrate your Shelly devices into ioBroker via MQTT or CoAP", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -118,2 +118,7 @@ ![Logo](admin/shelly.png) | ||
--> | ||
### 6.2.4 (2022-10-23) | ||
* (klein0r) IP address of CoAP devices is unknown in some cases | ||
* (klein0r) Optimized destroy process | ||
### 6.2.3 (2022-10-20) | ||
@@ -147,10 +152,2 @@ | ||
### 6.1.0 (2022-09-02) | ||
* (klein0r) **Breaking:** Added device modes (just display relevant states for current mode) | ||
* (klein0r) **Breaking:** Moved "mode" setting of some devices to "Sys.deviceMode" | ||
* (klein0r) Added ext temperature offset configuration | ||
* (klein0r) Added mqtt status states and checks for generation 2 devices | ||
* (klein0r) Send unchanged state to device, ack state if value is unchanged | ||
* (klein0r) Fixed total power of RGBW2 when in color mode | ||
## License | ||
@@ -157,0 +154,0 @@ |
997029
21779
176