Enphase - Envoy - Script - Json Node-Red

Ok mais comme je n’ai pas de metered j’ai besoin de ton aide

il faut que l’on récupere les json brut en sortie de passerelle.

voici un flow trés simple tu va juste devoir adapter ip et mot de passe de ton envoy

dans le node production.json

et dans le node suivant le chemin des résultats

c’est la ou va être déposer le fichier que tu va devoir me renvoyer pour que j’analyse les infos en plus d’une metered.

/home/pi/resultats/prod.txt

normalement le fichier va être présent dés que tu aura déployer

Capture d’écran du 2020-06-04 07-08-57

Code du Flow
[{"id":"712ed08.53754b","type":"tab","label":"INFO ENVOY","disabled":false,"info":""},{"id":"37a6b68e.8c7f0a","type":"http request","z":"712ed08.53754b","name":"production.json","method":"GET","ret":"txt","paytoqs":false,"url":"http://192.168.0.248/production.json","tls":"","persist":false,"proxy":"","authType":"","x":300,"y":220,"wires":[["6509fe3.76b3d"]],"info":"indiquez l'IP de votre passerelle\ndans le champ url\n\nex:\n\nhttp://192.168.12.248/api/v1/production\nhttp://192.168.0.248/production.json"},{"id":"6100bb48.867614","type":"inject","z":"712ed08.53754b","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":"1","x":330,"y":160,"wires":[["37a6b68e.8c7f0a"]]},{"id":"6509fe3.76b3d","type":"file","z":"712ed08.53754b","name":"","filename":"/home/pi/resultats/prod.txt","appendNewline":true,"createDir":true,"overwriteFile":"true","encoding":"none","x":310,"y":280,"wires":[["bf015fd8.4b362"]]},{"id":"bf015fd8.4b362","type":"debug","z":"712ed08.53754b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":310,"y":340,"wires":[]}]

Pour info, j’ai installé tes flows sur une VM Debian 9 et c’est parfaitement fonctionnel. Je récupère du coup les infos dont j’ai besoin sur mon jeedom.
Je n’ai pas eu besoin d’acheter le plugin du coup !
Du coup, je regarde les tutos pour faire une présentation sympa sur node-red même si je n’en ai pas besoin.

Merci encore pour ton partage !

Merci du retour ça fait plaisir :+1:
Il y a d’autres méthode que d’envoyer a un virtuel …
C’est de passer par MQTT ou JMQTT .

J’ai déjà JMQTT installé pour d’autres appareils.
Le gain ne serait pas énorme par rapport au virtuel non ?
Autre question sans lien avec la précédente, tu récupères d’autres infos à part la prod de chaque onduleur et les prods sur 7 jours glissants, celle depuis le début et celle du jour ?
Par ex, il faudrait que je regarde dans les APIs s’il y a un binaire d’alerte en cas de dysfonctionnement.

Je viens de faire un test en MQTT et je récupère bien les infos sur mon broker.
C’est vrai que ça m’aurait évité de créer des virtuels mais bon maintenant que c’est fait…
Je sais aussi que les commandes et remontées d’infos sont plus rapides en MQTT mais là, ça n’apporte rien.
Je passe à côté de qqchose ?

Non il y a peut de différence sauf une ligne http de barbare a paramétrer a avec des ID des commandes des virtuels alors qu’en mqtt tu a juste a l’inscrire a un topic …
au départ j’ai fait cette méthode pour ne pas alourdir le truc et ne pas embourber les gens dans mqtt qu’ils ne maîtrisent pas forcement …

pour mettre la destination du resultat , si je veut qu’il le mettre dans mon serveur qui a une adresse ip 192.168.1.107 dans le repertoire /volume2/Telechargement

non c’est une écriture de fichier en local ce sera donc la machine qui héberge node red

note red est installe sur docker de mon syno

et ? quel est le problème ?

je doit metttre quelle repertoire
pour recuper le fichier

celui qui t’est le plus facile /xzz/uvw/test.txt

desole je ne comprend pas

lorque le json de la passerelle est récuperer
le node file écrit et créer si il n’existe pas les chemins et nom du fichier …

