Wifilight2 & Mija Desk Lamp (résolu)

Bonour à tous

j’ai un petit soucis avec les commandes créer pour la mija desk lamp 1s

Quand je clique sur chaud (warm kelvin) la lampe s’eteind totalement. Je dois la debrancher rebrancher et redemarrer le plugin pour retrouver la lampe.

Merci pour votre aide

avec des logs ce sera plus facile !

Avec le log

[2020-05-16 21:17:59][DEBUG] : >>>>Daemon Started
[2020-05-16 21:17:59][DEBUG] : Memory used :2073 ko 632 o
[2020-05-16 21:17:59][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-16 21:17:59][DEBUG] : ****** Device listenable Yeelight Strip Bibliotheque - Class: YeeLightStrip @192.168.0.169 *****
[2020-05-16 21:17:59][DEBUG] : Key not set
[2020-05-16 21:17:59][DEBUG] : Socket created @192.168.0.169
[2020-05-16 21:17:59][DEBUG] : ADD New device @192.168.0.169 channel:1
[2020-05-16 21:17:59][DEBUG] : Device and socket exist : key:0 @192.168.0.169 channel:1 diff:0
[2020-05-16 21:17:59][DEBUG] : ****** Device listenable Yeelight Strip Entrée - Class: YeeLightStrip @192.168.0.167 *****
[2020-05-16 21:17:59][DEBUG] : Key not set
[2020-05-16 21:17:59][DEBUG] : Socket created @192.168.0.167
[2020-05-16 21:17:59][DEBUG] : ADD New device @192.168.0.167 channel:1
[2020-05-16 21:17:59][DEBUG] : Device and socket exist : key:1 @192.168.0.167 channel:1 diff:0
[2020-05-16 21:17:59][DEBUG] : ****** Device listenable Yeelight Stripe HomeCinéma - Class: YeeLightStrip @192.168.0.168 *****
[2020-05-16 21:17:59][DEBUG] : Key not set
[2020-05-16 21:17:59][DEBUG] : Socket created @192.168.0.168
[2020-05-16 21:17:59][DEBUG] : ADD New device @192.168.0.168 channel:1
[2020-05-16 21:17:59][DEBUG] : Device and socket exist : key:2 @192.168.0.168 channel:1 diff:0
[2020-05-16 21:17:59][DEBUG] : ****** Device listenable Yeelight DeskLamp Droite - Class: YeeLightMijia @192.168.0.165 *****
[2020-05-16 21:17:59][DEBUG] : Key not set
[2020-05-16 21:17:59][DEBUG] : Socket created @192.168.0.165
[2020-05-16 21:17:59][DEBUG] : ADD New device @192.168.0.165 channel:1
[2020-05-16 21:17:59][DEBUG] : Device and socket exist : key:3 @192.168.0.165 channel:1 diff:0
[2020-05-16 21:17:59][DEBUG] : ****** Device listenable Yeelight DeskLamp Gauche - Class: YeeLightMijia @192.168.0.166 *****
[2020-05-16 21:17:59][DEBUG] : Key not set
[2020-05-16 21:17:59][DEBUG] : Socket created @192.168.0.166
[2020-05-16 21:17:59][DEBUG] : ADD New device @192.168.0.166 channel:1
[2020-05-16 21:17:59][DEBUG] : Device and socket exist : key:4 @192.168.0.166 channel:1 diff:0
[2020-05-16 21:17:59][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-16 21:17:59][DEBUG] : Memory used :2194 ko 552 o
[2020-05-16 21:17:59][DEBUG] : Update state @192.168.0.169
[2020-05-16 21:17:59][DEBUG] : Send start
[2020-05-16 21:17:59][DEBUG] : Cmd : {« id »:1,« method »:« get_prop »,« params »:[« power », « bright », « ct », « rgb »,« hue »,« sat »,« color_mode »,« bg_power », « bg_bright », « bg_ct », « bg_rgb », « bg_hue »,« bg_sat »,« bg_lmode »]}
[2020-05-16 21:17:59][DEBUG] : socket_write() error : 0
[2020-05-16 21:17:59][DEBUG] : Try:192.168.0.169 55443 - Connect OK! - return : {« id »:1,« result »:[« off »,« 100 »,« 2900 »,« 16749312 »,« 35 »,« 100 »,« 1 »,"","","","","","",""]} - Read Json OK
[2020-05-16 21:17:59][DEBUG] : Update state - Kelvin:5 - On:0 - Int:100
[2020-05-16 21:17:59][DEBUG] : Update state @192.168.0.167
[2020-05-16 21:17:59][DEBUG] : Send start
[2020-05-16 21:17:59][DEBUG] : Cmd : {« id »:1,« method »:« get_prop »,« params »:[« power », « bright », « ct », « rgb »,« hue »,« sat »,« color_mode »,« bg_power », « bg_bright », « bg_ct », « bg_rgb », « bg_hue »,« bg_sat »,« bg_lmode »]}
[2020-05-16 21:17:59][DEBUG] : socket_write() error : 0
[2020-05-16 21:17:59][DEBUG] : Try:192.168.0.167 55443 - Connect OK! - return : {« id »:1,« result »:[« on »,« 100 »,« 1700 »,« 16749312 »,« 35 »,« 100 »,« 1 »,"","","","","","",""]} - Read Json OK
[2020-05-16 21:17:59][DEBUG] : Update state - Kelvin:-27 - On:1 - Int:100
[2020-05-16 21:17:59][DEBUG] : Update state @192.168.0.168
[2020-05-16 21:17:59][DEBUG] : Send start
[2020-05-16 21:17:59][DEBUG] : Cmd : {« id »:1,« method »:« get_prop »,« params »:[« power », « bright », « ct », « rgb »,« hue »,« sat »,« color_mode »,« bg_power », « bg_bright », « bg_ct », « bg_rgb », « bg_hue »,« bg_sat »,« bg_lmode »]}
[2020-05-16 21:17:59][DEBUG] : socket_write() error : 0
[2020-05-16 21:17:59][DEBUG] : Try:192.168.0.168 55443 - Connect OK! - return : {« id »:1,« result »:[« off »,« 100 »,« 4000 »,« 9713663 »,« 268 »,« 78 »,« 1 »,"","","","","","",""]} - Read Json OK
[2020-05-16 21:17:59][DEBUG] : Update state - Kelvin:34 - On:0 - Int:100
[2020-05-16 21:17:59][DEBUG] : Update state @192.168.0.165
[2020-05-16 21:17:59][DEBUG] : Send start
[2020-05-16 21:17:59][DEBUG] : Cmd : {« id »:1,« method »:« get_prop »,« params »:[« power », « bright », « ct », « rgb »,« hue »,« sat »,« color_mode »,« bg_power », « bg_bright », « bg_ct », « bg_rgb », « bg_hue »,« bg_sat »,« bg_lmode »]}
[2020-05-16 21:17:59][DEBUG] : socket_write() error : 0
[2020-05-16 21:17:59][DEBUG] : Try:192.168.0.165 55443 - Connect OK! - return : {« id »:1,« result »:[« off »,« 100 »,« 2700 »,"","","",« 2 »,"","","","","","",""]} - Read Json OK
[2020-05-16 21:17:59][DEBUG] : Update state - White:100 - Kelvin:-0 - On:0
[2020-05-16 21:17:59][DEBUG] : Update state @192.168.0.166
[2020-05-16 21:17:59][DEBUG] : Send start
[2020-05-16 21:17:59][DEBUG] : Cmd : {« id »:1,« method »:« get_prop »,« params »:[« power », « bright », « ct », « rgb »,« hue »,« sat »,« color_mode »,« bg_power », « bg_bright », « bg_ct », « bg_rgb », « bg_hue »,« bg_sat »,« bg_lmode »]}
[2020-05-16 21:17:59][DEBUG] : socket_write() error : 0
[2020-05-16 21:17:59][DEBUG] : Try:192.168.0.166 55443 - Connect OK! - return : {« id »:1,« result »:[« off »,« 100 »,« 4100 »,"","","",« 2 »,"","","","","","",""]} - Read Json OK
[2020-05-16 21:17:59][DEBUG] : Update state - White:100 - Kelvin:37 - On:0
[2020-05-16 21:18:05][DEBUG] : Send start
[2020-05-16 21:18:05][DEBUG] : Cmd : {« id »:1,« method »:« set_power »,« params »:[« on »,« smooth »,500]}
[2020-05-16 21:18:05][DEBUG] : socket_write() error : 0
[2020-05-16 21:18:05][DEBUG] : No Return
[2020-05-16 21:18:05][DEBUG] : Send start
[2020-05-16 21:18:05][DEBUG] : Cmd : eyJpZCI6MSwibWV0aG9kIjoic2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-16 21:18:05][DEBUG] : socket_write() error : 0
[2020-05-16 21:18:05][DEBUG] : Try:192.168.0.166 55443 - Connect OK! - return : {« method »:« props »,« params »:{« power »:« on »}} - Bad response
[2020-05-16 21:18:05][DEBUG] : !!! End !!!
[2020-05-16 21:18:05][DEBUG] : buf : {« id »:1,« result »:[« ok »]}
[2020-05-16 21:18:05][DEBUG] : dec:{« id »:1,« result »:[« ok »]}
[2020-05-16 21:18:05][DEBUG] : buf:
[2020-05-16 21:18:05][DEBUG] : >>> ret ok
[2020-05-16 21:18:18][DEBUG] : Send start
[2020-05-16 21:18:18][DEBUG] : Cmd : {« id »:1,« method »:« set_power »,« params »:[« on »,« smooth »,500]}
[2020-05-16 21:18:18][DEBUG] : socket_write() error : 0
[2020-05-16 21:18:18][DEBUG] : No Return
[2020-05-16 21:18:18][DEBUG] : Send start
[2020-05-16 21:18:18][DEBUG] : Cmd : {« id »:1, « method »:« set_scene », « params »:[« ct », 2890, 0]}
[2020-05-16 21:18:18][DEBUG] : socket_write() error : 0
[2020-05-16 21:18:18][DEBUG] : No Return
[2020-05-16 21:18:18][DEBUG] : Send start
[2020-05-16 21:18:18][DEBUG] : Cmd : eyJpZCI6MSwibWV0aG9kIjoic2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-16 21:18:18][DEBUG] : socket_write() error : 0
[2020-05-16 21:18:18][DEBUG] : Try:192.168.0.166 55443 - Connect OK! - return : {« id »:1,« result »:[« ok »]} - Read Json OK
[2020-05-16 21:18:18][DEBUG] : !!! End !!!
[2020-05-16 21:18:18][DEBUG] : Send start
[2020-05-16 21:18:18][DEBUG] : Cmd : eyJpZCI6MSwgIm1ldGhvZCI6InNldF9zY2VuZSIsICJwYXJhbXMiOlsiY3QiLCAyODkwLCAwXX0NCg==
[2020-05-16 21:18:18][DEBUG] : socket_write() error : 0
[2020-05-16 21:18:18][DEBUG] : Try:192.168.0.166 55443 - Connect OK! - return : {« method »:« props »,« params »:{« power »:« off »}} - Bad response
[2020-05-16 21:18:18][DEBUG] : !!! End !!!
[2020-05-16 21:18:18][DEBUG] : buf : {« id »:1,« result »:[« ok »]}
[2020-05-16 21:18:18][DEBUG] : dec:{« id »:1,« result »:[« ok »]}
[2020-05-16 21:18:18][DEBUG] : buf:
[2020-05-16 21:18:18][DEBUG] : >>> ret ok

il faut que tu me dises les commandes que tu as faites avec le plugin en me donnant l’heure.

je vois.
Peux tu tester avec la version beta du plugin ?
Sauf si tu as du nanoleaf.
Donc tu attends que le demon soit passé 2 fois pour qu’il trouve les lampes
dès qu’il est passé la 2ème fois, tu fais une commande qui pose problème et tu attends 5 s ente 2 commandes. Tu notes bien l’heure (avec les sec) et quelle commande.

La dernière beta du plugin est en release, tu peux l’utiliser sans souci.
Dis moi pour que je puisse aider. mais normalement le souci est réglé.

je l’ai mis
et ca ne fonctionne toujours pas

[2020-05-18 09:35:20][DEBUG] : Update state - Kelvin:5 - On:0 - Int:100
[2020-05-18 09:35:36][DEBUG] : Send start
[2020-05-18 09:35:36][DEBUG] : Cmd : {« id »:1,« method »:« set_power »,« params »:[« on »,« smooth »,500]}
[2020-05-18 09:35:36][DEBUG] : socket_write() error : 0
[2020-05-18 09:35:36][DEBUG] : No Return
[2020-05-18 09:35:36][DEBUG] : Send start
[2020-05-18 09:35:36][DEBUG] : Cmd : {« id »:1, « method »:« set_scene », « params »:[« ct », 2890, 0]}
[2020-05-18 09:35:36][DEBUG] : socket_write() error : 0
[2020-05-18 09:35:36][DEBUG] : No Return
[2020-05-18 09:35:36][DEBUG] : Send start
[2020-05-18 09:35:36][DEBUG] : Cmd : eyJpZCI6MSwibWV0aG9kIjoic2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-18 09:35:36][DEBUG] : socket_write() error : 0
[2020-05-18 09:35:36][DEBUG] : Try:192.168.0.166 55443 - Connect OK! - return : {« id »:1,« result »:[« ok »]} - Read Json OK
[2020-05-18 09:35:36][DEBUG] : !!! End !!!

