Plugin wifilightV2 - Discussion générale

Merci de votre aide!

Oui, 192.168.178.37 est la bonne adresse, et elle répond au ping (et cesse de répondre lorsque je coupe le courant). Le @ 80 est uniquement dans l’application MagicHome Android. Je n’ai pas mis ça dans WifiLight, seulement l’adresse IP elle-même.

Magic home utilise une nouvelle appli et un nouveau protocole pour les lampes et n’est pas compatible avec le plugin.
Concernant le 80 tu es sûr que c’est le port ?
Dans tout ce que j’ai vu le port est 5577 pas 80 qui est réservé au http.

Donne moi un lien pour voir l’ampoule

Merci d’avoir aidé à nouveau!

Voici le lien: https://www.aliexpress.com/item/4000290763952.html?spm=a2g0s.9042311.0.0.4c234c4dIn65qn

Je ne suis pas sûr du tout que @ 80 soit le port. Je sais seulement que dans l’application, il est indiqué: Device IP 192.168.178.37@80

Bonjour,

je viens d’acheter et de configurer un double ruban LED RGBW de la marque Elfeland, fonctionnant via l’environnement Tuya Smart Life.
https://www.amazon.fr/gp/product/B07RZ4N4H9/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1

Toute la configuration s’est bien déroulée et il fonctionne très bien sous Jeedom grâce à ce super plugin et surtout grâce aux contribution de chacun.
En revanche, J’ai dû le configurer comme une Ampoule RGBW Type 1 (type Tuya V2) car je n’ai pas trouvé de config prédéterminée pour un bandeau, et une seule commande ne fonctionne pas, il s’agit de la commande OFF !
Ce qui est un peu bête, je peux programmer l’allumage mais pas l’extinction du ruban.
La commande est bien prise en compte, le statut change sur le widget (une croix apparaît à la place de la coche) mais le ruban reste allumé.
Le comportement est le même sur Jeedom lorsque j’éteins le ruban via la télécommande IR ou l’appli sur le tel, mais bien évidemment, le ruban s’éteint bien.
Si j’éteins via Jeedom, puis que je lance Tuya sur mon tel, le ruban apparaît comme OFF (sur Tuya) et il faut que j’appuie 2 fois pour l’éteindre.

Et là je bloque, je ne sais pas comment faire.
Je tente de récupérer une trame avec un code grâce à Packet Tracer sur mon tel mais je ne récupère rien de probant.

Auriez-vous une idée pour faire fonctionner pleinement mon ruban led ?

Merci beaucoup pour vos conseils,
Lunix

As tu essayé le type 2 ?
sinon c’est bien mystérieux
m’envoyer les logs …
avec ON/OFF sur l’appli tuya

Bonjour,

Existe t-il des modules de contrôle wifi de ruban led qui soit compatible avec le retour d’état de ce pluggin?

Bonjour Bernard,

Voici la trace ON avec Tuya:

*[2020-02-13 15:55:04][DEBUG] : ////// Receive from :192.168.XX.XX //////*
*[2020-02-13 15:55:04][DEBUG] :     Receive after decode :{"devId":"61238008d8f15b0304d2","dps":{"1":true},"t":1581605704}H+9DZdr"lz*
*[2020-02-13 15:55:04][DEBUG] :     Read Json OK*
*[2020-02-13 15:55:04][DEBUG] :     State is:array(50) {   ["Intensity"]=>   int(-1)   ["White"]=>   int(-1)   ["White2"]=>   int(-1)   ["Color"]=>   int(-1)   ["Prog"]=>   int(-1)   ["Speed"]=>   int(-1)   ["On"]=>   int(1)   ["Play"]=>   int(-1)   ["Saturation"]=>   int(-1)   ["Kelvin"]=>   int(-1)   ["Connected"]=>   int(-1)   ["AmbColor"]=>   int(-1)   ["AmbKelvin"]=>   int(-1)   ["AmbWhite"]=>   int(-1)   ["Eye"]=>   int(-1)   ["DiscoNum"]=>   int(-1)   ["NightMode"]=>   int(-1)   ["EyeNotify"]=>   int(-1)   ["CCTAuto"]=>   int(-1)   ["AmbIntensity"]=>   int(-1)   ["AmbOn"]=>   int(-1)   ["Timer"]=>   int(-1)   ["Current"]=>   int(-1)   ["Power"]=>   int(-1)   ["Voltage"]=>   int(-1)   ["Led"]=>   int(-1)   ["Consommation"]=>   int(-1)   ["UpDown"]=>   int(-1)   ["ModeOn"]=>   int(-1)   ["ModeAmb"]=>   int(-1)   ["VitHum"]=>   int(-1)   ["Eco"]=>   int(-1)   ["Locked"]=>   int(-1)   ["Auto"]=>   int(-1)   ["ConsTemp"]=>   int(-1)   ["ValTemp"]=>   string(4) "zero"   ["ValTempExt"]=>   string(4) "zero"   ["StartState"]=>   int(-1)   ["ValHum"]=>   int(-1)   ["Impuls"]=>   int(-1)   ["Trigger"]=>   int(-1)   ["TriggerVal"]=>   int(-1)   ["TargetLowAction"]=>   int(-1)   ["TargetHighAction"]=>   int(-1)   ["TargetLow"]=>   int(-1)   ["TargetHigh"]=>   int(-1)   ["MultiC"]=>   array(0) {   }   ["StatDay"]=>   int(-1)   ["StatMonth"]=>   int(-1)   ["Type"]=>   bool(true) } *
*[2020-02-13 15:55:04][DEBUG] :     +++ Update state - On:1*
*[2020-02-13 15:55:04][DEBUG] : ///////////////// End ///////////////////*

