Nanoleaf ajout d'un etat programme en cours

Je le vois dans les logs :

[2021-12-23 17:29:50][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices - V1.83 stable <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2021-12-23 17:29:50][DEBUG] : ** Nanaleaf shape - NanoLeafBase @192.168.1.140 **
[2021-12-23 17:29:50][DEBUG] :     Cmd :  - url : http://192.168.1.140:16021/api/v1/HzrpT0cX9ozMc1xFEZ9XuXVNBPkLZdWb/ - type : GET - Status:200 - Rec:
[2021-12-23 17:29:50][DEBUG] :      No dps states to update
[2021-12-23 17:29:50][DEBUG] :  - prog:Cool Blues - Kelvin:59 - KelvinVal:4331 - On:1 - Int:41 - Sat:0 - ModeOn:effect
[2021-12-23 17:29:50][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>  Memory used :3255 ko <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

C’est ce qui est après prog.
Peut-être que j’ai pas la commande créée. Je vais relancer la création. En tout cas merci pour ton plugin !

J’ai trouvé cette commande dans l’api :
http://192.168.x.x:16021/api/v1/:auth_token/effects/select ça pourrais correspondre. En tout cas dans mon navigateur ça me renvois la bonne valeur.

il faut la beta ce qui m’intéresse c’est ce qu’il y a après Rec:
sinon la commande Jeedom DiscoProgGet devrait contenir Cool Blues. Ce n’est pas ce qui t’intéresse ?
Dans tous les cas passe en beta



[2021-12-23 17:58:00][DEBUG] : >>>>Daemon Started
[2021-12-23 17:58:00][DEBUG] :    Memory used :2874 ko 872 o
[2021-12-23 17:58:00][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices - V1.83 stable <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2021-12-23 17:58:00][DEBUG] : ** Nanaleaf shape - NanoLeafBase @192.168.1.140 **
[2021-12-23 17:58:00][DEBUG] :     Cmd :  - url : http://192.168.1.140:16021/api/v1/HzrpT0cX9ozMc1xFEZ9XuXVNBPkLZdWb/ - type : GET - Status:200 - Rec:{"name":"Shapes 0F95","serialNo":"S21280HD301","manufacturer":"Nanoleaf","firmwareVersion":"6.2.3","hardwareVersion":"1.4-0","model":"NL42","discovery":{},"effects":{"effectsList":["Aquarium","Be Alert","Be Energized","Beach Waves","Beatdrop","Blaze","Christmas Lights","Cocoa Beach","Cool Blues","Cops","Cotton Candy","Dark Northen Lights for TV!","Date Night","Flash Light","Hip Hop","Hot Sauce","Jungle","Knight Rider","Lightscape","Mint","Morning Sky","Nightshade","Northern Lights","Oceanworks","Police Lights","Pop Rocks","Prism","Retro","StarTrek","Starlight","Sundown","Sunset","Tron Legacy","Vibrant Sunrise","Waterfall","星夜Starry Night"],"select":"Aquarium"},"firmwareUpgrade":{},"panelLayout":{"globalOrientation":{"value":0,"max":360,"min":0},"layout":{"numPanels":20,"sideLength":0,"positionData":[{"panelId":61728,"x":167,"y":108,"o":0,"shapeType":7},{"panelId":11030,"x":100,"y":69,"o":120,"shapeType":9},{"panelId":10616,"x":67,"y":89,"o":180,"shapeType":9},{"panelId":7657,"x":67,"y":166,"o":240,"shapeType":7},{"panelId":19508,"x":67,"y":243,"o":240,"shapeType":9},{"panelId":50479,"x":0,"y":282,"o":180,"shapeType":7},{"panelId":8734,"x":0,"y":398,"o":120,"shapeType":7},{"panelId":53255,"x":0,"y":475,"o":120,"shapeType":9},{"panelId":49235,"x":34,"y":495,"o":180,"shapeType":9},{"panelId":29023,"x":100,"y":263,"o":180,"shapeType":9},{"panelId":809,"x":100,"y":340,"o":180,"shapeType":7},{"panelId":40792,"x":100,"y":456,"o":300,"shapeType":7},{"panelId":20176,"x":100,"y":534,"o":0,"shapeType":9},{"panelId":37953,"x":134,"y":553,"o":300,"shapeType":9},{"panelId":34256,"x":201,"y":398,"o":120,"shapeType":7},{"panelId":45864,"x":201,"y":514,"o":120,"shapeType":7},{"panelId":39291,"x":167,"y":224,"o":0,"shapeType":7},{"panelId":51311,"x":167,"y":301,"o":0,"shapeType":9},{"panelId":4059,"x":201,"y":321,"o":300,"shapeType":9},{"panelId":0,"x":226,"y":74,"o":240,"shapeType":12}]}},"qkihnokomhartlnp":{},"schedules":{},"state":{"brightness":{"value":40,"max":100,"min":0},"colorMode":"effect","ct":{"value":4331,"max":6500,"min":1200},"hue":{"value":0,"max":360,"min":0},"on":{"value":true},"sat":{"value":0,"max":100,"min":0}}}
[2021-12-23 17:58:00][DEBUG] :      No dps states to update
[2021-12-23 17:58:00][DEBUG] :  - prog:Aquarium - Kelvin:59 - KelvinVal:4331 - On:1 - Int:40 - Sat:0 - ModeOn:effect
[2021-12-23 17:58:00][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>  Memory used :3163 ko <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

J’ai ça.
Par contre j’ai pas la commande disco même en creation des commandes disco+couleurs

OK dans cette ligne quelle est l’information qui t’intéresse ?
c’est Aquarium ?

Normalement elle est dans DiscoProgGet mais pour Jeedom c’est du numérique et je pense que ça n’affiche pas ce qu’il faut.
Il faut que je voie ça.
Sinon, A quoi correspond :
globalorientation ?
Layout ?
les valeur x y etc. ?

1 « J'aime »

Oui c’est ça mais je comprends pas j’ai pas cette commande malgrés la créations complète des commandes
Globaleorientation et layout ça semble être la disposition des différents éléments.

Il y aura une solution mais j’ai besoin de temps.

Peux tu charger à nouveau la beta
tu sauvegardes en mode étendu : couleur + disco

normalement discoprogget devrait apparaitre mais comme c’est un entier ça ne devrait pas bien fonctionner
L’autre souci c’est que les valeurs par défaut du plugin ne correspondent pas, il faut que j’automatise ça

En effet ça match pas. Merci pour ton aide. T’inquiète pas j’ai le temps c’est loin d’être vital.

Dernière beta
tu supprime toutes les commandes jeedom de ton nanoleaf
sauvegarde 2 fois
le demon va lancer la création d’une commande de type liste avec les modes de ton nanoleaf.
L’état est dans DiscoProgGet.
tester que les commandes d ela liste font ce qu’il faut
tester le retour d’état

Je viens de faire la manip. J’ai bien la commande mais elle renvoit rien. J’ai pas la commande liste. L’etat ne semble pas fonctionner. Je te joins quelques log :

[2021-12-24 08:59:07][DEBUG] :     Cmd : {"on" : {"value":false}} - url : http://192.168.1.140:16021/api/v1/HzrpT0cX9ozMc1xFEZ9XuXVNBPkLZdWb/state - type : PUT - Status:204 - No response
[2021-12-24 08:59:07][DEBUG] :     Cmd :  - url : http://192.168.1.140:16021/api/v1/HzrpT0cX9ozMc1xFEZ9XuXVNBPkLZdWb/ - type : GET - Status:200 - Rec:{"name":"Shapes 0F95","serialNo":"S21280HD301","manufacturer":"Nanoleaf","firmwareVersion":"6.2.3","hardwareVersion":"1.4-0","model":"NL42","discovery":{},"effects":{"effectsList":["Aquarium","Be Alert","Be Energized","Beach Waves","Beatdrop","Blaze","Christmas Lights","Cocoa Beach","Cool Blues","Cops","Cotton Candy","Dark Northen Lights for TV!","Date Night","Flash Light","Hip Hop","Hot Sauce","Jungle","Knight Rider","Lightscape","Mint","Morning Sky","Nightshade","Northern Lights","Oceanworks","Police Lights","Pop Rocks","Prism","Retro","StarTrek","Starlight","Sundown","Sunset","Tron Legacy","Vibrant Sunrise","Waterfall","星夜Starry Night"],"select":"Christmas Lights"},"firmwareUpgrade":{},"panelLayout":{"globalOrientation":{"value":0,"max":360,"min":0},"layout":{"numPanels":20,"sideLength":0,"positionData":[{"panelId":61728,"x":167,"y":108,"o":0,"shapeType":7},{"panelId":11030,"x":100,"y":69,"o":120,"shapeType":9},{"panelId":10616,"x":67,"y":89,"o":180,"shapeType":9},{"panelId":7657,"x":67,"y":166,"o":240,"shapeType":7},{"panelId":19508,"x":67,"y":243,"o":240,"shapeType":9},{"panelId":50479,"x":0,"y":282,"o":180,"shapeType":7},{"panelId":8734,"x":0,"y":398,"o":120,"shapeType":7},{"panelId":53255,"x":0,"y":475,"o":120,"shapeType":9},{"panelId":49235,"x":34,"y":495,"o":180,"shapeType":9},{"panelId":29023,"x":100,"y":263,"o":180,"shapeType":9},{"panelId":809,"x":100,"y":340,"o":180,"shapeType":7},{"panelId":40792,"x":100,"y":456,"o":300,"shapeType":7},{"panelId":20176,"x":100,"y":534,"o":0,"shapeType":9},{"panelId":37953,"x":134,"y":553,"o":300,"shapeType":9},{"panelId":34256,"x":201,"y":398,"o":120,"shapeType":7},{"panelId":45864,"x":201,"y":514,"o":120,"shapeType":7},{"panelId":39291,"x":167,"y":224,"o":0,"shapeType":7},{"panelId":51311,"x":167,"y":301,"o":0,"shapeType":9},{"panelId":4059,"x":201,"y":321,"o":300,"shapeType":9},{"panelId":0,"x":226,"y":74,"o":240,"shapeType":12}]}},"qkihnokomhartlnp":{},"schedules":{},"state":{"brightness":{"value":42,"max":100,"min":0},"colorMode":"effect","ct":{"value":4331,"max":6500,"min":1200},"hue":{"value":0,"max":360,"min":0},"on":{"value":false},"sat":{"value":0,"max":100,"min":0}}}
[2021-12-24 08:59:07][DEBUG] :  nanoleaf state :Array
[2021-12-24 08:59:09][DEBUG] :     Cmd : {"on" : {"value":true}} - url : http://192.168.1.140:16021/api/v1/HzrpT0cX9ozMc1xFEZ9XuXVNBPkLZdWb/state - type : PUT - Status:204 - No response
[2021-12-24 08:59:09][DEBUG] :     Cmd :  - url : http://192.168.1.140:16021/api/v1/HzrpT0cX9ozMc1xFEZ9XuXVNBPkLZdWb/ - type : GET - Status:200 - Rec:{"name":"Shapes 0F95","serialNo":"S21280HD301","manufacturer":"Nanoleaf","firmwareVersion":"6.2.3","hardwareVersion":"1.4-0","model":"NL42","discovery":{},"effects":{"effectsList":["Aquarium","Be Alert","Be Energized","Beach Waves","Beatdrop","Blaze","Christmas Lights","Cocoa Beach","Cool Blues","Cops","Cotton Candy","Dark Northen Lights for TV!","Date Night","Flash Light","Hip Hop","Hot Sauce","Jungle","Knight Rider","Lightscape","Mint","Morning Sky","Nightshade","Northern Lights","Oceanworks","Police Lights","Pop Rocks","Prism","Retro","StarTrek","Starlight","Sundown","Sunset","Tron Legacy","Vibrant Sunrise","Waterfall","星夜Starry Night"],"select":"Christmas Lights"},"firmwareUpgrade":{},"panelLayout":{"globalOrientation":{"value":0,"max":360,"min":0},"layout":{"numPanels":20,"sideLength":0,"positionData":[{"panelId":61728,"x":167,"y":108,"o":0,"shapeType":7},{"panelId":11030,"x":100,"y":69,"o":120,"shapeType":9},{"panelId":10616,"x":67,"y":89,"o":180,"shapeType":9},{"panelId":7657,"x":67,"y":166,"o":240,"shapeType":7},{"panelId":19508,"x":67,"y":243,"o":240,"shapeType":9},{"panelId":50479,"x":0,"y":282,"o":180,"shapeType":7},{"panelId":8734,"x":0,"y":398,"o":120,"shapeType":7},{"panelId":53255,"x":0,"y":475,"o":120,"shapeType":9},{"panelId":49235,"x":34,"y":495,"o":180,"shapeType":9},{"panelId":29023,"x":100,"y":263,"o":180,"shapeType":9},{"panelId":809,"x":100,"y":340,"o":180,"shapeType":7},{"panelId":40792,"x":100,"y":456,"o":300,"shapeType":7},{"panelId":20176,"x":100,"y":534,"o":0,"shapeType":9},{"panelId":37953,"x":134,"y":553,"o":300,"shapeType":9},{"panelId":34256,"x":201,"y":398,"o":120,"shapeType":7},{"panelId":45864,"x":201,"y":514,"o":120,"shapeType":7},{"panelId":39291,"x":167,"y":224,"o":0,"shapeType":7},{"panelId":51311,"x":167,"y":301,"o":0,"shapeType":9},{"panelId":4059,"x":201,"y":321,"o":300,"shapeType":9},{"panelId":0,"x":226,"y":74,"o":240,"shapeType":12}]}},"qkihnokomhartlnp":{},"schedules":{},"state":{"brightness":{"value":42,"max":100,"min":0},"colorMode":"effect","ct":{"value":4331,"max":6500,"min":1200},"hue":{"value":0,"max":360,"min":0},"on":{"value":true},"sat":{"value":0,"max":100,"min":0}}}
[2021-12-24 08:59:09][DEBUG] :  nanoleaf state :Array
[2021-12-24 08:59:33][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices - V1.83 stable <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2021-12-24 08:59:33][DEBUG] : ** Nanaleaf shape - NanoLeafBase @192.168.1.140 **
[2021-12-24 08:59:33][DEBUG] :     Cmd :  - url : http://192.168.1.140:16021/api/v1/HzrpT0cX9ozMc1xFEZ9XuXVNBPkLZdWb/ - type : GET - Status:200 - Rec:{"name":"Shapes 0F95","serialNo":"S21280HD301","manufacturer":"Nanoleaf","firmwareVersion":"6.2.3","hardwareVersion":"1.4-0","model":"NL42","discovery":{},"effects":{"effectsList":["Aquarium","Be Alert","Be Energized","Beach Waves","Beatdrop","Blaze","Christmas Lights","Cocoa Beach","Cool Blues","Cops","Cotton Candy","Dark Northen Lights for TV!","Date Night","Flash Light","Hip Hop","Hot Sauce","Jungle","Knight Rider","Lightscape","Mint","Morning Sky","Nightshade","Northern Lights","Oceanworks","Police Lights","Pop Rocks","Prism","Retro","StarTrek","Starlight","Sundown","Sunset","Tron Legacy","Vibrant Sunrise","Waterfall","星夜Starry Night"],"select":"Christmas Lights"},"firmwareUpgrade":{},"panelLayout":{"globalOrientation":{"value":0,"max":360,"min":0},"layout":{"numPanels":20,"sideLength":0,"positionData":[{"panelId":61728,"x":167,"y":108,"o":0,"shapeType":7},{"panelId":11030,"x":100,"y":69,"o":120,"shapeType":9},{"panelId":10616,"x":67,"y":89,"o":180,"shapeType":9},{"panelId":7657,"x":67,"y":166,"o":240,"shapeType":7},{"panelId":19508,"x":67,"y":243,"o":240,"shapeType":9},{"panelId":50479,"x":0,"y":282,"o":180,"shapeType":7},{"panelId":8734,"x":0,"y":398,"o":120,"shapeType":7},{"panelId":53255,"x":0,"y":475,"o":120,"shapeType":9},{"panelId":49235,"x":34,"y":495,"o":180,"shapeType":9},{"panelId":29023,"x":100,"y":263,"o":180,"shapeType":9},{"panelId":809,"x":100,"y":340,"o":180,"shapeType":7},{"panelId":40792,"x":100,"y":456,"o":300,"shapeType":7},{"panelId":20176,"x":100,"y":534,"o":0,"shapeType":9},{"panelId":37953,"x":134,"y":553,"o":300,"shapeType":9},{"panelId":34256,"x":201,"y":398,"o":120,"shapeType":7},{"panelId":45864,"x":201,"y":514,"o":120,"shapeType":7},{"panelId":39291,"x":167,"y":224,"o":0,"shapeType":7},{"panelId":51311,"x":167,"y":301,"o":0,"shapeType":9},{"panelId":4059,"x":201,"y":321,"o":300,"shapeType":9},{"panelId":0,"x":226,"y":74,"o":240,"shapeType":12}]}},"qkihnokomhartlnp":{},"schedules":{},"state":{"brightness":{"value":42,"max":100,"min":0},"colorMode":"effect","ct":{"value":4331,"max":6500,"min":1200},"hue":{"value":0,"max":360,"min":0},"on":{"value":true},"sat":{"value":0,"max":100,"min":0}}}
[2021-12-24 08:59:33][DEBUG] :  nanoleaf state :Array
[2021-12-24 08:59:33][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>  Memory used :3079 ko <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Seul le on\off semble fonctionner.

SI je repasse en stable la commande me récupère bien l’info de l’effet en cours.

je ne comprends pas c’est ta demande de départ et on a vérifié que cela ne fonctionnait pas.

Sinon recharge la beta
et crée un nouveau nanoleaf

Oui pardon j’ai pas été assez clair. J’ai supprimé toute les commandes et les ai recréés en beta. Elles ne me renvoyaient aucune info. Je suis repassé en stable et là elle renvoit la bonne info.

ok sauf le mode scene
sinon la dernière beta devrait corriger le problème

1 « J'aime »

C’est tous bon merci beaucoup ! Juste l’image de l’équipement qui a disparue mais c’est vraiment accessoire.

la nouvelle beta corrige le problème.
Ca m’arrangerait que tu testes.
Il y a dans cette version des dépendances à installer.

Je m’absente quelques jours. Je regarderais ça a mon retour. Cdt,

recréer le périphérique.
L’info sera dans CustomProgGet

Bonjour,

Merci pour la nouvelle stable (dsl c’est un peu la course et je n’ai pas trouvé le temps de tester la beta). J’ai pas testé a fond mais le fonctionnement et le même qu’avant avec la maj et le menu déroulant avec les différents scène est nickel. Et la commande « CustomProgGet » fonctionne très bien.

J’ai juste des log dans http.error :

  • quand je off ou on le nanoleaf :
[Tue Jan 11 08:51:57.389230 2022] [php7:warn] [pid 17128] [client 10.11.0.1:45772] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/plugins/wifilightV2/3rdparty/nanoleaf.php on line 134, referer: https://xxxxxxx/index.php?v=d&p=dashboard
[Tue Jan 11 08:51:57.389310 2022] [php7:warn] [pid 17128] [client 10.11.0.1:45772] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/plugins/wifilightV2/3rdparty/nanoleaf.php on line 134, referer: https://xxxxxxx/index.php?v=d&p=dashboard
[Tue Jan 11 08:51:57.389326 2022] [php7:warn] [pid 17128] [client 10.11.0.1:45772] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/plugins/wifilightV2/3rdparty/nanoleaf.php on line 134, referer: hhttps://xxxxxxx/index.php?v=d&p=dashboard
[Tue Jan 11 08:51:57.389339 2022] [php7:warn] [pid 17128] [client 10.11.0.1:45772] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/plugins/wifilightV2/3rdparty/nanoleaf.php on line 134, referer: https://xxxxxxx/index.php?v=d&p=dashboard
[Tue Jan 11 08:51:57.389367 2022] [php7:warn] [pid 17128] [client 10.11.0.1:45772] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/plugins/wifilightV2/3rdparty/nanoleaf.php on line 134, referer: https://xxxxxxx/index.php?v=d&p=dashboard
[Tue Jan 11 08:51:57.389380 2022] [php7:warn] [pid 17128] [client 10.11.0.1:45772] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/plugins/wifilightV2/3rdparty/nanoleaf.php on line 134, referer: https://xxxxxxx/index.php?v=d&p=dashboard

Quand je change de scene via la commande :

[Tue Jan 11 08:45:55.617124 2022] [php7:notice] [pid 32314] [client 10.11.0.1:54186] PHP Notice:  Undefined variable: log_Ap in /var/www/html/plugins/wifilightV2/core/class/wifilightV2.class.php on line 4143, referer: https://xxxxx.php?v=d&p=dashboard&object_id=11
[Tue Jan 11 08:51:28.083607 2022] [php7:notice] [pid 19040] [client 10.11.0.1:34834] PHP Notice:  Undefined variable: log_Ap in /var/www/html/plugins/wifilightV2/core/class/wifilightV2.class.php on line 4143, referer: https:/xxxxx.php?v=d&p=dashboard

Mais rien de méchant puisque le fonctionnement n’est pas altéré. Encore merci !

corrigé en stable

Merci!

1 « J'aime »

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.