est ce que avant tu as bien mis intensité à autre chose que zéro puis après la température ?
essaye dans ce sens et donnemoi les logs :
intensité à 60%
puis temp de couleur

la lampe est deja allumée et je passe juste la commande temp chaud

EDIT:
j’ai mis la lampe a 50% en manuel
et cliqué sur chaud

[2020-05-18 09:39:54][DEBUG] : Send start
[2020-05-18 09:39:54][DEBUG] : Cmd : {« id »:1,« method »:« set_power »,« params »:[« on »,« smooth »,500]}
[2020-05-18 09:39:54][DEBUG] : socket_write() error : 0
[2020-05-18 09:39:54][DEBUG] : No Return
[2020-05-18 09:39:54][DEBUG] : Send start
[2020-05-18 09:39:54][DEBUG] : Cmd : {« id »:1, « method »:« set_scene », « params »:[« ct », 2890, 0]}
[2020-05-18 09:39:54][DEBUG] : socket_write() error : 0
[2020-05-18 09:39:54][DEBUG] : No Return
[2020-05-18 09:39:54][DEBUG] : Send start
[2020-05-18 09:39:54][DEBUG] : Cmd : eyJpZCI6MSwibWV0aG9kIjoic2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-18 09:39:54][DEBUG] : socket_write() error : 0
[2020-05-18 09:39:54][DEBUG] : Try:192.168.0.166 55443 - Connect OK! - return : {« id »:1,« result »:[« ok »]} - Read Json OK
[2020-05-18 09:39:54][DEBUG] : !!! End !!!
[2020-05-18 09:39:54][DEBUG] : Send start
[2020-05-18 09:39:54][DEBUG] : Cmd : eyJpZCI6MSwgIm1ldGhvZCI6InNldF9zY2VuZSIsICJwYXJhbXMiOlsiY3QiLCAyODkwLCAwXX0NCg==
[2020-05-18 09:39:54][DEBUG] : socket_write() error : 0
[2020-05-18 09:39:54][DEBUG] : Try:192.168.0.166 55443 - Connect OK! - return : {« method »:« props »,« params »:{« power »:« off »}} - Bad response
[2020-05-18 09:39:54][DEBUG] : !!! End !!!
[2020-05-18 09:39:54][DEBUG] : buf : {« id »:1,« result »:[« ok »]}
[2020-05-18 09:39:54][DEBUG] : dec:{« id »:1,« result »:[« ok »]}
[2020-05-18 09:39:54][DEBUG] : buf:
[2020-05-18 09:39:54][DEBUG] : >>> ret ok