Et la OFF:

*////// Receive from :192.168.XX.XXX //////*
*[2020-02-13 15:55:11][DEBUG] :     Receive after decode :{"devId":"61238008d8f15b0304d2","dps":{"1":false},"t":1581605711}H+9DZdr"lz*
*[2020-02-13 15:55:11][DEBUG] :     Read Json OK*
*[2020-02-13 15:55:11][DEBUG] :     State is:array(50) {   ["Intensity"]=>   int(-1)   ["White"]=>   int(-1)   ["White2"]=>   int(-1)   ["Color"]=>   int(-1)   ["Prog"]=>   int(-1)   ["Speed"]=>   int(-1)   ["On"]=>   int(0)   ["Play"]=>   int(-1)   ["Saturation"]=>   int(-1)   ["Kelvin"]=>   int(-1)   ["Connected"]=>   int(-1)   ["AmbColor"]=>   int(-1)   ["AmbKelvin"]=>   int(-1)   ["AmbWhite"]=>   int(-1)   ["Eye"]=>   int(-1)   ["DiscoNum"]=>   int(-1)   ["NightMode"]=>   int(-1)   ["EyeNotify"]=>   int(-1)   ["CCTAuto"]=>   int(-1)   ["AmbIntensity"]=>   int(-1)   ["AmbOn"]=>   int(-1)   ["Timer"]=>   int(-1)   ["Current"]=>   int(-1)   ["Power"]=>   int(-1)   ["Voltage"]=>   int(-1)   ["Led"]=>   int(-1)   ["Consommation"]=>   int(-1)   ["UpDown"]=>   int(-1)   ["ModeOn"]=>   int(-1)   ["ModeAmb"]=>   int(-1)   ["VitHum"]=>   int(-1)   ["Eco"]=>   int(-1)   ["Locked"]=>   int(-1)   ["Auto"]=>   int(-1)   ["ConsTemp"]=>   int(-1)   ["ValTemp"]=>   string(4) "zero"   ["ValTempExt"]=>   string(4) "zero"   ["StartState"]=>   int(-1)   ["ValHum"]=>   int(-1)   ["Impuls"]=>   int(-1)   ["Trigger"]=>   int(-1)   ["TriggerVal"]=>   int(-1)   ["TargetLowAction"]=>   int(-1)   ["TargetHighAction"]=>   int(-1)   ["TargetLow"]=>   int(-1)   ["TargetHigh"]=>   int(-1)   ["MultiC"]=>   array(0) {   }   ["StatDay"]=>   int(-1)   ["StatMonth"]=>   int(-1)   ["Type"]=>   bool(true) } *
*[2020-02-13 15:55:11][DEBUG] :     +++ Update state - On:0*
*[2020-02-13 15:55:11][DEBUG] : ///////////////// End ///////////////////*

Je te remercie pour ton aide.
Lunix

rien d’anormal jusque là
peux tu aussi donner les logs pour ON et off avec le plugin ?

Voilà les traces après un ON suivi d’un OFF via le plugin:

[2020-02-13 16:05:58][DEBUG] :    Ping @192.168.87.242  diff:21
[2020-02-13 16:05:58][DEBUG] :     Ping done
[2020-02-13 16:05:58][DEBUG] :     Try to connect to : 192.168.87.242  6668
[2020-02-13 16:05:58][DEBUG] :     Connect OK!
[2020-02-13 16:05:58][DEBUG] : ////// Receive from :192.168.87.242 //////
[2020-02-13 16:05:58][DEBUG] :     Receive after decode :H+9DZdr"lz
[2020-02-13 16:05:58][DEBUG] :    No data returned
[2020-02-13 16:05:58][DEBUG] : ///////////////// End ///////////////////
[2020-02-13 16:05:58][DEBUG] :    mDns from :_googlerpc._tcp.local
[2020-02-13 16:05:58][DEBUG] :    mDns from :_googlerpc._tcp.local
[2020-02-13 16:05:59][DEBUG] :     Cmd : {"t":"1581606359","devId":"61238008d8f15b0304d2","dps":{"1":true,"2":"white"},"uid":""}
[2020-02-13 16:05:59][DEBUG] :     Try to connect to : 127.0.0.1  6900
[2020-02-13 16:05:59][DEBUG] :     Connect OK!
[2020-02-13 16:05:59][DEBUG] :     Cmd : {"gwId":"61238008d8f15b0304d2","devId":"61238008d8f15b0304d2"}
[2020-02-13 16:05:59][DEBUG] :     Try to connect to : 127.0.0.1  6900
[2020-02-13 16:05:59][DEBUG] :     Connect OK!
[2020-02-13 16:05:59][DEBUG] :    mDns from :_googlerpc._tcp.local
[2020-02-13 16:05:59][DEBUG] :    Send cmd to device @192.168.87.242
[2020-02-13 16:05:59][DEBUG] :     Try to connect to : 192.168.87.242  6668
[2020-02-13 16:05:59][DEBUG] :     Connect OK!
[2020-02-13 16:05:59][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-02-13 16:05:59][DEBUG] : ////// Receive from :192.168.87.242 //////
[2020-02-13 16:05:59][DEBUG] :     Receive after decode :H+9DZdr"lz
[2020-02-13 16:05:59][DEBUG] :    No data returned
[2020-02-13 16:05:59][DEBUG] :     Receive after decode :{"devId":"61238008d8f15b0304d2","dps":{"1":true,"2":"white"},"t":1581606359}H+9DZdr"lz
[2020-02-13 16:05:59][DEBUG] :     Read Json OK
[2020-02-13 16:05:59][DEBUG] :     State is:array(50) {   ["Intensity"]=>   int(-1)   ["White"]=>   int(-1)   ["White2"]=>   int(-1)   ["Color"]=>   int(-1)   ["Prog"]=>   int(-1)   ["Speed"]=>   int(-1)   ["On"]=>   int(1)   ["Play"]=>   int(-1)   ["Saturation"]=>   int(-1)   ["Kelvin"]=>   int(-1)   ["Connected"]=>   int(-1)   ["AmbColor"]=>   int(-1)   ["AmbKelvin"]=>   int(-1)   ["AmbWhite"]=>   int(-1)   ["Eye"]=>   int(-1)   ["DiscoNum"]=>   int(-1)   ["NightMode"]=>   int(-1)   ["EyeNotify"]=>   int(-1)   ["CCTAuto"]=>   int(-1)   ["AmbIntensity"]=>   int(-1)   ["AmbOn"]=>   int(-1)   ["Timer"]=>   int(-1)   ["Current"]=>   int(-1)   ["Power"]=>   int(-1)   ["Voltage"]=>   int(-1)   ["Led"]=>   int(-1)   ["Consommation"]=>   int(-1)   ["UpDown"]=>   int(-1)   ["ModeOn"]=>   string(5) "white"   ["ModeAmb"]=>   int(-1)   ["VitHum"]=>   int(-1)   ["Eco"]=>   int(-1)   ["Locked"]=>   int(-1)   ["Auto"]=>   int(-1)   ["ConsTemp"]=>   int(-1)   ["ValTemp"]=>   string(4) "zero"   ["ValTempExt"]=>   string(4) "zero"   ["StartState"]=>   int(-1)   ["ValHum"]=>   int(-1)   ["Impuls"]=>   int(-1)   ["Trigger"]=>   int(-1)   ["TriggerVal"]=>   int(-1)   ["TargetLowAction"]=>   int(-1)   ["TargetHighAction"]=>   int(-1)   ["TargetLow"]=>   int(-1)   ["TargetHigh"]=>   int(-1)   ["MultiC"]=>   array(0) {   }   ["StatDay"]=>   int(-1)   ["StatMonth"]=>   int(-1)   ["Type"]=>   bool(true) } 
[2020-02-13 16:06:00][DEBUG] :     +++ Update state - On:1 - ModeOn:white
[2020-02-13 16:06:00][DEBUG] : ///////////////// End ///////////////////
[2020-02-13 16:06:00][DEBUG] :    Send cmd to device @192.168.87.242
[2020-02-13 16:06:00][DEBUG] :     Try to connect to : 192.168.87.242  6668
[2020-02-13 16:06:00][DEBUG] :     Connect OK!
[2020-02-13 16:06:00][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-02-13 16:06:00][DEBUG] : ////// Receive from :192.168.87.242 //////
[2020-02-13 16:06:00][DEBUG] :     Receive after decode :{"devId":"61238008d8f15b0304d2","dps":{"1":true,"2":"white","3":255,"4":98,"5":"ffb369001596ff","6":"fffcf7002607ff","7":"ffff320100ff00","8":"ffff2004ff000000ff000000ffbf00ffxuancai_scen","9":"ffff14011100ff","10":"ffff3205ff000000ff00ffff00ff00ff0000ff"}}H+9DZdr"lz
[2020-02-13 16:06:00][DEBUG] :     Read Json OK
[2020-02-13 16:06:00][DEBUG] :     State is:array(50) {   ["Intensity"]=>   int(-1)   ["White"]=>   int(100)   ["White2"]=>   int(-1)   ["Color"]=>   string(6) "ffb369"   ["Prog"]=>   int(-1)   ["Speed"]=>   int(-1)   ["On"]=>   int(1)   ["Play"]=>   int(-1)   ["Saturation"]=>   int(-1)   ["Kelvin"]=>   float(38.43137254902)   ["Connected"]=>   int(-1)   ["AmbColor"]=>   int(-1)   ["AmbKelvin"]=>   int(-1)   ["AmbWhite"]=>   int(-1)   ["Eye"]=>   int(-1)   ["DiscoNum"]=>   int(-1)   ["NightMode"]=>   int(-1)   ["EyeNotify"]=>   int(-1)   ["CCTAuto"]=>   int(-1)   ["AmbIntensity"]=>   int(-1)   ["AmbOn"]=>   int(-1)   ["Timer"]=>   int(-1)   ["Current"]=>   int(-1)   ["Power"]=>   int(-1)   ["Voltage"]=>   int(-1)   ["Led"]=>   int(-1)   ["Consommation"]=>   int(-1)   ["UpDown"]=>   int(-1)   ["ModeOn"]=>   string(5) "white"   ["ModeAmb"]=>   int(-1)   ["VitHum"]=>   int(-1)   ["Eco"]=>   int(-1)   ["Locked"]=>   int(-1)   ["Auto"]=>   int(-1)   ["ConsTemp"]=>   int(-1)   ["ValTemp"]=>   string(4) "zero"   ["ValTempExt"]=>   string(4) "zero"   ["StartState"]=>   int(-1)   ["ValHum"]=>   int(-1)   ["Impuls"]=>   int(-1)   ["Trigger"]=>   int(-1)   ["TriggerVal"]=>   int(-1)   ["TargetLowAction"]=>   int(-1)   ["TargetHighAction"]=>   int(-1)   ["TargetLow"]=>   int(-1)   ["TargetHigh"]=>   int(-1)   ["MultiC"]=>   array(0) {   }   ["StatDay"]=>   int(-1)   ["StatMonth"]=>   int(-1)   ["Type"]=>   bool(true) } 
[2020-02-13 16:06:00][DEBUG] :     +++ Update state - White:100 - Kelvin:38.43137254902 - On:1 - ModeOn:white
[2020-02-13 16:06:00][DEBUG] : ///////////////// End ///////////////////
[2020-02-13 16:06:00][DEBUG] :    mDns from :_googlerpc._tcp.local
[2020-02-13 16:06:02][DEBUG] :    mDns from :_googlerpc._tcp.local
[2020-02-13 16:06:03][DEBUG] :    mDns from :_googlerpc._tcp.local
[2020-02-13 16:06:04][DEBUG] :    mDns from :_googlerpc._tcp.local
[2020-02-13 16:06:04][DEBUG] :    mDns from :_googlerpc._tcp.local
[2020-02-13 16:06:04][DEBUG] :     Cmd : {"t":"1581606364","devId":"61238008d8f15b0304d2","dps":{"1":false,"2":"white"},"uid":""}
[2020-02-13 16:06:04][DEBUG] :     Try to connect to : 127.0.0.1  6900
[2020-02-13 16:06:04][DEBUG] :     Connect OK!
[2020-02-13 16:06:04][DEBUG] :     Cmd : {"gwId":"61238008d8f15b0304d2","devId":"61238008d8f15b0304d2"}
[2020-02-13 16:06:04][DEBUG] :     Try to connect to : 127.0.0.1  6900
[2020-02-13 16:06:04][DEBUG] :     Connect OK!
[2020-02-13 16:06:05][DEBUG] :    Send cmd to device @192.168.87.242
[2020-02-13 16:06:05][DEBUG] :     Try to connect to : 192.168.87.242  6668
[2020-02-13 16:06:05][DEBUG] :     Connect OK!
[2020-02-13 16:06:05][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-02-13 16:06:05][DEBUG] : ////// Receive from :192.168.87.242 //////
[2020-02-13 16:06:05][DEBUG] :     Receive after decode :H+9DZdr"lz
[2020-02-13 16:06:05][DEBUG] :    No data returned
[2020-02-13 16:06:05][DEBUG] :     Receive after decode :{"devId":"61238008d8f15b0304d2","dps":{"1":false,"2":"white"},"t":1581606365}H+9DZdr"lz
[2020-02-13 16:06:05][DEBUG] :     Read Json OK
[2020-02-13 16:06:05][DEBUG] :     State is:array(50) {   ["Intensity"]=>   int(-1)   ["White"]=>   int(-1)   ["White2"]=>   int(-1)   ["Color"]=>   int(-1)   ["Prog"]=>   int(-1)   ["Speed"]=>   int(-1)   ["On"]=>   int(0)   ["Play"]=>   int(-1)   ["Saturation"]=>   int(-1)   ["Kelvin"]=>   int(-1)   ["Connected"]=>   int(-1)   ["AmbColor"]=>   int(-1)   ["AmbKelvin"]=>   int(-1)   ["AmbWhite"]=>   int(-1)   ["Eye"]=>   int(-1)   ["DiscoNum"]=>   int(-1)   ["NightMode"]=>   int(-1)   ["EyeNotify"]=>   int(-1)   ["CCTAuto"]=>   int(-1)   ["AmbIntensity"]=>   int(-1)   ["AmbOn"]=>   int(-1)   ["Timer"]=>   int(-1)   ["Current"]=>   int(-1)   ["Power"]=>   int(-1)   ["Voltage"]=>   int(-1)   ["Led"]=>   int(-1)   ["Consommation"]=>   int(-1)   ["UpDown"]=>   int(-1)   ["ModeOn"]=>   string(5) "white"   ["ModeAmb"]=>   int(-1)   ["VitHum"]=>   int(-1)   ["Eco"]=>   int(-1)   ["Locked"]=>   int(-1)   ["Auto"]=>   int(-1)   ["ConsTemp"]=>   int(-1)   ["ValTemp"]=>   string(4) "zero"   ["ValTempExt"]=>   string(4) "zero"   ["StartState"]=>   int(-1)   ["ValHum"]=>   int(-1)   ["Impuls"]=>   int(-1)   ["Trigger"]=>   int(-1)   ["TriggerVal"]=>   int(-1)   ["TargetLowAction"]=>   int(-1)   ["TargetHighAction"]=>   int(-1)   ["TargetLow"]=>   int(-1)   ["TargetHigh"]=>   int(-1)   ["MultiC"]=>   array(0) {   }   ["StatDay"]=>   int(-1)   ["StatMonth"]=>   int(-1)   ["Type"]=>   bool(true) } 
[2020-02-13 16:06:05][DEBUG] :     +++ Update state - On:0 - ModeOn:white
[2020-02-13 16:06:05][DEBUG] : ///////////////// End ///////////////////
[2020-02-13 16:06:05][DEBUG] :    Send cmd to device @192.168.87.242
[2020-02-13 16:06:05][DEBUG] :     Try to connect to : 192.168.87.242  6668
[2020-02-13 16:06:05][DEBUG] :     Connect OK!
[2020-02-13 16:06:05][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-02-13 16:06:05][DEBUG] : ////// Receive from :192.168.87.242 //////
[2020-02-13 16:06:05][DEBUG] :     Receive after decode :{"devId":"61238008d8f15b0304d2","dps":{"1":false,"2":"white","3":255,"4":98,"5":"ffb369001596ff","6":"fffcf7002607ff","7":"ffff320100ff00","8":"ffff2004ff000000ff000000ffbf00ffxuancai_scen","9":"ffff14011100ff","10":"ffff3205ff000000ff00ffff00ff00ff0000ff"}}H+9DZdr"lz
[2020-02-13 16:06:05][DEBUG] :     Read Json OK
[2020-02-13 16:06:05][DEBUG] :     State is:array(50) {   ["Intensity"]=>   int(-1)   ["White"]=>   int(100)   ["White2"]=>   int(-1)   ["Color"]=>   string(6) "ffb369"   ["Prog"]=>   int(-1)   ["Speed"]=>   int(-1)   ["On"]=>   int(0)   ["Play"]=>   int(-1)   ["Saturation"]=>   int(-1)   ["Kelvin"]=>   float(38.43137254902)   ["Connected"]=>   int(-1)   ["AmbColor"]=>   int(-1)   ["AmbKelvin"]=>   int(-1)   ["AmbWhite"]=>   int(-1)   ["Eye"]=>   int(-1)   ["DiscoNum"]=>   int(-1)   ["NightMode"]=>   int(-1)   ["EyeNotify"]=>   int(-1)   ["CCTAuto"]=>   int(-1)   ["AmbIntensity"]=>   int(-1)   ["AmbOn"]=>   int(-1)   ["Timer"]=>   int(-1)   ["Current"]=>   int(-1)   ["Power"]=>   int(-1)   ["Voltage"]=>   int(-1)   ["Led"]=>   int(-1)   ["Consommation"]=>   int(-1)   ["UpDown"]=>   int(-1)   ["ModeOn"]=>   string(5) "white"   ["ModeAmb"]=>   int(-1)   ["VitHum"]=>   int(-1)   ["Eco"]=>   int(-1)   ["Locked"]=>   int(-1)   ["Auto"]=>   int(-1)   ["ConsTemp"]=>   int(-1)   ["ValTemp"]=>   string(4) "zero"   ["ValTempExt"]=>   string(4) "zero"   ["StartState"]=>   int(-1)   ["ValHum"]=>   int(-1)   ["Impuls"]=>   int(-1)   ["Trigger"]=>   int(-1)   ["TriggerVal"]=>   int(-1)   ["TargetLowAction"]=>   int(-1)   ["TargetHighAction"]=>   int(-1)   ["TargetLow"]=>   int(-1)   ["TargetHigh"]=>   int(-1)   ["MultiC"]=>   array(0) {   }   ["StatDay"]=>   int(-1)   ["StatMonth"]=>   int(-1)   ["Type"]=>   bool(true) } 
[2020-02-13 16:06:05][DEBUG] :     +++ Update state - White:100 - Kelvin:38.43137254902 - On:0 - ModeOn:white
[2020-02-13 16:06:05][DEBUG] : ///////////////// End ///////////////////
[2020-02-13 16:06:06][DEBUG] :    mDns from :_googlerpc._tcp.local
[2020-02-13 16:06:06][DEBUG] :    Ping @192.168.87.201  diff:21

