community italiana di domotica personale
 
Importante bug identificato e risolto su Tasmota forked by stefanbode

Importante bug identificato e risolto su Tasmota forked by stefanbode

Col recente aggiornamento del firmware Tasmota 6.5 sono state introdotte alcune variazioni relative alla funzionalità INTERLOCK; questi cambiamenti hanno avuto impatti – inevitabili – anche sulla nota fork di Stefanbode dedicata alla gestione delle tapparelle elettriche.

A tal proposito, in questi giorni il nostro utente Loris ha individuato un bug abbastanza fastidioso.

Utilizzando l’integrazione di un attuatore collegato a una tapparella elettrica (tipo Sonoff Dual) con Home Assistant e controllando tale entità (di tipo “Cover”) utilizzando i tasti “Su/Giù” (di Home Assistant) e infine attivando il secondo relè mentre è attivo il primo, viene disattivato istantaneamente anche il secondo relè. Tradotto: se la tapparella sta salendo e si decide di farla scendere, la tapparella si ferma.

Questo comportamento è ovviamente erroneo.

Come si può notare dai messaggi inviati al broker dall’attuatore, si presenta uno spegnimento non corretto del secondo relè (l’ultimo “POWER2: OFF“):

------------
14:27:41 Start shutter in right direction -1
14:27:41 MQT: stat/sonoff-cletto/RESULT = {"POWER1":"OFF"}
14:27:41 MQT: stat/sonoff-cletto/POWER1 = OFF (salvato)
14:27:41 MQT: stat/sonoff-cletto/RESULT = {"POWER2":"ON"}
14:27:41 MQT: stat/sonoff-cletto/POWER2 = ON (salvato)
14:27:41 MQT: stat/sonoff-cletto/RESULT = {"shutterposition1":10}
14:27:41 MQT: stat/sonoff-cletto/SHUTTER1 = 28 (salvato)
14:27:41 MQT: stat/sonoff-cletto/RESULT = {"POWER2":"OFF"}
14:27:41 MQT: stat/sonoff-cletto/POWER2 = OFF (salvato)
14:27:41 MQT: tele/sonoff-cletto/RESULT = {"SHUTTER-1":{"position":28, "direction":0}}
14:27:43 MQT: stat/sonoff-cletto/RESULT = {"shutterposition1":28}
------------

Abbiamo anche un video a dimostrazione del fenomeno:

ARVE Error: Invalid URL in url

Questo non si verifica invece utilizzando i tasti fisici o i tasti ON/OFF presenti sulla webgui Tasmota:

------------
14:35:14 MQT: stat/sonoff-cletto/RESULT = {"POWER1":"ON"}
14:35:14 MQT: stat/sonoff-cletto/POWER1 = ON (salvato)
14:35:14 Shutter 0: Real Pos: 200, Target 40000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 0.1  [s]
14:35:15 Shutter 0: Real Pos: 2200, Target 40000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 1.1  [s]
14:35:16 Shutter 0: Real Pos: 4200, Target 40000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 2.1  [s]
14:35:17 Shutter 0: Real Pos: 6200, Target 40000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 3.1  [s]
14:35:18 Shutter 0: Real Pos: 8200, Target 40000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 4.1  [s]
14:35:19 Shutter 0: Real Pos: 10200, Target 40000, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 5.1  [s]
14:35:20 MQT: stat/sonoff-cletto/RESULT = {"POWER1":"OFF"}
14:35:20 MQT: stat/sonoff-cletto/POWER1 = OFF (salvato)
14:35:21 MQT: stat/sonoff-cletto/RESULT = {"POWER2":"ON"}
14:35:21 MQT: stat/sonoff-cletto/POWER2 = ON (salvato)
14:35:21 Shutter 0: Real Pos: 11600, Target 0, source: Shutter, start-pos: 0 %, direction: -1, rtcshutter: 0.2  [s]
14:35:22 Shutter 0: Real Pos: 9600, Target 0, source: Shutter, start-pos: 0 %, direction: -1, rtcshutter: 1.1  [s]

-----------

Altro video dimostrativo:

Loris, affiancato da Snakuzzo, ha subito ipotizzato un bug sul fork di stefanbode (dato che su Tasmota originale lo slider per la gestione delle tapparelle è assente).

Snakuzzo ha pertanto provveduto ad aprire una issue presso GitHub al fine di segnalare l’eventualità che ci fosse un bug nel firmware, bug che è stato effettivamente riconosciuto dallo sviluppatore il quale ha lestamente provveduto a realizzare una change correttiva, rilasciata come “Tasmota 6.5.0.3 stb-1.4“.

Abbiamo provveduto ad effettuare nuovamente il test utilizzando la nuova versione del firmware ed effettivamente il problema pare esser stato risolto (Il POWER2 OFF scatta correttamente solo una volta arrivato a fine corsa):

-----------
18:28:18 MQT: stat/sonoff-cletto/RESULT = {"POWER1":"ON"}
18:28:18 MQT: stat/sonoff-cletto/POWER1 = ON (salvato)
18:28:18 MQT: stat/sonoff-cletto/RESULT = {"shutterposition1":56}
18:28:18 Shutter 0: Real Pos: 1100, Target 22400, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 0.6 [s]
18:28:19 Shutter 0: Real Pos: 3100, Target 22400, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 1.6 [s]
18:28:20 Shutter 0: Real Pos: 5100, Target 22400, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 2.5 [s]
18:28:21 Shutter 0: Real Pos: 7100, Target 22400, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 3.5 [s]
18:28:22 Shutter 0: Real Pos: 9100, Target 22400, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 4.5 [s]
18:28:23 Shutter 0: Real Pos: 11100, Target 22400, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 5.5 [s]
18:28:24 Start shutter in direction -1
18:28:24 MQT: stat/sonoff-cletto/RESULT = {"POWER1":"OFF"}
18:28:24 MQT: stat/sonoff-cletto/POWER1 = OFF (salvato)
18:28:24 MQT: stat/sonoff-cletto/RESULT = {"POWER2":"ON"}
18:28:24 MQT: stat/sonoff-cletto/POWER2 = ON (salvato)
18:28:24 MQT: stat/sonoff-cletto/RESULT = {"shutterposition1":9}
18:28:25 Shutter 0: Real Pos: 10500, Target 3600, source: Shutter, start-pos: 0 %, direction: -1, rtcshutter: 1.0 [s]
18:28:26 Shutter 0: Real Pos: 8500, Target 3600, source: Shutter, start-pos: 0 %, direction: -1, rtcshutter: 2.0 [s]
18:28:27 Shutter 0: Real Pos: 6500, Target 3600, source: Shutter, start-pos: 0 %, direction: -1, rtcshutter: 3.0 [s]
18:28:28 Shutter 0: Real Pos: 4500, Target 3600, source: Shutter, start-pos: 0 %, direction: -1, rtcshutter: 4.0 [s]
18:28:28 MQT: stat/sonoff-cletto/SHUTTER1 = 9 (salvato)
18:28:28 MQT: stat/sonoff-cletto/RESULT = {"POWER2":"OFF"}
18:28:28 MQT: stat/sonoff-cletto/POWER2 = OFF (salvato)
18:28:28 MQT: tele/sonoff-cletto/RESULT = {"SHUTTER-1":{"position":9, "direction":0}}
18:28:28 MQT: stat/sonoff-cletto/RESULT = {"shutterposition1":9}
-----------

Video:

Allo stato attuale il bug è dunque stato effettivamente risolto.
Suggeriamo quindi a chiunque utilizzi questa importante fork del noto firmware Tasmota di aggiornare quanto prima i propri attuatori.

Questa pagina è redatta, manutenuta e aggiornata dallo staff di inDomus, un gruppo di persone molto diverse tra loro che trovi, per domande e supporto, sul forum e sulla chat del sito. Alcuni link sono taggati in qualità di affiliati Amazon e riceviamo un compenso dagli acquisti idonei, utile al sostenimento del sito, ma le nostre recensioni sono tutte indipendenti e non sponsorizzate. Se ti sei perso, a tua disposizione c'è la mappa.