je te demande avec le plugin de mettre une intensité puis une température

[2020-05-18 10:23:56][DEBUG] : Send start
[2020-05-18 10:23:56][DEBUG] : Cmd : {« id »:1,« method »:« set_power »,« params »:[« on »,« smooth »,500]}
[2020-05-18 10:23:56][DEBUG] : socket_write() error : 0
[2020-05-18 10:23:56][DEBUG] : No Return
[2020-05-18 10:23:56][DEBUG] : Send start
[2020-05-18 10:23:56][DEBUG] : Cmd : {« id »:1, « method »:« set_scene », « params »:[« ct », 5436, 56]}
[2020-05-18 10:23:56][DEBUG] : socket_write() error : 0
[2020-05-18 10:23:56][DEBUG] : No Return
[2020-05-18 10:23:56][DEBUG] : Send start
[2020-05-18 10:23:56][DEBUG] : Cmd : eyJpZCI6MSwibWV0aG9kIjoic2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-18 10:23:56][DEBUG] : socket_write() error : 0
[2020-05-18 10:23:56][DEBUG] : Try:192.168.0.166 55443 - Connect OK! - return : {« id »:1,« result »:[« ok »]} - Read Json OK
[2020-05-18 10:23:56][DEBUG] : !!! End !!!
[2020-05-18 10:23:56][DEBUG] : Send start
[2020-05-18 10:23:56][DEBUG] : Cmd : eyJpZCI6MSwgIm1ldGhvZCI6InNldF9zY2VuZSIsICJwYXJhbXMiOlsiY3QiLCA1NDM2LCA1Nl19DQo=
[2020-05-18 10:23:56][DEBUG] : socket_write() error : 0
[2020-05-18 10:23:56][DEBUG] : Try:192.168.0.166 55443 - Connect OK! - return : {« method »:« props »,« params »:{« bright »:56}} - Bad response
[2020-05-18 10:23:56][DEBUG] : !!! End !!!
[2020-05-18 10:23:56][DEBUG] : buf : {« id »:1,« result »:[« ok »]}
[2020-05-18 10:23:56][DEBUG] : dec:{« id »:1,« result »:[« ok »]}
[2020-05-18 10:23:56][DEBUG] : buf:
[2020-05-18 10:23:56][DEBUG] : >>> ret ok
[2020-05-18 10:23:58][DEBUG] : Send start
[2020-05-18 10:23:58][DEBUG] : Cmd : {« id »:1,« method »:« set_power »,« params »:[« on »,« smooth »,500]}
[2020-05-18 10:23:58][DEBUG] : socket_write() error : 0
[2020-05-18 10:23:58][DEBUG] : No Return
[2020-05-18 10:23:58][DEBUG] : Send start
[2020-05-18 10:23:58][DEBUG] : Cmd : {« id »:1, « method »:« set_scene », « params »:[« ct », 4258, 56]}
[2020-05-18 10:23:58][DEBUG] : socket_write() error : 0
[2020-05-18 10:23:58][DEBUG] : No Return
[2020-05-18 10:23:58][DEBUG] : Send start
[2020-05-18 10:23:58][DEBUG] : Cmd : eyJpZCI6MSwibWV0aG9kIjoic2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-18 10:23:58][DEBUG] : socket_write() error : 0
[2020-05-18 10:23:58][DEBUG] : Try:192.168.0.166 55443 - Connect OK! - return : {« id »:1,« result »:[« ok »]} - Read Json OK
[2020-05-18 10:23:58][DEBUG] : !!! End !!!
[2020-05-18 10:23:58][DEBUG] : Send start
[2020-05-18 10:23:58][DEBUG] : Cmd : eyJpZCI6MSwgIm1ldGhvZCI6InNldF9zY2VuZSIsICJwYXJhbXMiOlsiY3QiLCA0MjU4LCA1Nl19DQo=
[2020-05-18 10:23:58][DEBUG] : socket_write() error : 0
[2020-05-18 10:23:58][DEBUG] : Try:192.168.0.166 55443 - Connect OK! - return : {« method »:« props »,« params »:{« ct »:4258}} - Bad response
[2020-05-18 10:23:58][DEBUG] : !!! End !!!
[2020-05-18 10:23:58][DEBUG] : buf : {« id »:1,« result »:[« ok »]}
[2020-05-18 10:23:58][DEBUG] : dec:{« id »:1,« result »:[« ok »]}
[2020-05-18 10:23:58][DEBUG] : buf:
[2020-05-18 10:23:58][DEBUG] : >>> ret ok