je dois mettre koi comme chemin alors ?
et comment lancer la recuperation du json

sinon je peut le faire direct dans un navigateur avec l’ip de la envoy

oui tu peut c’était pour te facilité les choses …

la si tu faisait deploy tu retrouverait directement le fichier dans le chemin indiqué …

T’est prêt a faire un test avant que j’avance de trop … ???

Quelqu’un pour faire un test node-red sur une envoy-s metered ???

je n’ai recuperer que partiellement les infos avant d’aller trop loin si ca fonctionne pas …

Code du flow à tester
[
   {
       "id": "88300a67.53f0d8",
       "type": "tab",
       "label": "Envoy-Metered",
       "disabled": false,
       "info": ""
   },
   {
       "id": "3667807e.0ac338",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "x": 550,
       "y": 60,
       "wires": []
   },
   {
       "id": "df69fc85.a7a448",
       "type": "inject",
       "z": "88300a67.53f0d8",
       "name": "",
       "topic": "",
       "payload": "",
       "payloadType": "date",
       "repeat": "10",
       "crontab": "",
       "once": true,
       "onceDelay": 0.1,
       "x": 130,
       "y": 40,
       "wires": [
           [
               "d6cbe207.df8cb8"
           ]
       ]
   },
   {
       "id": "7645b785.6450c",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "production[0].activeCount",
       "func": "msg.payload = msg.payload.production[0].activeCount;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 490,
       "y": 200,
       "wires": [
           [
               "2db3982a.9c5968"
           ]
       ]
   },
   {
       "id": "2db3982a.9c5968",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 200,
       "wires": []
   },
   {
       "id": "e741d624.e9b6f",
       "type": "json",
       "z": "88300a67.53f0d8",
       "name": "",
       "property": "payload",
       "action": "",
       "pretty": false,
       "x": 130,
       "y": 180,
       "wires": [
           [
               "97ba04be.dfe66"
           ]
       ]
   },
   {
       "id": "6c16d231.b1be1c",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "consumption[0].measurementType",
       "func": "msg.payload = msg.payload.consumption[0].measurementType;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 520,
       "y": 620,
       "wires": [
           [
               "a9208a75.585b7"
           ]
       ]
   },
   {
       "id": "a9208a75.585b7",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 620,
       "wires": []
   },
   {
       "id": "dc5f82da.000cf8",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "storage[0].type",
       "func": "msg.payload = msg.payload.storage[0].type;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 420,
       "y": 1400,
       "wires": [
           [
               "93c6fc56.20df8"
           ]
       ]
   },
   {
       "id": "1704c510.a558c3",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 770,
       "y": 1080,
       "wires": []
   },
   {
       "id": "cb332ed3.570bc",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "consumption[0].wNow",
       "func": "msg.payload = msg.payload.consumption[0].wNow;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 480,
       "y": 740,
       "wires": [
           [
               "e8a6df01.3a4458"
           ]
       ]
   },
   {
       "id": "e8a6df01.3a4458",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 740,
       "wires": []
   },
   {
       "id": "e8eb2058.570c7",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "consumption[1].wNow",
       "func": "msg.payload = msg.payload.consumption[1].wNow;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 460,
       "y": 1140,
       "wires": [
           [
               "63927498.4be8e4"
           ]
       ]
   },
   {
       "id": "63927498.4be8e4",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 770,
       "y": 1140,
       "wires": []
   },
   {
       "id": "10f2f863.b9178",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "production[0].wNow",
       "func": "msg.payload = msg.payload.production[0].wNow;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 470,
       "y": 320,
       "wires": [
           [
               "954d1306.4b65"
           ]
       ]
   },
   {
       "id": "954d1306.4b65",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 320,
       "wires": []
   },
   {
       "id": "e6a69e10.0e268",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "production[0].readingTime",
       "func": "msg.payload = msg.payload.production[0].readingTime *1000;\n\n\n\nvar dt = new Date(msg.payload);\n msg = {\n\t'month':\tdt.getMonth() + 1,\n\t'day':\t\tdt.getDate(),\n\t'year':\t\tdt.getFullYear(),\n\t'hours':\tdt.getHours(),\n\t'mins':\t\tdt.getMinutes(),\n\t'sec':\t\tdt.getSeconds(),\n\t'msecs':\tdt.getMilliseconds()\n}\n\nif(msg.day < 10 ){msg.day = \"0\" + msg.day;}\nif(msg.month < 10 ){msg.month = \"0\" + msg.month;}\nif(msg.hours < 10 ){msg.hours = \"0\" + msg.hours;}\nif(msg.mins < 10 ){msg.mins = \"0\" + msg.mins;}\nif(msg.sec < 10 ){msg.sec = \"0\" + msg.sec;}\n\nmsg.payload = msg.day + \"/\" + msg.month + \"/\" + msg.year +\" - \"+ msg.hours + \":\" + msg.mins +\":\" +msg.sec;\n\n\n\n\n\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 490,
       "y": 260,
       "wires": [
           [
               "ef6dc308.12fe9"
           ]
       ]
   },
   {
       "id": "ef6dc308.12fe9",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 260,
       "wires": []
   },
   {
       "id": "aaab119e.dfd8e",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "consumption[0].readingTime",
       "func": "msg.payload = msg.payload.consumption[0].readingTime *1000;\n\n\n\nvar dt = new Date(msg.payload);\n msg = {\n\t'month':\tdt.getMonth() + 1,\n\t'day':\t\tdt.getDate(),\n\t'year':\t\tdt.getFullYear(),\n\t'hours':\tdt.getHours(),\n\t'mins':\t\tdt.getMinutes(),\n\t'sec':\t\tdt.getSeconds(),\n\t'msecs':\tdt.getMilliseconds()\n}\n\nif(msg.day < 10 ){msg.day = \"0\" + msg.day;}\nif(msg.month < 10 ){msg.month = \"0\" + msg.month;}\nif(msg.hours < 10 ){msg.hours = \"0\" + msg.hours;}\nif(msg.mins < 10 ){msg.mins = \"0\" + msg.mins;}\nif(msg.sec < 10 ){msg.sec = \"0\" + msg.sec;}\n\nmsg.payload = msg.day + \"/\" + msg.month + \"/\" + msg.year +\" - \"+ msg.hours + \":\" + msg.mins +\":\" +msg.sec;\n\n\n\n\n\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 500,
       "y": 680,
       "wires": [
           [
               "cb74d2b2.bcc788"
           ]
       ]
   },
   {
       "id": "cb74d2b2.bcc788",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 680,
       "wires": []
   },
   {
       "id": "9d3f6a0e.f2abe8",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "production[0].type",
       "func": "msg.payload = msg.payload.production[0].type;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 470,
       "y": 140,
       "wires": [
           [
               "12e7a721.14e579"
           ]
       ]
   },
   {
       "id": "12e7a721.14e579",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 140,
       "wires": []
   },
   {
       "id": "a8c327b8.4c9b3",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "production[0].whLifetime",
       "func": "msg.payload = msg.payload.production[0].whLifetime;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 490,
       "y": 380,
       "wires": [
           [
               "f7345ac2.a36048"
           ]
       ]
   },
   {
       "id": "f7345ac2.a36048",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 380,
       "wires": []
   },
   {
       "id": "85bd0579.bb072",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "consumption[0].type",
       "func": "msg.payload = msg.payload.consumption[0].type;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 470,
       "y": 480,
       "wires": [
           [
               "fc879866.ece798"
           ]
       ]
   },
   {
       "id": "fc879866.ece798",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 480,
       "wires": []
   },
   {
       "id": "f5605759.1cffe8",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "consumption[0].activeCount",
       "func": "msg.payload = msg.payload.consumption[0].activeCount;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 500,
       "y": 540,
       "wires": [
           [
               "70d0063b.c3e86"
           ]
       ]
   },
   {
       "id": "70d0063b.c3e86",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 540,
       "wires": []
   },
   {
       "id": "5252fd2e.0aa32c",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 770,
       "y": 1520,
       "wires": []
   },
   {
       "id": "49746a3e.027254",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 770,
       "y": 1580,
       "wires": []
   },
   {
       "id": "fdb697d9.28ebe",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "consumption[1].type",
       "func": "msg.payload = msg.payload.consumption[1].type;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 450,
       "y": 1080,
       "wires": [
           [
               "1704c510.a558c3"
           ]
       ]
   },
   {
       "id": "93c6fc56.20df8",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 770,
       "y": 1400,
       "wires": []
   },
   {
       "id": "bb32a29f.48117",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 770,
       "y": 1460,
       "wires": []
   },
   {
       "id": "98065e02.6f1058",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "storage[0].activeCount",
       "func": "msg.payload = msg.payload.storage[0].activeCount;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 440,
       "y": 1460,
       "wires": [
           [
               "bb32a29f.48117"
           ]
       ]
   },
   {
       "id": "f7f612e7.1e074",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "storage[0].readingTime",
       "func": "msg.payload = msg.payload.storage[0].readingTime *1000;\n\n\n\nvar dt = new Date(msg.payload);\n msg = {\n\t'month':\tdt.getMonth() + 1,\n\t'day':\t\tdt.getDate(),\n\t'year':\t\tdt.getFullYear(),\n\t'hours':\tdt.getHours(),\n\t'mins':\t\tdt.getMinutes(),\n\t'sec':\t\tdt.getSeconds(),\n\t'msecs':\tdt.getMilliseconds()\n}\n\nif(msg.day < 10 ){msg.day = \"0\" + msg.day;}\nif(msg.month < 10 ){msg.month = \"0\" + msg.month;}\nif(msg.hours < 10 ){msg.hours = \"0\" + msg.hours;}\nif(msg.mins < 10 ){msg.mins = \"0\" + msg.mins;}\nif(msg.sec < 10 ){msg.sec = \"0\" + msg.sec;}\n\nmsg.payload = msg.day + \"/\" + msg.month + \"/\" + msg.year +\" - \"+ msg.hours + \":\" + msg.mins +\":\" +msg.sec;\n\n\n\n\n\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 440,
       "y": 1520,
       "wires": [
           [
               "5252fd2e.0aa32c"
           ]
       ]
   },
   {
       "id": "6ec22066.4fd228",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "storage[0].wNow",
       "func": "msg.payload = msg.payload.storage[0].wNow;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 420,
       "y": 1580,
       "wires": [
           [
               "49746a3e.027254"
           ]
       ]
   },
   {
       "id": "3fe391ea.296a8e",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 770,
       "y": 1640,
       "wires": []
   },
   {
       "id": "44dc3fea.7fc768",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "storage[0].whNow",
       "func": "msg.payload = msg.payload.storage[0].whNow;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 430,
       "y": 1640,
       "wires": [
           [
               "3fe391ea.296a8e"
           ]
       ]
   },
   {
       "id": "1c341fa8.3def58",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 770,
       "y": 1700,
       "wires": []
   },
   {
       "id": "79c38bd9.0491f4",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "storage[0].state",
       "func": "msg.payload = msg.payload.storage[0].state;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 420,
       "y": 1700,
       "wires": [
           [
               "1c341fa8.3def58"
           ]
       ]
   },
   {
       "id": "1340ce9.6001631",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "consumption[0].whLifetime",
       "func": "msg.payload = msg.payload.consumption[0].whLifetime;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 490,
       "y": 800,
       "wires": [
           [
               "839701c1.7f1338"
           ]
       ]
   },
   {
       "id": "839701c1.7f1338",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 800,
       "wires": []
   },
   {
       "id": "8126bc8.14758c",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "consumption[0].vahLifetime",
       "func": "msg.payload = msg.payload.consumption[0].vahLifetime;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 500,
       "y": 920,
       "wires": [
           [
               "6ffbb590.c304cc"
           ]
       ]
   },
   {
       "id": "6ffbb590.c304cc",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 920,
       "wires": []
   },
   {
       "id": "8163c05f.e439d8",
       "type": "function",
       "z": "88300a67.53f0d8",
       "name": "consumption[0].varhLeadLifetime",
       "func": "msg.payload = msg.payload.consumption[0].varhLeadLifetime;\nreturn msg;",
       "outputs": 1,
       "noerr": 0,
       "x": 510,
       "y": 860,
       "wires": [
           [
               "4ca434c1.69e194"
           ]
       ]
   },
   {
       "id": "4ca434c1.69e194",
       "type": "debug",
       "z": "88300a67.53f0d8",
       "name": "",
       "active": true,
       "tosidebar": false,
       "console": false,
       "tostatus": true,
       "complete": "payload",
       "targetType": "msg",
       "x": 810,
       "y": 860,
       "wires": []
   },
   {
       "id": "1e2a0b33.402aad",
       "type": "switch",
       "z": "88300a67.53f0d8",
       "name": "Switch batterie",
       "property": "payload",
       "propertyType": "msg",
       "rules": [
           {
               "t": "eq",
               "v": "payload",
               "vt": "msg"
           }
       ],
       "checkall": "true",
       "repair": false,
       "outputs": 1,
       "x": 160,
       "y": 1520,
       "wires": [
           [
               "dc5f82da.000cf8",
               "98065e02.6f1058",
               "f7f612e7.1e074",
               "6ec22066.4fd228",
               "44dc3fea.7fc768",
               "79c38bd9.0491f4"
           ]
       ]
   },
   {
       "id": "ceb74871.1f63f",
       "type": "switch",
       "z": "88300a67.53f0d8",
       "name": "Switch Net-conso",
       "property": "payload",
       "propertyType": "msg",
       "rules": [
           {
               "t": "eq",
               "v": "payload",
               "vt": "msg"
           }
       ],
       "checkall": "true",
       "repair": false,
       "outputs": 1,
       "x": 150,
       "y": 1120,
       "wires": [
           [
               "1e2a0b33.402aad",
               "fdb697d9.28ebe",
               "e8eb2058.570c7"
           ]
       ]
   },
   {
       "id": "87dc0bad.9684b8",
       "type": "switch",
       "z": "88300a67.53f0d8",
       "name": "Switch Total conso",
       "property": "payload",
       "propertyType": "msg",
       "rules": [
           {
               "t": "eq",
               "v": "payload",
               "vt": "msg"
           }
       ],
       "checkall": "true",
       "repair": false,
       "outputs": 1,
       "x": 150,
       "y": 720,
       "wires": [
           [
               "ceb74871.1f63f",
               "85bd0579.bb072",
               "f5605759.1cffe8",
               "6c16d231.b1be1c",
               "aaab119e.dfd8e",
               "cb332ed3.570bc",
               "1340ce9.6001631",
               "8163c05f.e439d8",
               "8126bc8.14758c"
           ]
       ]
   },
   {
       "id": "97ba04be.dfe66",
       "type": "switch",
       "z": "88300a67.53f0d8",
       "name": "Switch production",
       "property": "payload",
       "propertyType": "msg",
       "rules": [
           {
               "t": "eq",
               "v": "payload",
               "vt": "msg"
           }
       ],
       "checkall": "true",
       "repair": false,
       "outputs": 1,
       "x": 150,
       "y": 240,
       "wires": [
           [
               "87dc0bad.9684b8",
               "9d3f6a0e.f2abe8",
               "7645b785.6450c",
               "e6a69e10.0e268",
               "10f2f863.b9178",
               "a8c327b8.4c9b3",
               "3667807e.0ac338"
           ]
       ]
   },
   {
       "id": "d6cbe207.df8cb8",
       "type": "http request",
       "z": "88300a67.53f0d8",
       "name": "production.json",
       "method": "GET",
       "ret": "txt",
       "paytoqs": false,
       "url": "http://192.168.0.248/production.json",
       "tls": "",
       "persist": false,
       "proxy": "",
       "authType": "",
       "x": 140,
       "y": 100,
       "wires": [
           [
               "e741d624.e9b6f"
           ]
       ]
   }
]

salut @olive
c’est ok , je te joint la capture

Ben parfait ça a l’air de donner des valeurs reste plus qu’a faire des copier coller pour toutes les autres valeurs … (il y en a un wagon sur la metered)

:+1: