[résolu] Debian 10 Buster & wifilightv2 : erreur

En effet quand je désactive le nanoleaf, le daemon reste actif.
Avec le nanoleaf, il plante après quelques secondes.

Je n’ai rien vu dans http.error.

Dis moi si je peux faire des tests ou t’envoyer des logs.

La beta d’il y a 2min contient des traces pour le nanoleaf pour voir où est le plantage. Tu m’envoies les logs.

@naboleo : peux tu retester ?

Il doit y avoir une erreur de syntaxe ou bien git n’est pas bien passé

[Tue May 12 19:51:34.510596 2020] [php7:error] [pid 21892] [client 192.168.1.49:51124] PHP Fatal error:  Uncaught Error: Class 'W2_YeeLightJiaoyue650' not found in /var/www/html/plugins/wifilightV2/core/class/wifilightV2.class.php:1916
Stack trace:
#0 /var/www/html/plugins/wifilightV2/core/class/wifilightV2.class.php(1891): wifilightV2Cmd->UpdateCmd(Array, 0, '#000000')
#1 /var/www/html/core/class/cmd.class.php(1096): wifilightV2Cmd->execute(Array)
#2 /var/www/html/core/ajax/cmd.ajax.php(88): cmd->execCmd(Array)
#3 {main}
  thrown in /var/www/html/plugins/wifilightV2/core/class/wifilightV2.class.php on line 1916, referer: https://xxxxxxxxxxxxxx/index.php?v=d&p=dashboard&object_id=4

oui, fausse manip, j’ai voulu aller trop vite. Recharge beta

Pas de changement à première vue, fonctionnement OK mais état KO


[2020-05-12 19:59:46][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=wifilightV2 function=pre_update callInstallFunction=1
[2020-05-12 19:59:49][INFO] : Début d'activation du plugin
[2020-05-12 19:59:50][INFO] : Info sur le démon : {"log":"","state":"nok","launchable":"ok","launchable_message":"Gestion automatique d\u00e9sactiv\u00e9e","auto":"0","last_launch":"2020-05-12 19:55:03"}
[2020-05-12 19:59:50][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=wifilightV2 function=update callInstallFunction=1
[2020-05-12 20:00:05][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2020-05-12 20:00:05][DEBUG] : Mem --->:1745
[2020-05-12 20:01:13][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=wifilightV2 function=pre_update callInstallFunction=1
[2020-05-12 20:01:16][INFO] : Début d'activation du plugin
[2020-05-12 20:01:17][INFO] : Info sur le démon : {"launchable_message":"","launchable":"nok","state":"nok","log":"nok","auto":0}
[2020-05-12 20:01:17][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=wifilightV2 function=update callInstallFunction=1
[2020-05-12 20:03:20][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=wifilightV2 function=pre_update callInstallFunction=1
[2020-05-12 20:03:22][INFO] : Début d'activation du plugin
[2020-05-12 20:03:23][INFO] : Info sur le démon : {"log":"","state":"nok","launchable":"ok","launchable_message":"Gestion automatique d\u00e9sactiv\u00e9e","auto":"0","last_launch":"2020-05-12 20:00:05"}
[2020-05-12 20:03:23][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=wifilightV2 function=update callInstallFunction=1
[2020-05-12 20:04:25][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2020-05-12 20:04:25][DEBUG] : >>>>Daemon Started
[2020-05-12 20:04:25][DEBUG] :    Memory used :1588 ko 496 o 
[2020-05-12 20:04:25][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-12 20:04:25][DEBUG] : ****** Device NOT listenable Ilôt central - Class: MagicUFO *****
[2020-05-12 20:04:25][DEBUG] :     Cmd : 81 8a 8b 96  - try: 192.168.1.24 - 5577 - try to Send - return:81 4 24 61 1 10 92 e0 ff 0 5 0 f0 81 
[2020-05-12 20:04:26][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-12 20:04:26][DEBUG] : ****** Device NOT listenable Plan de travail - Class: MagicUFO *****
[2020-05-12 20:04:26][DEBUG] :     Cmd : 81 8a 8b 96  - try: 192.168.1.25 - 5577 - try to Send - return:81 4 24 61 1 10 92 e0 ff 0 5 0 f0 81 
[2020-05-12 20:04:26][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-12 20:04:26][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-12 20:04:26][DEBUG] :    Key not set
[2020-05-12 20:04:26][DEBUG] :    Socket created  @192.168.1.79
[2020-05-12 20:04:26][DEBUG] :    ADD New device @192.168.1.79 channel:1
[2020-05-12 20:04:26][DEBUG] :    Device and socket exist : key:0 @192.168.1.79 channel:1 diff:0
[2020-05-12 20:04:26][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-12 20:04:26][DEBUG] :   Memory used :1618 ko 40 o 
[2020-05-12 20:04:26][DEBUG] :    Update state @192.168.1.79
[2020-05-12 20:04:26][DEBUG] :     Send start
[2020-05-12 20:04:26][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-12 20:04:26][DEBUG] :     socket_write() error : 0
[2020-05-12 20:04:26][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["off","100","3500","","","","2","off","100","3500","10927071","218","25","1"]}  - Read Json OK
[2020-05-12 20:04:26][DEBUG] :     Update state - White:100 - Kelvin:21 - On:0 - ColAmb:#a6bbdf - IntAmb:100 - AmbKe:21 - AmbOn:0 - AmbInt:100
[2020-05-12 20:04:37][DEBUG] :     Send start
[2020-05-12 20:04:37][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]} 
[2020-05-12 20:04:37][DEBUG] :     socket_write() error : 0
[2020-05-12 20:04:37][DEBUG] :     No Return
[2020-05-12 20:04:37][DEBUG] :     Send start
[2020-05-12 20:04:37][DEBUG] :     Cmd : xxxxxxxxxxxxxx0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-12 20:04:37][DEBUG] :     socket_write() error : 0
[2020-05-12 20:04:37][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"on","power":"on"}}  - Bad response
[2020-05-12 20:04:37][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-12 20:04:37][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-12 20:04:37][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-12 20:04:37][DEBUG] :     buf:
[2020-05-12 20:04:37][DEBUG] :     >>> ret ok
[2020-05-12 20:04:42][DEBUG] :     Send start
[2020-05-12 20:04:42][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["off","smooth",500]} 
[2020-05-12 20:04:42][DEBUG] :     socket_write() error : 0
[2020-05-12 20:04:42][DEBUG] :     No Return
[2020-05-12 20:04:42][DEBUG] :     Send start
[2020-05-12 20:04:42][DEBUG] :     Cmd : xxxxxxxxxxxxxx0X3Bvd2VyIiwicGFyYW1zIjpbIm9mZiIsInNtb290aCIsNTAwXX0NCg==
[2020-05-12 20:04:42][DEBUG] :     socket_write() error : 0
[2020-05-12 20:04:42][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"off","power":"off"}}  - Bad response
[2020-05-12 20:04:42][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-12 20:04:42][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-12 20:04:42][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-12 20:04:42][DEBUG] :     buf:
[2020-05-12 20:04:42][DEBUG] :     >>> ret ok
[2020-05-12 20:05:27][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-12 20:05:27][DEBUG] : ****** Device NOT listenable Ilôt central - Class: MagicUFO *****
[2020-05-12 20:05:27][DEBUG] :     Cmd : 81 8a 8b 96  - try: 192.168.1.24 - 5577 - try to Send - return:81 4 24 61 1 10 92 e0 ff 0 5 0 f0 81 
[2020-05-12 20:05:27][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-12 20:05:27][DEBUG] : ****** Device NOT listenable Plan de travail - Class: MagicUFO *****
[2020-05-12 20:05:27][DEBUG] :     Cmd : 81 8a 8b 96  - try: 192.168.1.25 - 5577 - try to Send - return:81 4 24 61 1 10 92 e0 ff 0 5 0 f0 81 
[2020-05-12 20:05:27][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-12 20:05:27][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-12 20:05:27][DEBUG] :    Device and socket exist : key:0 @192.168.1.79 channel:1 diff:45
[2020-05-12 20:05:27][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-12 20:05:27][DEBUG] :   Memory used :1748 ko 648 o 
[2020-05-12 20:06:28][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-12 20:06:28][DEBUG] : ****** Device NOT listenable Ilôt central - Class: MagicUFO *****
[2020-05-12 20:06:28][DEBUG] :     Cmd : 81 8a 8b 96  - try: 192.168.1.24 - 5577 - try to Send - return:81 4 24 61 1 10 92 e0 ff 0 5 0 f0 81 
[2020-05-12 20:06:28][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-12 20:06:28][DEBUG] : ****** Device NOT listenable Plan de travail - Class: MagicUFO *****
[2020-05-12 20:06:28][DEBUG] :     Cmd : 81 8a 8b 96  - try: 192.168.1.25 - 5577 - try to Send - return:81 4 24 61 1 10 92 e0 ff 0 5 0 f0 81 
[2020-05-12 20:06:28][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-12 20:06:28][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-12 20:06:28][DEBUG] :    Device and socket exist : key:0 @192.168.1.79 channel:1 diff:106
[2020-05-12 20:06:28][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-12 20:06:28][DEBUG] :   Memory used :1748 ko 648 o 
[2020-05-12 20:07:29][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-12 20:07:29][DEBUG] : ****** Device NOT listenable Ilôt central - Class: MagicUFO *****
[2020-05-12 20:07:29][DEBUG] :     Cmd : 81 8a 8b 96  - try: 192.168.1.24 - 5577 - try to Send - return:81 4 24 61 1 10 92 e0 ff 0 5 0 f0 81 
[2020-05-12 20:07:29][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-12 20:07:29][DEBUG] : ****** Device NOT listenable Plan de travail - Class: MagicUFO *****
[2020-05-12 20:07:29][DEBUG] :     Cmd : 81 8a 8b 96  - try: 192.168.1.25 - 5577 - try to Send - return:81 4 24 61 1 10 92 e0 ff 0 5 0 f0 81 
[2020-05-12 20:07:29][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-12 20:07:29][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-12 20:07:29][DEBUG] :    Device and socket exist : key:0 @192.168.1.79 channel:1 diff:167
[2020-05-12 20:07:29][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-12 20:07:29][DEBUG] :   Memory used :1748 ko 648 o 
[2020-05-12 20:08:30][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-12 20:08:30][DEBUG] : ****** Device NOT listenable Ilôt central - Class: MagicUFO *****
[2020-05-12 20:08:30][DEBUG] :     Cmd : 81 8a 8b 96  - try: 192.168.1.24 - 5577 - try to Send - return:81 4 24 61 1 10 92 e0 ff 0 5 0 f0 81 
[2020-05-12 20:08:30][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-12 20:08:30][DEBUG] : ****** Device NOT listenable Plan de travail - Class: MagicUFO *****
[2020-05-12 20:08:30][DEBUG] :     Cmd : 81 8a 8b 96  - try: 192.168.1.25 - 5577 - try to Send - return:81 4 24 61 1 10 92 e0 ff 0 5 0 f0 81 
[2020-05-12 20:08:30][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-12 20:08:30][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-12 20:08:30][DEBUG] :    Device and socket exist : key:0 @192.168.1.79 channel:1 diff:228
[2020-05-12 20:08:30][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-12 20:08:30][DEBUG] :   Memory used :1748 ko 648 o 
[2020-05-12 20:08:54][DEBUG] :     Send start
[2020-05-12 20:08:54][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["on","smooth",500]} 
[2020-05-12 20:08:54][DEBUG] :     socket_write() error : 0
[2020-05-12 20:08:54][DEBUG] :     No Return
[2020-05-12 20:08:54][DEBUG] :     Send start
[2020-05-12 20:08:54][DEBUG] :     Cmd : eyJpZCI6MSwibWV0aG9kIjoiYmdfc2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-12 20:08:54][DEBUG] :     socket_write() error : 0
[2020-05-12 20:08:54][DEBUG] :     Send start
[2020-05-12 20:08:54][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-12 20:08:54][DEBUG] :     socket_write() error : 0
[2020-05-12 20:08:54][DEBUG] :     No Return
[2020-05-12 20:08:54][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"on","power":"on"}}  - Bad response
[2020-05-12 20:08:54][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-12 20:08:54][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-12 20:08:54][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-12 20:08:54][DEBUG] :     buf:
[2020-05-12 20:08:54][DEBUG] :     >>> ret ok
[2020-05-12 20:08:54][DEBUG] :     Send start
[2020-05-12 20:08:54][DEBUG] :     Cmd : xxxxxxxxxxxxxxyb3AiLCJwYXJhbXMiOlsicG93ZXIiLCAiYnJpZ2h0IiwgImN0IiwgInJnYiIsImh1ZSIsInNhdCIsImNvbG9yX21vZGUiLCJiZ19wb3dlciIsICJiZ19icmlnaHQiLCAiYmdfY3QiLCAiYmdfcmdiIiwgImJnX2h1ZSIsImJnX3NhdCIsImJnX2xtb2RlIl19DQo=
[2020-05-12 20:08:54][DEBUG] :     socket_write() error : 0
[2020-05-12 20:08:54][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["on","100","3500","","","","2","on","100","3500","10927071","218","25","1"]}  - Read Json OK
[2020-05-12 20:08:54][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-12 20:09:00][DEBUG] :     Send start
[2020-05-12 20:09:00][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["off","smooth",500]} 
[2020-05-12 20:09:00][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:00][DEBUG] :     No Return
[2020-05-12 20:09:00][DEBUG] :     Send start
[2020-05-12 20:09:00][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-12 20:09:00][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:00][DEBUG] :     No Return
[2020-05-12 20:09:00][DEBUG] :     Send start
[2020-05-12 20:09:00][DEBUG] :     Cmd : eyJpZCI6MSwibWV0aG9kIjoiYmdfc2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9mZiIsInNtb290aCIsNTAwXX0NCg==
[2020-05-12 20:09:00][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:00][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"off","power":"off"}}  - Bad response
[2020-05-12 20:09:00][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-12 20:09:00][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-12 20:09:00][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-12 20:09:00][DEBUG] :     buf:
[2020-05-12 20:09:00][DEBUG] :     >>> ret ok
[2020-05-12 20:09:00][DEBUG] :     Send start
[2020-05-12 20:09:00][DEBUG] :     Cmd : xxxxxxxxxxxxxxyb3AiLCJwYXJhbXMiOlsicG93ZXIiLCAiYnJpZ2h0IiwgImN0IiwgInJnYiIsImh1ZSIsInNhdCIsImNvbG9yX21vZGUiLCJiZ19wb3dlciIsICJiZ19icmlnaHQiLCAiYmdfY3QiLCAiYmdfcmdiIiwgImJnX2h1ZSIsImJnX3NhdCIsImJnX2xtb2RlIl19DQo=
[2020-05-12 20:09:00][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:00][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["off","100","3500","","","","2","off","100","3500","10927071","218","25","1"]}  - Read Json OK
[2020-05-12 20:09:00][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-12 20:09:04][DEBUG] :     Send start
[2020-05-12 20:09:04][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["on","smooth",500]} 
[2020-05-12 20:09:04][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:04][DEBUG] :     No Return
[2020-05-12 20:09:04][DEBUG] :     Send start
[2020-05-12 20:09:04][DEBUG] :     Cmd : eyJpZCI6MSwibWV0aG9kIjoiYmdfc2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-12 20:09:04][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:04][DEBUG] :     Send start
[2020-05-12 20:09:04][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-12 20:09:04][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:04][DEBUG] :     No Return
[2020-05-12 20:09:04][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"on","power":"on"}}  - Bad response
[2020-05-12 20:09:04][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-12 20:09:04][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-12 20:09:04][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-12 20:09:04][DEBUG] :     buf:
[2020-05-12 20:09:04][DEBUG] :     >>> ret ok
[2020-05-12 20:09:04][DEBUG] :     Send start
[2020-05-12 20:09:04][DEBUG] :     Cmd : xxxxxxxxxxxxxxyb3AiLCJwYXJhbXMiOlsicG93ZXIiLCAiYnJpZ2h0IiwgImN0IiwgInJnYiIsImh1ZSIsInNhdCIsImNvbG9yX21vZGUiLCJiZ19wb3dlciIsICJiZ19icmlnaHQiLCAiYmdfY3QiLCAiYmdfcmdiIiwgImJnX2h1ZSIsImJnX3NhdCIsImJnX2xtb2RlIl19DQo=
[2020-05-12 20:09:04][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:04][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["on","100","3500","","","","2","on","100","3500","10927071","218","25","1"]}  - Read Json OK
[2020-05-12 20:09:04][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-12 20:09:07][DEBUG] :     Send start
[2020-05-12 20:09:07][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["off","smooth",500]} 
[2020-05-12 20:09:07][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:07][DEBUG] :     No Return
[2020-05-12 20:09:07][DEBUG] :     Send start
[2020-05-12 20:09:07][DEBUG] :     Cmd : eyJpZCI6MSwibWV0aG9kIjoiYmdfc2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9mZiIsInNtb290aCIsNTAwXX0NCg==
[2020-05-12 20:09:07][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:07][DEBUG] :     Send start
[2020-05-12 20:09:07][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-12 20:09:07][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:07][DEBUG] :     No Return
[2020-05-12 20:09:07][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"off","power":"off"}}  - Bad response
[2020-05-12 20:09:07][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-12 20:09:07][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-12 20:09:07][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-12 20:09:07][DEBUG] :     buf:
[2020-05-12 20:09:07][DEBUG] :     >>> ret ok
[2020-05-12 20:09:07][DEBUG] :     Send start
[2020-05-12 20:09:07][DEBUG] :     Cmd : xxxxxxxxxxxxxxyb3AiLCJwYXJhbXMiOlsicG93ZXIiLCAiYnJpZ2h0IiwgImN0IiwgInJnYiIsImh1ZSIsInNhdCIsImNvbG9yX21vZGUiLCJiZ19wb3dlciIsICJiZ19icmlnaHQiLCAiYmdfY3QiLCAiYmdfcmdiIiwgImJnX2h1ZSIsImJnX3NhdCIsImJnX2xtb2RlIl19DQo=
[2020-05-12 20:09:07][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:07][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["off","100","3500","","","","2","off","100","3500","10927071","218","25","1"]}  - Read Json OK
[2020-05-12 20:09:07][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-12 20:09:09][DEBUG] :     Send start
[2020-05-12 20:09:09][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]} 
[2020-05-12 20:09:09][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:09][DEBUG] :     No Return
[2020-05-12 20:09:09][DEBUG] :     Send start
[2020-05-12 20:09:09][DEBUG] :     Cmd : xxxxxxxxxxxxxx0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-12 20:09:09][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:09][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"on","power":"on"}}  - Bad response
[2020-05-12 20:09:09][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-12 20:09:09][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-12 20:09:09][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-12 20:09:09][DEBUG] :     buf:
[2020-05-12 20:09:09][DEBUG] :     >>> ret ok
[2020-05-12 20:09:13][DEBUG] :     Send start
[2020-05-12 20:09:13][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["off","smooth",500]} 
[2020-05-12 20:09:13][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:13][DEBUG] :     No Return
[2020-05-12 20:09:13][DEBUG] :     Send start
[2020-05-12 20:09:13][DEBUG] :     Cmd : xxxxxxxxxxxxxx0X3Bvd2VyIiwicGFyYW1zIjpbIm9mZiIsInNtb290aCIsNTAwXX0NCg==
[2020-05-12 20:09:13][DEBUG] :     socket_write() error : 0
[2020-05-12 20:09:13][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"off","power":"off"}}  - Bad response
[2020-05-12 20:09:13][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-12 20:09:13][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-12 20:09:13][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-12 20:09:13][DEBUG] :     buf:
[2020-05-12 20:09:13][DEBUG] :     >>> ret ok

EDIT, Complément avec action que la partie ambiance
A ta dispo si besoin

bonjour @bernardfr.caron

J’ai installé la beta de cette nuit …
Voilà les traces.
J’ai fini par viré les widget sur les commandes on/off pour y voir plus clair… Physiquement tout est OK. Je pense que le comportement est différent chez moi depuis une 10aine de jours environ… Et que coté zone d’ambiance du lustre l’état est parfaitement géré (mieux qu’avant que je pense même)
wifilight

Voici les logs associés …


[2020-05-13 09:22:38][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-13 09:22:38][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-13 09:22:38][DEBUG] :    Device and socket exist : key:0 @192.168.1.79 channel:1 diff:549
[2020-05-13 09:22:38][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-13 09:22:38][DEBUG] :   Memory used :2039 ko 488 o 
[2020-05-13 09:23:06][DEBUG] :     Send start
[2020-05-13 09:23:06][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]} 
[2020-05-13 09:23:06][DEBUG] : new sock
[2020-05-13 09:23:06][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:06][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-13 09:23:06][DEBUG] :     Send start
[2020-05-13 09:23:06][DEBUG] :     Cmd : xxxxxxxxxxxxxxxxxxxvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-13 09:23:06][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:06][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"on","power":"on"}}  - Bad response
[2020-05-13 09:23:06][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-13 09:23:06][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-13 09:23:06][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-13 09:23:06][DEBUG] :     buf:
[2020-05-13 09:23:06][DEBUG] :     >>> ret ok
[2020-05-13 09:23:09][DEBUG] :     Send start
[2020-05-13 09:23:09][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["off","smooth",500]} 
[2020-05-13 09:23:09][DEBUG] : new sock
[2020-05-13 09:23:09][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:09][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["off","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-13 09:23:09][DEBUG] :     Send start
[2020-05-13 09:23:09][DEBUG] :     Cmd : xxxxxxxxxxxxxxxxxxxvd2VyIiwicGFyYW1zIjpbIm9mZiIsInNtb290aCIsNTAwXX0NCg==
[2020-05-13 09:23:09][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:09][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"off","power":"off"}}  - Bad response
[2020-05-13 09:23:09][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-13 09:23:09][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-13 09:23:09][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-13 09:23:09][DEBUG] :     buf:
[2020-05-13 09:23:09][DEBUG] :     >>> ret ok
[2020-05-13 09:23:11][DEBUG] :     Send start
[2020-05-13 09:23:11][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["on","smooth",500]} 
[2020-05-13 09:23:11][DEBUG] : new sock
[2020-05-13 09:23:11][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:11][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["on","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-13 09:23:11][DEBUG] :     Send start
[2020-05-13 09:23:11][DEBUG] :     Cmd : xxxxxxxxxxxxxxxxxxx2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-13 09:23:11][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:11][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"on","power":"on"}}  - Bad response
[2020-05-13 09:23:11][DEBUG] :     Send start
[2020-05-13 09:23:11][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-13 09:23:11][DEBUG] : new sock
[2020-05-13 09:23:11][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:11][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"]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-13 09:23:11][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-13 09:23:11][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-13 09:23:11][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-13 09:23:11][DEBUG] :     buf:
[2020-05-13 09:23:11][DEBUG] :     >>> ret ok
[2020-05-13 09:23:11][DEBUG] :     Send start
[2020-05-13 09:23:11][DEBUG] :     Cmd : xxxxxxxxxxxxxxxxxxxiLCJwYXJhbXMiOlsicG93ZXIiLCAiYnJpZ2h0IiwgImN0IiwgInJnYiIsImh1ZSIsInNhdCIsImNvbG9yX21vZGUiLCJiZ19wb3dlciIsICJiZ19icmlnaHQiLCAiYmdfY3QiLCAiYmdfcmdiIiwgImJnX2h1ZSIsImJnX3NhdCIsImJnX2xtb2RlIl19DQo=
[2020-05-13 09:23:11][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:11][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["on","100","3500","","","","2","on","100","3500","10927071","218","25","1"]}  - Read Json OK
[2020-05-13 09:23:11][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-13 09:23:16][DEBUG] :     Send start
[2020-05-13 09:23:16][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["off","smooth",500]} 
[2020-05-13 09:23:16][DEBUG] : new sock
[2020-05-13 09:23:16][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:16][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["off","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-13 09:23:16][DEBUG] :     Send start
[2020-05-13 09:23:16][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["off","smooth",500]} 
[2020-05-13 09:23:16][DEBUG] : new sock
[2020-05-13 09:23:16][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:16][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["off","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-13 09:23:16][DEBUG] :     Send start
[2020-05-13 09:23:16][DEBUG] :     Cmd : xxxxxxxxxxxxxxxxxxx2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9mZiIsInNtb290aCIsNTAwXX0NCg==
[2020-05-13 09:23:16][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:16][DEBUG] :     Send start
[2020-05-13 09:23:16][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-13 09:23:16][DEBUG] : new sock
[2020-05-13 09:23:16][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:16][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"]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-13 09:23:16][DEBUG] :     Send start
[2020-05-13 09:23:16][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-13 09:23:16][DEBUG] : new sock
[2020-05-13 09:23:16][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:16][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"]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-13 09:23:16][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"off","power":"off"}}  - Bad response
[2020-05-13 09:23:16][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-13 09:23:16][DEBUG] :     Send start
[2020-05-13 09:23:16][DEBUG] :     Cmd : xxxxxxxxxxxxxxxxxxx2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9mZiIsInNtb290aCIsNTAwXX0NCg==
[2020-05-13 09:23:16][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:16][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["ok"]}  - Read Json OK
[2020-05-13 09:23:16][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-13 09:23:16][DEBUG] :     Send start
[2020-05-13 09:23:16][DEBUG] :     Cmd : xxxxxxxxxxxxxxxxxxxiLCJwYXJhbXMiOlsicG93ZXIiLCAiYnJpZ2h0IiwgImN0IiwgInJnYiIsImh1ZSIsInNhdCIsImNvbG9yX21vZGUiLCJiZ19wb3dlciIsICJiZ19icmlnaHQiLCAiYmdfY3QiLCAiYmdfcmdiIiwgImJnX2h1ZSIsImJnX3NhdCIsImJnX2xtb2RlIl19DQo=
[2020-05-13 09:23:16][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:16][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["ok"]}  - Read Json OK
[2020-05-13 09:23:16][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-13 09:23:16][DEBUG] :     buf : {"id":1,"result":["off","100","3500","","","","2","off","100","3500","10927071","218","25","1"]} 
[2020-05-13 09:23:16][DEBUG] :     dec:{"id":1,"result":["off","100","3500","","","","2","off","100","3500","10927071","218","25","1"]}
[2020-05-13 09:23:16][DEBUG] :     buf:
[2020-05-13 09:23:16][DEBUG] :     Read Json OK
[2020-05-13 09:23:16][DEBUG] :    Tuya Device or Yeelight Bulb
[2020-05-13 09:23:16][DEBUG] :     Update state - White:100 - Kelvin:21 - On:0 - ColAmb:#a6bbdf - IntAmb:100 - AmbKe:21 - AmbOn:0 - AmbInt:100
[2020-05-13 09:23:16][DEBUG] :     Send start
[2020-05-13 09:23:16][DEBUG] :     Cmd : xxxxxxxxxxxxxxxxxxxiLCJwYXJhbXMiOlsicG93ZXIiLCAiYnJpZ2h0IiwgImN0IiwgInJnYiIsImh1ZSIsInNhdCIsImNvbG9yX21vZGUiLCJiZ19wb3dlciIsICJiZ19icmlnaHQiLCAiYmdfY3QiLCAiYmdfcmdiIiwgImJnX2h1ZSIsImJnX3NhdCIsImJnX2xtb2RlIl19DQo=
[2020-05-13 09:23:16][DEBUG] :     socket_write() error : 0
[2020-05-13 09:23:16][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["off","100","3500","","","","2","off","100","3500","10927071","218","25","1"]}  - Read Json OK
[2020-05-13 09:23:16][DEBUG] : !!!!!!!!! End !!!!!!!!!!

Donc on valide.
J’ai juste filtré le retour d’état :

{"method":"props","params":{"power":"off","power":"off"}}

Ca me gonfle de devoir faire un cas particulier pour une lampe qui ne renvoie pas son état comme dans la doc.

en fait dans la dernière beta le dernier 'power" est remplacé par « bg_power »
donc normalement le retour d’état est OK

Salut,
Bg_power ça a du sens !
Je viens d’installer la version « 2020-05-14 16:29:52 ».
J’ai pas constaté de changement coté widget et/ou log par rapport à la version précédente :

  • L’état du widget n’est pas à jour après allumage pour la partie éclairage principale. Pour l’ambiance ça fonctionne bien
  • Les traces restent avec 2 fois power…

J’ai raté ou pas compris un truc ?

le filtrage n’est pas affiché.
tu dis que le On principal est KO sur le widget ?
mais OK sur le 2ème
il me faut quand même les logs et je vais ajouter des traces voir dernière beta

Oui, exactement pour les états, l’animation est visible dans mon message précédent et montre le comportement du widget. Je la remets ici car c’est toujours d’actualité
image
Je viens de faire exactement le même test on général/off général/on ambiance/off ambiance

Voilà les traces avec la dernière beta : 2020-05-14 19:48:16

[2020-05-14 20:11:09][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-14 20:11:09][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-14 20:11:09][DEBUG] :    Device and socket exist : key:0 @192.168.1.79 channel:1 diff:122
[2020-05-14 20:11:09][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-14 20:11:09][DEBUG] :   Memory used :4009 ko 72 o 
[2020-05-14 20:11:18][DEBUG] :     Send start
[2020-05-14 20:11:18][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]} 
[2020-05-14 20:11:18][DEBUG] : new sock
[2020-05-14 20:11:18][DEBUG] :     socket_write() error : 0
[2020-05-14 20:11:18][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-14 20:11:18][DEBUG] :     Send start
[2020-05-14 20:11:18][DEBUG] :     Cmd : xxxxxxxxxxxxxxc2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-14 20:11:18][DEBUG] :     socket_write() error : 0
[2020-05-14 20:11:18][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"on","power":"on"}}  - Bad response
[2020-05-14 20:11:18][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-14 20:11:18][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-14 20:11:18][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-14 20:11:18][DEBUG] :     buf:
[2020-05-14 20:11:18][DEBUG] :     >>> : id | 1 : 1
[2020-05-14 20:11:18][DEBUG] :     >>> : result | Array : Array
[2020-05-14 20:11:18][DEBUG] :     >>> ret ok
[2020-05-14 20:11:21][DEBUG] :     Send start
[2020-05-14 20:11:21][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["off","smooth",500]} 
[2020-05-14 20:11:21][DEBUG] : new sock
[2020-05-14 20:11:21][DEBUG] :     socket_write() error : 0
[2020-05-14 20:11:21][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["off","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-14 20:11:21][DEBUG] :     Send start
[2020-05-14 20:11:21][DEBUG] :     Cmd : xxxxxxxxxxxxxxc2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9mZiIsInNtb290aCIsNTAwXX0NCg==
[2020-05-14 20:11:21][DEBUG] :     socket_write() error : 0
[2020-05-14 20:11:21][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"off","power":"off"}}  - Bad response
[2020-05-14 20:11:21][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-14 20:11:21][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-14 20:11:21][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-14 20:11:21][DEBUG] :     buf:
[2020-05-14 20:11:21][DEBUG] :     >>> : id | 1 : 1
[2020-05-14 20:11:21][DEBUG] :     >>> : result | Array : Array
[2020-05-14 20:11:21][DEBUG] :     >>> ret ok
[2020-05-14 20:11:24][DEBUG] :     Send start
[2020-05-14 20:11:24][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["on","smooth",500]} 
[2020-05-14 20:11:24][DEBUG] : new sock
[2020-05-14 20:11:24][DEBUG] :     socket_write() error : 0
[2020-05-14 20:11:24][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["on","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-14 20:11:24][DEBUG] :     Send start
[2020-05-14 20:11:24][DEBUG] :     Cmd : xxxxxxxxxxxxxxYmdfc2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-14 20:11:24][DEBUG] :     socket_write() error : 0
[2020-05-14 20:11:24][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"on","power":"on"}}  - Bad response
[2020-05-14 20:11:24][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-14 20:11:24][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-14 20:11:24][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-14 20:11:24][DEBUG] :     buf:
[2020-05-14 20:11:24][DEBUG] :     >>> : id | 1 : 1
[2020-05-14 20:11:24][DEBUG] :     >>> : result | Array : Array
[2020-05-14 20:11:24][DEBUG] :     >>> ret ok
[2020-05-14 20:11:24][DEBUG] :     Send start
[2020-05-14 20:11:24][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-14 20:11:24][DEBUG] : new sock
[2020-05-14 20:11:24][DEBUG] :     socket_write() error : 0
[2020-05-14 20:11:24][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"]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-14 20:11:24][DEBUG] :     Send start
[2020-05-14 20:11:24][DEBUG] :     Cmd : xxxxxxxxxxxxxxZ2V0X3Byb3AiLCJwYXJhbXMiOlsicG93ZXIiLCAiYnJpZ2h0IiwgImN0IiwgInJnYiIsImh1ZSIsInNhdCIsImNvbG9yX21vZGUiLCJiZ19wb3dlciIsICJiZ19icmlnaHQiLCAiYmdfY3QiLCAiYmdfcmdiIiwgImJnX2h1ZSIsImJnX3NhdCIsImJnX2xtb2RlIl19DQo=
[2020-05-14 20:11:24][DEBUG] :     socket_write() error : 0
[2020-05-14 20:11:24][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["on","100","3500","","","","2","on","100","3500","10927071","218","25","1"]}  - Read Json OK
[2020-05-14 20:11:24][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-14 20:11:26][DEBUG] :     Send start
[2020-05-14 20:11:26][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["off","smooth",500]} 
[2020-05-14 20:11:26][DEBUG] : new sock
[2020-05-14 20:11:26][DEBUG] :     socket_write() error : 0
[2020-05-14 20:11:26][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["off","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-14 20:11:26][DEBUG] :     Send start
[2020-05-14 20:11:26][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-14 20:11:26][DEBUG] : new sock
[2020-05-14 20:11:26][DEBUG] :     socket_write() error : 0
[2020-05-14 20:11:26][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"]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-14 20:11:26][DEBUG] :     Send start
[2020-05-14 20:11:26][DEBUG] :     Cmd : xxxxxxxxxxxxxxYmdfc2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9mZiIsInNtb290aCIsNTAwXX0NCg==
[2020-05-14 20:11:26][DEBUG] :     socket_write() error : 0
[2020-05-14 20:11:26][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"off","power":"off"}}  - Bad response
[2020-05-14 20:11:26][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-14 20:11:26][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-14 20:11:26][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-14 20:11:26][DEBUG] :     buf:
[2020-05-14 20:11:26][DEBUG] :     >>> : id | 1 : 1
[2020-05-14 20:11:26][DEBUG] :     >>> : result | Array : Array
[2020-05-14 20:11:26][DEBUG] :     >>> ret ok
[2020-05-14 20:11:26][DEBUG] :     Send start
[2020-05-14 20:11:26][DEBUG] :     Cmd : xxxxxxxxxxxxxxZ2V0X3Byb3AiLCJwYXJhbXMiOlsicG93ZXIiLCAiYnJpZ2h0IiwgImN0IiwgInJnYiIsImh1ZSIsInNhdCIsImNvbG9yX21vZGUiLCJiZ19wb3dlciIsICJiZ19icmlnaHQiLCAiYmdfY3QiLCAiYmdfcmdiIiwgImJnX2h1ZSIsImJnX3NhdCIsImJnX2xtb2RlIl19DQo=
[2020-05-14 20:11:26][DEBUG] :     socket_write() error : 0
[2020-05-14 20:11:26][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["off","100","3500","","","","2","off","100","3500","10927071","218","25","1"]}  - Read Json OK
[2020-05-14 20:11:26][DEBUG] : !!!!!!!!! End !!!!!!!!!!

tu as bien pris la dernière beta ?
car le filtrage marche pas visiblement

oui j’ai pas plus récent sur le market

réessaye dernière beta

Là le comportement est différent :

On/Off général => sans effet sur le widget
On ambiance => les 2 états passent à ON
Off Ambiance => seul l’état ambiance passe à OFF. L’état général reste sur ON

Les traces


[2020-05-14 21:03:28][DEBUG] :     Send start
[2020-05-14 21:03:28][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["off","smooth",500]} 
[2020-05-14 21:03:28][DEBUG] : new sock
[2020-05-14 21:03:29][DEBUG] :     socket_connect() failed. Reason: () Connection refused
[2020-05-14 21:03:56][DEBUG] :     Send start
[2020-05-14 21:03:56][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]} 
[2020-05-14 21:03:56][DEBUG] : new sock
[2020-05-14 21:03:57][DEBUG] :     socket_connect() failed. Reason: () Connection refused
[2020-05-14 21:04:09][DEBUG] :     Send start
[2020-05-14 21:04:09][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["off","smooth",500]} 
[2020-05-14 21:04:09][DEBUG] : new sock
[2020-05-14 21:04:09][DEBUG] :     socket_connect() failed. Reason: () Connection refused
[2020-05-14 21:05:06][DEBUG] : >>>>Daemon Started
[2020-05-14 21:05:06][DEBUG] :    Memory used :1655 ko 784 o 
[2020-05-14 21:05:06][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-14 21:05:06][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-14 21:05:06][DEBUG] :    Key not set
[2020-05-14 21:05:06][DEBUG] :    Socket created  @192.168.1.79
[2020-05-14 21:05:06][DEBUG] :    ADD New device @192.168.1.79 channel:1
[2020-05-14 21:05:06][DEBUG] :    Device and socket exist : key:0 @192.168.1.79 channel:1 diff:0
[2020-05-14 21:05:06][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-14 21:05:06][DEBUG] :   Memory used :1764 ko 688 o 
[2020-05-14 21:05:06][DEBUG] :    Update state @192.168.1.79
[2020-05-14 21:05:06][DEBUG] :     Send start
[2020-05-14 21:05:06][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-14 21:05:06][DEBUG] :     socket_write() error : 0
[2020-05-14 21:05:06][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["off","100","3500","","","","2","off","100","3500","10927071","218","25","1"]}  - Read Json OK
[2020-05-14 21:05:06][DEBUG] :     Update state - White:100 - Kelvin:21 - On:0 - ColAmb:#a6bbdf - IntAmb:100 - AmbKe:21 - AmbOn:0 - AmbInt:100
[2020-05-14 21:06:07][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-14 21:06:07][DEBUG] : ****** Device NOT listenable Ilôt central - Class: MagicUFO *****
[2020-05-14 21:06:07][DEBUG] :     Cmd : 81 8a 8b 96  - try: 192.168.1.24 - 5577 - try to Send - return:81 4 24 61 1 10 0 0 ff 0 5 0 f0 f 
[2020-05-14 21:06:07][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-14 21:06:07][DEBUG] : ****** Device NOT listenable Plan de travail - Class: MagicUFO *****
[2020-05-14 21:06:07][DEBUG] :     Cmd : 81 8a 8b 96  - try: 192.168.1.25 - 5577 - try to Send - return:81 4 24 61 1 10 0 0 ff 0 5 0 f0 f 
[2020-05-14 21:06:07][DEBUG] :     Update state - White:0 - prog:61 - speed:53 - On:0
[2020-05-14 21:06:07][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-14 21:06:07][DEBUG] :    Device and socket exist : key:0 @192.168.1.79 channel:1 diff:61
[2020-05-14 21:06:07][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-14 21:06:07][DEBUG] :   Memory used :1813 ko 80 o 
[2020-05-14 21:06:16][DEBUG] :     Send start
[2020-05-14 21:06:16][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]} 
[2020-05-14 21:06:16][DEBUG] : new sock
[2020-05-14 21:06:16][DEBUG] :     socket_write() error : 0
[2020-05-14 21:06:16][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-14 21:06:16][DEBUG] :     Send start
[2020-05-14 21:06:16][DEBUG] :     Cmd : xxxxxxxxxxxxxxc2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-14 21:06:16][DEBUG] :     socket_write() error : 0
[2020-05-14 21:06:16][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"on","power":"on"}}  - Bad response
[2020-05-14 21:06:16][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-14 21:06:16][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-14 21:06:16][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-14 21:06:16][DEBUG] :     buf:
[2020-05-14 21:06:16][DEBUG] :     buf:{"id":1,"result":["ok"]}
[2020-05-14 21:06:16][DEBUG] :     >>> : id | 1 : 1
[2020-05-14 21:06:16][DEBUG] :     >>> : result | Array : Array
[2020-05-14 21:06:16][DEBUG] :     >>> ret ok
[2020-05-14 21:06:19][DEBUG] :     Send start
[2020-05-14 21:06:19][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["off","smooth",500]} 
[2020-05-14 21:06:19][DEBUG] : new sock
[2020-05-14 21:06:19][DEBUG] :     socket_write() error : 0
[2020-05-14 21:06:19][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["off","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-14 21:06:19][DEBUG] :     Send start
[2020-05-14 21:06:19][DEBUG] :     Cmd : xxxxxxxxxxxxxxc2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9mZiIsInNtb290aCIsNTAwXX0NCg==
[2020-05-14 21:06:19][DEBUG] :     socket_write() error : 0
[2020-05-14 21:06:19][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"off","power":"off"}}  - Bad response
[2020-05-14 21:06:19][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-14 21:06:19][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-14 21:06:19][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-14 21:06:19][DEBUG] :     buf:
[2020-05-14 21:06:19][DEBUG] :     buf:{"id":1,"result":["ok"]}
[2020-05-14 21:06:19][DEBUG] :     >>> : id | 1 : 1
[2020-05-14 21:06:19][DEBUG] :     >>> : result | Array : Array
[2020-05-14 21:06:19][DEBUG] :     >>> ret ok
[2020-05-14 21:06:21][DEBUG] :     Send start
[2020-05-14 21:06:21][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["on","smooth",500]} 
[2020-05-14 21:06:21][DEBUG] : new sock
[2020-05-14 21:06:21][DEBUG] :     socket_write() error : 0
[2020-05-14 21:06:21][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["on","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-14 21:06:21][DEBUG] :     Send start
[2020-05-14 21:06:21][DEBUG] :     Cmd : xxxxxxxxxxxxxxYmdfc2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9uIiwic21vb3RoIiw1MDBdfQ0K
[2020-05-14 21:06:21][DEBUG] :     socket_write() error : 0
[2020-05-14 21:06:21][DEBUG] :     Send start
[2020-05-14 21:06:21][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-14 21:06:21][DEBUG] : new sock
[2020-05-14 21:06:21][DEBUG] :     socket_write() error : 0
[2020-05-14 21:06:21][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"]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-14 21:06:21][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"on","power":"on"}}  - Bad response
[2020-05-14 21:06:21][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-14 21:06:21][DEBUG] :     Send start
[2020-05-14 21:06:21][DEBUG] :     Cmd : xxxxxxxxxxxxxxZ2V0X3Byb3AiLCJwYXJhbXMiOlsicG93ZXIiLCAiYnJpZ2h0IiwgImN0IiwgInJnYiIsImh1ZSIsInNhdCIsImNvbG9yX21vZGUiLCJiZ19wb3dlciIsICJiZ19icmlnaHQiLCAiYmdfY3QiLCAiYmdfcmdiIiwgImJnX2h1ZSIsImJnX3NhdCIsImJnX2xtb2RlIl19DQo=
[2020-05-14 21:06:21][DEBUG] :     socket_write() error : 0
[2020-05-14 21:06:21][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["ok"]}  - Read Json OK
[2020-05-14 21:06:21][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-14 21:06:21][DEBUG] :     buf : {"id":1,"result":["on","100","3500","","","","2","on","100","3500","10927071","218","25","1"]} 
[2020-05-14 21:06:21][DEBUG] :     dec:{"id":1,"result":["on","100","3500","","","","2","on","100","3500","10927071","218","25","1"]}
[2020-05-14 21:06:21][DEBUG] :     buf:
[2020-05-14 21:06:21][DEBUG] :     buf:{"id":1,"result":["on","100","3500","","","","2","on","100","3500","10927071","218","25","1"]}
[2020-05-14 21:06:21][DEBUG] :     >>> : id | 1 : 1
[2020-05-14 21:06:21][DEBUG] :     >>> : result | Array : Array
[2020-05-14 21:06:21][DEBUG] :     Read Json OK
[2020-05-14 21:06:21][DEBUG] :    Tuya Device or Yeelight Bulb
[2020-05-14 21:06:21][DEBUG] :     Update state - White:100 - Kelvin:21 - On:1 - ColAmb:#a6bbdf - IntAmb:100 - AmbKe:21 - AmbOn:1 - AmbInt:100
[2020-05-14 21:06:25][DEBUG] :     Send start
[2020-05-14 21:06:25][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["off","smooth",500]} 
[2020-05-14 21:06:25][DEBUG] : new sock
[2020-05-14 21:06:25][DEBUG] :     socket_write() error : 0
[2020-05-14 21:06:25][DEBUG] :     Cmd : {"id":1,"method":"bg_set_power","params":["off","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-14 21:06:25][DEBUG] :     Send start
[2020-05-14 21:06:25][DEBUG] :     Cmd : xxxxxxxxxxxxxxYmdfc2V0X3Bvd2VyIiwicGFyYW1zIjpbIm9mZiIsInNtb290aCIsNTAwXX0NCg==
[2020-05-14 21:06:25][DEBUG] :     socket_write() error : 0
[2020-05-14 21:06:26][DEBUG] :     Send start
[2020-05-14 21:06:26][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-14 21:06:26][DEBUG] : new sock
[2020-05-14 21:06:26][DEBUG] :     socket_write() error : 0
[2020-05-14 21:06:26][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"]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-14 21:06:26][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"method":"props","params":{"power":"off","power":"off"}}  - Bad response
[2020-05-14 21:06:26][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-14 21:06:26][DEBUG] :     buf : {"id":1,"result":["ok"]} 
[2020-05-14 21:06:26][DEBUG] :     dec:{"id":1,"result":["ok"]}
[2020-05-14 21:06:26][DEBUG] :     buf:
[2020-05-14 21:06:26][DEBUG] :     buf:{"id":1,"result":["ok"]}
[2020-05-14 21:06:26][DEBUG] :     >>> : id | 1 : 1
[2020-05-14 21:06:26][DEBUG] :     >>> : result | Array : Array
[2020-05-14 21:06:26][DEBUG] :     >>> ret ok
[2020-05-14 21:06:26][DEBUG] :     Send start
[2020-05-14 21:06:26][DEBUG] :     Cmd : xxxxxxxxxxxxxxZ2V0X3Byb3AiLCJwYXJhbXMiOlsicG93ZXIiLCAiYnJpZ2h0IiwgImN0IiwgInJnYiIsImh1ZSIsInNhdCIsImNvbG9yX21vZGUiLCJiZ19wb3dlciIsICJiZ19icmlnaHQiLCAiYmdfY3QiLCAiYmdfcmdiIiwgImJnX2h1ZSIsImJnX3NhdCIsImJnX2xtb2RlIl19DQo=
[2020-05-14 21:06:26][DEBUG] :     socket_write() error : 0
[2020-05-14 21:06:26][DEBUG] :     Try:192.168.1.79  55443 - Connect OK! - return : {"id":1,"result":["off","100","3500","","","","2","off","100","3500","10927071","218","25","1"]}  - Read Json OK
[2020-05-14 21:06:26][DEBUG] : !!!!!!!!! End !!!!!!!!!!

nouvelle beta
j’ai fait une grosse modif.

  1. démarrer le demon, attendre 1min qu’il repasse
  2. juste après faire un ON
    ->logs

Salut…

Mise à jour laborieuse, j’ai l’impression qu’il reste d’anciens processus… Je vais rebooter le pi

[2020-05-15 09:16:03][DEBUG] :     Send start
[2020-05-15 09:16:03][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]} 
[2020-05-15 09:16:03][DEBUG] : new sock
[2020-05-15 09:16:03][DEBUG] :     socket_connect() failed. Reason: () Connection refused

Aprsè reboot ça semble un peu mieux, mais pas de changement du comportement du widget pour l’éclairage principal


[2020-05-15 09:23:06][DEBUG] :     Send start
[2020-05-15 09:23:06][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]} 
[2020-05-15 09:23:06][DEBUG] : new sock
[2020-05-15 09:23:06][DEBUG] :     socket_write() error : 0
[2020-05-15 09:23:06][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]}  - Try:127.0.0.1  6900 - Connect OK! - No return
[2020-05-15 09:23:06][DEBUG] : !!!!!!!!! End !!!!!!!!!!

Coté ambiance, le visuellement le on/off/etat est parfait (sans effet de bord sur l’éclairage principal). Fonctionnellement par contre le off n’étends pas réellement l’éclairage d’ambiance

Je ne sais pas comment il est possible de rendre les choses plus simples à debugger.

ces logs sont très incomplets, je ne peux pas en faire grand chose pour diagnostiquer.
relance le demon
attend qu’il tourne 2 fois (soir plus d’1 minute)
et dès qu’il a tourné une 2ème fois : ON puis OFF

Je veux bien produire plus de logs, mais ça semble compliqué …


 Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement

Voilà la trace intégrale sur 5min … Avec on/off à la fin…


[2020-05-15 10:30:03][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2020-05-15 10:30:05][DEBUG] : >>>>Daemon Started
[2020-05-15 10:30:05][DEBUG] :    Memory used :1655 ko 784 o 
[2020-05-15 10:30:05][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-15 10:30:06][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-15 10:30:06][DEBUG] :    Key not set
[2020-05-15 10:30:06][DEBUG] :    Socket created  @192.168.1.79
[2020-05-15 10:30:06][DEBUG] :    ADD New device @192.168.1.79 channel:1
[2020-05-15 10:30:06][DEBUG] :    Device and socket exist : key:0 @192.168.1.79 channel:1 diff:0
[2020-05-15 10:30:06][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-15 10:30:06][DEBUG] :   Memory used :1684 ko 328 o 
[2020-05-15 10:30:06][DEBUG] :    Update state @192.168.1.79
[2020-05-15 10:30:06][DEBUG] :     Send start
[2020-05-15 10:30:06][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-15 10:30:06][DEBUG] :     socket_write() error : 0
[2020-05-15 10:30:06][ERROR] : Erreur sur wifilightV2::daemon() : Call to undefined function Decode()
[2020-05-15 10:30:18][DEBUG] :     Send start
[2020-05-15 10:30:18][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]} 
[2020-05-15 10:30:18][DEBUG] : new sock
[2020-05-15 10:30:19][DEBUG] :     socket_connect() failed. Reason: () Connection refused
[2020-05-15 10:30:22][DEBUG] :     Send start
[2020-05-15 10:30:22][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["off","smooth",500]} 
[2020-05-15 10:30:22][DEBUG] : new sock
[2020-05-15 10:30:23][DEBUG] :     socket_connect() failed. Reason: () Connection refused
[2020-05-15 10:31:19][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2020-05-15 10:31:19][DEBUG] : >>>>Daemon Started
[2020-05-15 10:31:19][DEBUG] :    Memory used :1656 ko 744 o 
[2020-05-15 10:31:19][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-15 10:31:20][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-15 10:31:20][DEBUG] :    Key not set
[2020-05-15 10:31:20][DEBUG] :    Socket created  @192.168.1.79
[2020-05-15 10:31:20][DEBUG] :    Connection impossible. Err=115 : Operation now in progress
[2020-05-15 10:31:20][DEBUG] :    ADD New device @192.168.1.79 channel:1
[2020-05-15 10:31:20][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-15 10:31:20][DEBUG] :   Memory used :1685 ko 256 o 
[2020-05-15 10:32:21][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-15 10:32:21][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-15 10:32:21][DEBUG] :    Key:0  time diff:61
[2020-05-15 10:32:21][DEBUG] :    Wait to update
[2020-05-15 10:32:21][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-15 10:32:21][DEBUG] :   Memory used :1733 ko 216 o 
[2020-05-15 10:33:22][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-15 10:33:22][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-15 10:33:22][DEBUG] :    Key:0  time diff:122
[2020-05-15 10:33:22][DEBUG] :    Socket updated @192.168.1.79
[2020-05-15 10:33:22][DEBUG] :    Update device @192.168.1.79 channel:1
[2020-05-15 10:33:22][DEBUG] :    Device and socket exist : key:0 @192.168.1.79 channel:1 diff:0
[2020-05-15 10:33:22][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-15 10:33:22][DEBUG] :   Memory used :1783 ko 104 o 
[2020-05-15 10:33:22][DEBUG] :    Update state @192.168.1.79
[2020-05-15 10:33:22][DEBUG] :     Send start
[2020-05-15 10:33:22][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-15 10:33:22][DEBUG] :     socket_write() error : 0
[2020-05-15 10:33:22][ERROR] : Erreur sur wifilightV2::daemon() : Call to undefined function Decode()
[2020-05-15 10:34:53][DEBUG] :     Send start
[2020-05-15 10:34:53][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["on","smooth",500]} 
[2020-05-15 10:34:53][DEBUG] : new sock
[2020-05-15 10:34:53][DEBUG] :     socket_connect() failed. Reason: () Connection refused
[2020-05-15 10:34:56][DEBUG] :     Send start
[2020-05-15 10:34:56][DEBUG] :     Cmd : {"id":1,"method":"set_power","params":["off","smooth",500]} 
[2020-05-15 10:34:56][DEBUG] : new sock
[2020-05-15 10:34:57][DEBUG] :     socket_connect() failed. Reason: () Connection refused
[2020-05-15 10:35:03][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2020-05-15 10:35:04][DEBUG] : >>>>Daemon Started
[2020-05-15 10:35:04][DEBUG] :    Memory used :1655 ko 784 o 
[2020-05-15 10:35:04][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-15 10:35:05][DEBUG] : ****** Device listenable Lustre - Class: YeeLightJiaoyue650 @192.168.1.79 *****
[2020-05-15 10:35:05][DEBUG] :    Key not set
[2020-05-15 10:35:05][DEBUG] :    Socket created  @192.168.1.79
[2020-05-15 10:35:05][DEBUG] :    ADD New device @192.168.1.79 channel:1
[2020-05-15 10:35:05][DEBUG] :    Device and socket exist : key:0 @192.168.1.79 channel:1 diff:0
[2020-05-15 10:35:05][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-15 10:35:05][DEBUG] :   Memory used :1764 ko 688 o 
[2020-05-15 10:35:05][DEBUG] :    Update state @192.168.1.79
[2020-05-15 10:35:05][DEBUG] :     Send start
[2020-05-15 10:35:05][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-15 10:35:05][DEBUG] :     socket_write() error : 0
[2020-05-15 10:35:05][ERROR] : Erreur sur wifilightV2::daemon() : Call to undefined function Decode()