Peux tu essayer une Ampoule RGBW de type 2 comme config ?
Tu n’utilise pas la bonne config

OK je vais refaire le test ce soir.
J’ai essayé toutes les configs mais je ne suis pas à l’abris de m’être planté à un moment donné.
Donc je reste bien en type TUYA V2, et je bascule sous le sous-type RGBW 2, en supprimant auparavant toutes les commandes c’est bien ça ?

Et voilà les logs.

En RGBW type 2, rien ne fonctionne, juste l’état qui suit bien le ON puis le OFF, sinon, aucune action sur le ruban, ça ne s’allume pas. Si j’allume via Tuya, pas possible d’éteindre ni de changer de couleur ou d’intensité via le plugin.

[2020-02-13 19:35:14][DEBUG] :     Cmd : {"t":"1581618914","devId":"61238008d8f15b0304d2","dps":{"20":true},"uid":""}
[2020-02-13 19:35:14][DEBUG] :     Try to connect to : 127.0.0.1  6900
[2020-02-13 19:35:14][DEBUG] :     Connect OK!
[2020-02-13 19:35:14][DEBUG] :     Cmd : {"gwId":"61238008d8f15b0304d2","devId":"61238008d8f15b0304d2"}
[2020-02-13 19:35:14][DEBUG] :     Try to connect to : 127.0.0.1  6900
[2020-02-13 19:35:14][DEBUG] :     Connect OK!
[2020-02-13 19:35:14][DEBUG] :    mDns from :_googlecast._tcp.local
[2020-02-13 19:35:14][DEBUG] :    Send cmd to device @192.168.87.242
[2020-02-13 19:35:14][DEBUG] :     Try to connect to : 192.168.87.242  6668
[2020-02-13 19:35:14][DEBUG] :     Connect OK!
[2020-02-13 19:35:14][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-02-13 19:35:14][DEBUG] : ////// Receive from :192.168.87.242 //////
[2020-02-13 19:35:14][DEBUG] :     Receive after decode :H+9DZdr"lz
[2020-02-13 19:35:14][DEBUG] :    No data returned
[2020-02-13 19:35:14][DEBUG] : ///////////////// End ///////////////////
[2020-02-13 19:35:14][DEBUG] :    mDns from :_8E6C866D._sub._googlecast._tcp.local
[2020-02-13 19:35:14][DEBUG] :    Send cmd to device @192.168.87.242
[2020-02-13 19:35:14][DEBUG] :     Try to connect to : 192.168.87.242  6668
[2020-02-13 19:35:14][DEBUG] :     Connect OK!
[2020-02-13 19:35:14][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-02-13 19:35:15][DEBUG] : ////// Receive from :192.168.87.242 //////
[2020-02-13 19:35:15][DEBUG] :     Receive after decode :{"devId":"61238008d8f15b0304d2","dps":{"1":false,"2":"white","3":255,"4":98,"5":"ffb369001596ff","6":"fffcf7002607ff","7":"ffff320100ff00","8":"ffff2004ff000000ff000000ffbf00ffxuancai_scen","9":"ffff14011100ff","10":"ffff3205ff000000ff00ffff00ff00ff0000ff"}}H+9DZdr"lz
[2020-02-13 19:35:15][DEBUG] :     Read Json OK
[2020-02-13 19:35:15][DEBUG] :     State is:array(50) {   ["Intensity"]=>   int(-1)   ["White"]=>   int(-1)   ["White2"]=>   int(-1)   ["Color"]=>   int(-1)   ["Prog"]=>   int(-1)   ["Speed"]=>   int(-1)   ["On"]=>   int(-1)   ["Play"]=>   int(-1)   ["Saturation"]=>   int(-1)   ["Kelvin"]=>   int(-1)   ["Connected"]=>   int(-1)   ["AmbColor"]=>   int(-1)   ["AmbKelvin"]=>   int(-1)   ["AmbWhite"]=>   int(-1)   ["Eye"]=>   int(-1)   ["DiscoNum"]=>   int(-1)   ["NightMode"]=>   int(-1)   ["EyeNotify"]=>   int(-1)   ["CCTAuto"]=>   int(-1)   ["AmbIntensity"]=>   int(-1)   ["AmbOn"]=>   int(-1)   ["Timer"]=>   int(-1)   ["Current"]=>   int(-1)   ["Power"]=>   int(-1)   ["Voltage"]=>   int(-1)   ["Led"]=>   int(-1)   ["Consommation"]=>   int(-1)   ["UpDown"]=>   int(-1)   ["ModeOn"]=>   int(-1)   ["ModeAmb"]=>   int(-1)   ["VitHum"]=>   int(-1)   ["Eco"]=>   int(-1)   ["Locked"]=>   int(-1)   ["Auto"]=>   int(-1)   ["ConsTemp"]=>   int(-1)   ["ValTemp"]=>   string(4) "zero"   ["ValTempExt"]=>   string(4) "zero"   ["StartState"]=>   int(-1)   ["ValHum"]=>   int(-1)   ["Impuls"]=>   int(-1)   ["Trigger"]=>   int(-1)   ["TriggerVal"]=>   int(-1)   ["TargetLowAction"]=>   int(-1)   ["TargetHighAction"]=>   int(-1)   ["TargetLow"]=>   int(-1)   ["TargetHigh"]=>   int(-1)   ["MultiC"]=>   array(0) {   }   ["StatDay"]=>   int(-1)   ["StatMonth"]=>   int(-1)   ["Type"]=>   bool(true) }
[2020-02-13 19:35:15][DEBUG] :     +++ Update state
[2020-02-13 19:35:15][DEBUG] : ///////////////// End ///////////////////
[2020-02-13 19:35:15][DEBUG] :    mDns from :_googlecast._tcp.local
[2020-02-13 19:35:16][DEBUG] :    mDns from :_674A0243._sub._googlecast._tcp.local
[2020-02-13 19:35:16][DEBUG] :    mDns from :_8E6C866D._sub._googlecast._tcp.local
[2020-02-13 19:35:16][DEBUG] :    mDns from :_googlecast._tcp.local
[2020-02-13 19:35:17][DEBUG] :    mDns from :Salon._androidtvremote._tcp.local
[2020-02-13 19:35:17][DEBUG] :    mDns from :_674A0243._sub._googlecast._tcp.local
[2020-02-13 19:35:18][DEBUG] :     Cmd : {"t":"1581618918","devId":"61238008d8f15b0304d2","dps":{"20":false},"uid":""}
[2020-02-13 19:35:18][DEBUG] :     Try to connect to : 127.0.0.1  6900
[2020-02-13 19:35:18][DEBUG] :     Connect OK!
[2020-02-13 19:35:18][DEBUG] :     Cmd : {"gwId":"61238008d8f15b0304d2","devId":"61238008d8f15b0304d2"}
[2020-02-13 19:35:18][DEBUG] :     Try to connect to : 127.0.0.1  6900
[2020-02-13 19:35:18][DEBUG] :     Connect OK!
[2020-02-13 19:35:18][DEBUG] :    mDns from :_googlecast._tcp.local
[2020-02-13 19:35:18][DEBUG] :    Send cmd to device @192.168.87.242
[2020-02-13 19:35:18][DEBUG] :     Try to connect to : 192.168.87.242  6668
[2020-02-13 19:35:18][DEBUG] :     Connect OK!
[2020-02-13 19:35:18][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-02-13 19:35:18][DEBUG] : ////// Receive from :192.168.87.242 //////
[2020-02-13 19:35:18][DEBUG] :     Receive after decode :H+9DZdr"lz
[2020-02-13 19:35:18][DEBUG] :    No data returned
[2020-02-13 19:35:18][DEBUG] : ///////////////// End ///////////////////
[2020-02-13 19:35:18][DEBUG] :    mDns from :_674A0243._sub._googlecast._tcp.local
[2020-02-13 19:35:18][DEBUG] :    Send cmd to device @192.168.87.242
[2020-02-13 19:35:18][DEBUG] :     Try to connect to : 192.168.87.242  6668
[2020-02-13 19:35:18][DEBUG] :     Connect OK!
[2020-02-13 19:35:18][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-02-13 19:35:18][DEBUG] : ////// Receive from :192.168.87.242 //////
[2020-02-13 19:35:18][DEBUG] :     Receive after decode :{"devId":"61238008d8f15b0304d2","dps":{"1":false,"2":"white","3":255,"4":98,"5":"ffb369001596ff","6":"fffcf7002607ff","7":"ffff320100ff00","8":"ffff2004ff000000ff000000ffbf00ffxuancai_scen","9":"ffff14011100ff","10":"ffff3205ff000000ff00ffff00ff00ff0000ff"}}H+9DZdr"lz
[2020-02-13 19:35:18][DEBUG] :     Read Json OK
[2020-02-13 19:35:18][DEBUG] :     State is:array(50) {   ["Intensity"]=>   int(-1)   ["White"]=>   int(-1)   ["White2"]=>   int(-1)   ["Color"]=>   int(-1)   ["Prog"]=>   int(-1)   ["Speed"]=>   int(-1)   ["On"]=>   int(-1)   ["Play"]=>   int(-1)   ["Saturation"]=>   int(-1)   ["Kelvin"]=>   int(-1)   ["Connected"]=>   int(-1)   ["AmbColor"]=>   int(-1)   ["AmbKelvin"]=>   int(-1)   ["AmbWhite"]=>   int(-1)   ["Eye"]=>   int(-1)   ["DiscoNum"]=>   int(-1)   ["NightMode"]=>   int(-1)   ["EyeNotify"]=>   int(-1)   ["CCTAuto"]=>   int(-1)   ["AmbIntensity"]=>   int(-1)   ["AmbOn"]=>   int(-1)   ["Timer"]=>   int(-1)   ["Current"]=>   int(-1)   ["Power"]=>   int(-1)   ["Voltage"]=>   int(-1)   ["Led"]=>   int(-1)   ["Consommation"]=>   int(-1)   ["UpDown"]=>   int(-1)   ["ModeOn"]=>   int(-1)   ["ModeAmb"]=>   int(-1)   ["VitHum"]=>   int(-1)   ["Eco"]=>   int(-1)   ["Locked"]=>   int(-1)   ["Auto"]=>   int(-1)   ["ConsTemp"]=>   int(-1)   ["ValTemp"]=>   string(4) "zero"   ["ValTempExt"]=>   string(4) "zero"   ["StartState"]=>   int(-1)   ["ValHum"]=>   int(-1)   ["Impuls"]=>   int(-1)   ["Trigger"]=>   int(-1)   ["TriggerVal"]=>   int(-1)   ["TargetLowAction"]=>   int(-1)   ["TargetHighAction"]=>   int(-1)   ["TargetLow"]=>   int(-1)   ["TargetHigh"]=>   int(-1)   ["MultiC"]=>   array(0) {   }   ["StatDay"]=>   int(-1)   ["StatMonth"]=>   int(-1)   ["Type"]=>   bool(true) }
[2020-02-13 19:35:18][DEBUG] :     +++ Update state
[2020-02-13 19:35:18][DEBUG] : ///////////////// End ///////////////////
[2020-02-13 19:35:19][DEBUG] :    mDns from :_googlecast._tcp.local
[2020-02-13 19:35:19][DEBUG] :    Ping @192.168.87.201  diff:21
[2020-02-13 19:35:19][DEBUG] :    mDns from :_8E6C866D._sub._googlecast._tcp.local

Ok. Crée une commande custom ( voir doc) :
« 1 »:false (doubles guillemets de la touche 3)

Bonjour Bernard,

Des nouvelles de mon problème avec mes lampes MagicHome?
Je vois votre grande aide avec les autres et je me sens un peu à l’écart :slight_smile:

Bonjour à tous,
Je poste ici car je rencontre un problème sur le plugin.
Je tourne sous Jeedom V3 et dernière version actuelle de wifilightv2 (2020-01-26 18:57:24)

J’ai récemment fait l’acquisition d’un thermostat BHT-6000 et l’ai connecté à Wifilightv2 (utilise l’API TuyaSmart v2) sans problème. Je lui ai configuré un bail statique d’IP.
Au début, aucun soucis, puis après quelques jours, le plugin renvoie soudainement un retour d’état à « -3 » sur la commande ConnectedGet.


Voici les logs correspondants :

[2020-02-05 09:49:50][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-02-05 09:49:50][DEBUG] : ****** Device listenable BHT-6000 - Class: Tuya_Therm_V2 *****
[2020-02-05 09:49:50][DEBUG] :    Socket updated @192.168.0.2
[2020-02-05 09:49:50][DEBUG] :    Connection impossible. Err=115 : Operation now in progress
[2020-02-05 09:49:50][DEBUG] :    Update device @192.168.0.2 channel:1
[2020-02-05 09:49:50][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Voilà ce que j’ai tenté :

  • Désactivation/Réactivation du plugin : sans effet
  • Reboot de la box jeedom : sans effet
  • Reboot du wifi de la freebox : sans effet
  • Reboot complet de la freebox : sans effet
  • Changement d’ip du thermostat : sans effet
  • Débranchement/rebranchement électrique du thermostat : hourra !

Pour debug et pour infos, voici les logs correspondants :
Changement d’ip du thermostat (passage de 192.168.0.2 à 192.168.0.17 ):

[2020-02-05 13:09:35][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-02-05 13:09:35][DEBUG] : ****** Device listenable BHT-6000 - Class: Tuya_Therm_V2 *****
[2020-02-05 13:09:36][DEBUG] :    Socket updated @[192.168.0.17](http://192.168.0.17/)
[2020-02-05 13:09:36][DEBUG] :    Connection impossible. Err=115 : Operation now in progress
[2020-02-05 13:09:36][DEBUG] :    ADD New device @[192.168.0.17](http://192.168.0.17/) channel:1
[2020-02-05 13:09:36][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

[2020-02-05 13:10:37][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-02-05 13:10:37][DEBUG] : ****** Device listenable BHT-6000 - Class: Tuya_Therm_V2 *****
[2020-02-05 13:10:37][DEBUG] :    Socket updated @192.168.0.17
[2020-02-05 13:10:37][DEBUG] :    Connection impossible. Err=115 : Operation now in progress
[2020-02-05 13:10:37][DEBUG] :    Update device @192.168.0.17 channel:1
[2020-02-05 13:10:37][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Débranchement électrique :

[2020-02-05 13:12:20][DEBUG] : ////// Receive from :192.168.0.17 //////
[2020-02-05 13:12:20][DEBUG] :     Receive after decode :}F3l=
[2020-02-05 13:12:20][DEBUG] :    No data returned
[2020-02-05 13:12:20][DEBUG] : ///////////////// End ///////////////////

Rebranchement :

[2020-02-05 13:12:39][DEBUG] : ////// Receive from :192.168.0.17 //////
[2020-02-05 13:12:39][DEBUG] :     Receive after decode :{"devId":"47163522cc50e3e6bc92","dps":{"1":true,"2":44,"3":37,"4":"0","5":false,"6":false,"102":0,"103":"1","104":true}}}F3l=
[2020-02-05 13:12:39][DEBUG] :     Read Json OK
[2020-02-05 13:12:39][DEBUG] :     State is:array(50) {   ["Intensity"]=>   int(-1)   ["White"]=>   int(-1)   ["White2"]=>   int(-1)   ["Color"]=>   int(-1)   ["Prog"]=>   int(-1)   ["Speed"]=>   int(-1)   ["On"]=>   int(1)   ["Play"]=>   int(-1)   ["Saturation"]=>   int(-1)   ["Kelvin"]=>   int(-1)   ["Connected"]=>   int(-1)   ["AmbColor"]=> ...
[2020-02-05 13:12:39][DEBUG] :     +++ Update state - On:1 - Auto:0 - ConsTemp:22 - Temp:18.5

Le truc c’est que le thermostat continue d’être pilotable via l’appli mobile sans problème. Ce qui me pousse à croire qu’il y aurai un problème du côté du plugin.
Le problème est apparu 3 fois en 15 jours, avec exactement le même symptome à chaque fois.
Il semblerait que je ne sois pas le seul à avoir eu ce genre de problème. Comme ici ou et . A chaque fois dans les postes, pas de solutions définitives trouvées.

Voilà, désolé pour le post un peu long, mais j’essaye de fournir le maximum d’info pour le debug.

Du coup @bernardfr.caron, qu’en penses-tu ? Merci d’avance pour ton retour

dans les problèmes que tu cite, tous ont été résolu. Souvent par un réappairage du périphérique. Je n’ai pas compris pourquoi l’adresse ip a changé

@EgMaf
Non je n’ai pas de solution, le plugin ne peut se connecter à ton périphérique. Le protocole a peut être été modifié.

C’est moi qui ai changé l’ip pour voir si justement cela corrigeait le problème (hélas non)

Il faut savoir que normalement on ne peut connecter qu’un seul maitre donc soit jeedom soit le tél au périphérique.

Merci Bernard, je vais tenter ça ce weekend.

En revanche, cette commande custom va mettre en fonctionnement les autres ? Car en type 2, rien ne fonctionne …
Je testerai également en type 1 pour voir.

Bon weekend