normalement dans cette séquence, quand tu as fait ct, la lampe ne s’est pas éteinte

je joue sur le slider.

Oui la lampe ne fait que varier la temperature sans planter.

Si j’utilise chaud … boum la lampe plante (je dois la debrancher rebrancher)

ok
je vais faire des modifs pour cette lampe.
On reste sur ce fil, je te dis quand tu peux tester et on fait comme cela jusqu’à ce que l’on converge

Ca me va super

Par ailleurs (et apres discussion avec Nebz) pour ce type de luminaire, tu geres la temp en pourcentage et pour la compatibilité avec homekit il faudrait des kelvins. Ca te parle ?

Merci beaucoup pour ta dispo et ton aide (et au moins avec ton plugin je vois mes lamps alors qu’avec celui de lunarok elles disparaissent au bout de 2min … ce que je ne comprends pas)

nouvelle beta
Il faut sauvegarder l’équipement avant.
refaire le test

Pour ce qui est de la temp c’est du % et je ne paux pas chnager cela car le plugin prend en compte de nombreux périphériques et les plugins (du plugin) ramènent tout en %

j’ai sauvegardé l’equipement
installé la nouvelle beta

pareil ca fait planter la lampe

il faut sauvegarder après avoir installé la beta

j’ai sauvegardé apres install

pareil
la lampe s’eteind

donne moi les logs