MAM78 Posté(e) le 25 mars Signaler Posté(e) le 25 mars (modifié) [25.03.2024] [21:45:06] [TRACE] [QA_ECODEVICES_1007]: *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* [QA_EcoDevices_1007, version 0.96] onInit *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* [25.03.2024] [21:45:06] [TRACE] [QA_ECODEVICES_1007]: onInit>>>deviceIcon=1019 [25.03.2024] [21:45:06] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "debug"=true [25.03.2024] [21:45:06] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "ipEcodevices"=192.168.0.51 [25.03.2024] [21:45:06] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "portEcodevices"=80 [25.03.2024] [21:45:06] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "toBeDisplayed"=C2 [25.03.2024] [21:45:06] [TRACE] [QA_ECODEVICES_1007]: onInit>>>Les compteurs C2 seront affichés. [25.03.2024] [21:45:06] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "displayIndex"=true [25.03.2024] [21:45:06] [TRACE] [QA_ECODEVICES_1007]: onInit>>>Les index seront affichés. [25.03.2024] [21:45:06] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "displaySimul"=true [25.03.2024] [21:45:06] [TRACE] [QA_ECODEVICES_1007]: onInit>>>Les estimations de coûts pourront être affichées (si les variables CoutKW et CoutAnnuel sont définies). [25.03.2024] [21:45:06] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "refreshDelay"=60 [25.03.2024] [21:45:06] [TRACE] [QA_ECODEVICES_1007]: onInit>>>delay=60, urlEcodevices=http://192.168.0.51:80/api/xdevices.json?cmd=10 , toBeDisplayed="C2" [25.03.2024] [21:45:06] [TRACE] [QA_ECODEVICES_1007]: onInit>>>Cumuls depuis le 25/03/2024 à 19:20:50, compteurs={"lastUpdate":1711399457,"compteur2":{"dayIndex":2476364,"hourIndex":2478566,"monthIndex":2476364,"lastIndex":2480159,"yearIndex":2476364,"consoActuelle":36},"teleinfo1":{"HPmonthTotalIndex":54689671,"abonnement":"HPHC","monthTotalIndex":74461593,"HCyearTotalIndex":19771922,"HPdayTotalIndex":54689671,"consoActuelleWh":70,"HPhourTotalIndex":54696623,"HCIndex":19771922,"lastTotalIndex":74471667,"yearTotalIndex":74461593,"HPyearTotalIndex":54689671,"HCmonthTotalIndex":19771922,"HPIndex":54699745,"dayTotalIndex":74461593,"HCdayTotalIndex":19771922,"puissanceApparente":4210,"periode":"HP..","hourTotalIndex":74468545,"HChourTotalIndex":19771922},"compteur1":{"dayIndex":236304,"hourIndex":236304,"monthIndex":236304,"lastIndex":236304,"yearIndex":236304,"consoActuelle":0},"firstUpdate":1711390850,"teleinfo2":{"abonnement":"BASE","lastTotalIndex":0,"yearTotalIndex":0,"periode":0,"dayTotalIndex":0,"BASEIndex":0,"puissanceApparente":0,"consoActuelleWh":0,"hourTotalIndex":0,"monthTotalIndex":0}} [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* [QA_EcoDevices_1007, version 0.96] onInit *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: onInit>>>deviceIcon=1019 [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "debug"=true [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "ipEcodevices"=192.168.0.51 [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "portEcodevices"=80 [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "toBeDisplayed"=C2 [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: onInit>>>Les compteurs C2 seront affichés. [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "displayIndex"=true [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: onInit>>>Les index seront affichés. [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "displaySimul"=true [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: onInit>>>Les estimations de coûts pourront être affichées (si les variables CoutKW et CoutAnnuel sont définies). [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "refreshDelay"=60 [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: onInit>>>delay=60, urlEcodevices=http://192.168.0.51:80/api/xdevices.json?cmd=10 , toBeDisplayed="C2" [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: onInit>>>Cumuls depuis le 25/03/2024 à 19:20:50, compteurs={"lastUpdate":1711399457,"compteur2":{"dayIndex":2476364,"hourIndex":2478566,"monthIndex":2476364,"lastIndex":2480159,"yearIndex":2476364,"consoActuelle":36},"teleinfo1":{"HPmonthTotalIndex":54689671,"abonnement":"HPHC","monthTotalIndex":74461593,"HCyearTotalIndex":19771922,"HPdayTotalIndex":54689671,"consoActuelleWh":70,"HPhourTotalIndex":54696623,"HCIndex":19771922,"lastTotalIndex":74471667,"yearTotalIndex":74461593,"HPyearTotalIndex":54689671,"HCmonthTotalIndex":19771922,"HPIndex":54699745,"dayTotalIndex":74461593,"HCdayTotalIndex":19771922,"puissanceApparente":4210,"periode":"HP..","hourTotalIndex":74468545,"HChourTotalIndex":19771922},"compteur1":{"dayIndex":236304,"hourIndex":236304,"monthIndex":236304,"lastIndex":236304,"yearIndex":236304,"consoActuelle":0},"firstUpdate":1711390850,"teleinfo2":{"abonnement":"BASE","lastTotalIndex":0,"yearTotalIndex":0,"periode":0,"dayTotalIndex":0,"BASEIndex":0,"puissanceApparente":0,"consoActuelleWh":0,"hourTotalIndex":0,"monthTotalIndex":0}} [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "displayChilds"=true [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: onInit>>>variable "childs"=C2Index,C2Actuel,C2Jour,C2Mois,C2Annee [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: onInit>>>whichChilds=C2Index,C2Actuel,C2Jour,C2Mois,C2Annee,C1Index,C1Actuel,C1Jour,C1Mois,C1Annee, displayChilds=true [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:__init>>>device.name=Prise Voiture Conso. année [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:__init>>>device.name=Prise Voiture Conso. mois [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:__init>>>device.name=Prise Voiture Index [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:__init>>>device.name=Arrosage Conso. mois [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:__init>>>device.name=Arrosage Conso. actuelle [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:__init>>>device.name=Arrosage Conso. année [25.03.2024] [21:45:07] [WARNING] [QA_ECODEVICES_1007]: Class for the child device: 1014, with type: com.fibaro.energyMeter not found. Using base class: QuickAppChild [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:__init>>>device.name=Prise Voiture Conso. jour [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:__init>>>device.name=Arrosage Index [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:__init>>>device.name=Arrosage Conso. jour [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: mainLoop>>>Version 0.96 démarrée le 25/03/2024 à 21:45:07 (depuis 00:00:00), mise à jour dans 60 secondes à 21:46:07 [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: mainLoop>>>Total memory in use by Lua 5.3: 1138.33 KB. Total CPU time=0.4 sec., last run CPU time=402.77 ms, mean CPU time=402.77 ms (for 1 loops.) [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: printChildDevices>>>Child devices: [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: printChildDevices>>>[1008] Prise Voiture Conso. année, type of: com.fibaro.multilevelSensor [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: printChildDevices>>>[1009] Prise Voiture Conso. mois, type of: com.fibaro.multilevelSensor [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: printChildDevices>>>[1010] Prise Voiture Index, type of: com.fibaro.multilevelSensor [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: printChildDevices>>>[1011] Arrosage Conso. mois, type of: com.fibaro.multilevelSensor [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: printChildDevices>>>[1012] Arrosage Conso. actuelle, type of: com.fibaro.multilevelSensor [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: printChildDevices>>>[1013] Arrosage Conso. année, type of: com.fibaro.multilevelSensor [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: printChildDevices>>>[1014] Prise Voiture Conso. actuelle, type of: com.fibaro.energyMeter [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: printChildDevices>>>[1015] Prise Voiture Conso. jour, type of: com.fibaro.multilevelSensor [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: printChildDevices>>>[1016] Arrosage Index, type of: com.fibaro.multilevelSensor [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: printChildDevices>>>[1017] Arrosage Conso. jour, type of: com.fibaro.multilevelSensor [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>child.id=1008, child.name=Prise Voiture Conso. année [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>childKey=C2Annee, whichChilds=C2Index,C2Actuel,C2Jour,C2Mois,C2Annee,C1Index,C1Actuel,C1Jour,C1Mois,C1Annee [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: prepareChilds>>>child device Prise Voiture Conso. année [C2Annee] already exists with id 1008 [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:setUnit>>>child 1008, updated value: kWh [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>child.id=1009, child.name=Prise Voiture Conso. mois [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>childKey=C2Mois, whichChilds=C2Index,C2Actuel,C2Jour,C2Mois,C2Annee,C1Index,C1Actuel,C1Jour,C1Mois,C1Annee [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: prepareChilds>>>child device Prise Voiture Conso. mois [C2Mois] already exists with id 1009 [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:setUnit>>>child 1009, updated value: kWh [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>child.id=1010, child.name=Prise Voiture Index [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>childKey=C2Index, whichChilds=C2Index,C2Actuel,C2Jour,C2Mois,C2Annee,C1Index,C1Actuel,C1Jour,C1Mois,C1Annee [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: prepareChilds>>>child device Prise Voiture Index [C2Index] already exists with id 1010 [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:setUnit>>>child 1010, updated value: Wh [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>child.id=1011, child.name=Arrosage Conso. mois [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>childKey=C1Mois, whichChilds=C2Index,C2Actuel,C2Jour,C2Mois,C2Annee,C1Index,C1Actuel,C1Jour,C1Mois,C1Annee [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: prepareChilds>>>child device Arrosage Conso. mois [C1Mois] already exists with id 1011 [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:setUnit>>>child 1011, updated value: L/m [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>child.id=1012, child.name=Arrosage Conso. actuelle [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>childKey=C1Actuel, whichChilds=C2Index,C2Actuel,C2Jour,C2Mois,C2Annee,C1Index,C1Actuel,C1Jour,C1Mois,C1Annee [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: prepareChilds>>>child device Arrosage Conso. actuelle [C1Actuel] already exists with id 1012 [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:setUnit>>>child 1012, updated value: L/mn [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>child.id=1013, child.name=Arrosage Conso. année [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>childKey=C1Annee, whichChilds=C2Index,C2Actuel,C2Jour,C2Mois,C2Annee,C1Index,C1Actuel,C1Jour,C1Mois,C1Annee [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: prepareChilds>>>child device Arrosage Conso. année [C1Annee] already exists with id 1013 [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: ecodevicesClass:setUnit>>>child 1013, updated value: L/a [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>child.id=1014, child.name=Prise Voiture Conso. actuelle [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: prepareChilds>>>childKey=C2Actuel, whichChilds=C2Index,C2Actuel,C2Jour,C2Mois,C2Annee,C1Index,C1Actuel,C1Jour,C1Mois,C1Annee [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: prepareChilds>>>child device Prise Voiture Conso. actuelle [C2Actuel] already exists with id 1014 [25.03.2024] [21:45:07] [ERROR] [QA_ECODEVICES_1007]: waitLoop>>>onInit>>>Erreur lors de l'appel à prepareChilds :./include/main.lua:1328: attempt to call a nil value (method 'setUnit') [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: readEcodevices>>>OK, response.data={"product":"Eco-devices","T1_PTEC":"HP..","T1_PAPP":4190,"T1_HCHP":54699804,"T1_HCHC":19771922,"T2_PTEC":"----","T2_PAPP":0,"T2_BASE":0,"INDEX_C1":236304,"INDEX_C2":2480190} [25.03.2024] [21:45:07] [TRACE] [QA_ECODEVICES_1007]: changePeriode>>>globalVarName ("EcoDevices_C2")={"firstUpdate":1711390850,"lastUpdate":1711399507,"compteur2":{"lastIndex":2480190,"consoActuelle":31,"monthIndex":2476364,"yearIndex":2476364,"dayIndex":2476364,"hourIndex":2478566},"teleinfo1":{"HPyearTotalIndex":54689671,"HCmonthTotalIndex":19771922,"HCIndex":19771922,"HPhourTotalIndex":54696623,"consoActuelleWh":59,"HPdayTotalIndex":54689671,"hourTotalIndex":74468545,"lastTotalIndex":74471726,"periode":"HP..","HPmonthTotalIndex":54689671,"puissanceApparente":4190,"HCdayTotalIndex":19771922,"dayTotalIndex":74461593,"HCyearTotalIndex":19771922,"HChourTotalIndex":19771922,"yearTotalIndex":74461593,"monthTotalIndex":74461593,"abonnement":"HPHC","HPIndex":54699804},"compteur1":{"lastIndex":236304,"consoActuelle":0,"monthIndex":236304,"yearIndex":236304,"dayIndex":236304,"hourIndex":236304},"teleinfo2":{"periode":0,"lastTotalIndex":0,"puissanceApparente":0,"BASEIndex":0,"yearTotalIndex":0,"consoActuelleWh":0,"dayTotalIndex":0,"monthTotalIndex":0,"abonnement":"BASE","hourTotalIndex":0}} [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: getCosts>>>Abonnement, variable "CoutHPHC"=171.3 € par an, soit 0.46803278688525 € par jour [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: getCosts>>>Variable CoutKWHPHC=0.1704,0.1254 [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: nbrTarifs=2, tarifsKWh={"HP":"0.1704","HC":"0.1254"} [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: checkSimul>>>Abonnement, variable "CoutHPHC"=152.05 € par an, soit 0.41543715846995 € par jour [25.03.2024] [21:45:07] [DEBUG] [QA_ECODEVICES_1007]: checkSimul>>>displaySimul=true, json.encode(simulPrices)={"baseKwh":0.1503,"baseAboJour":0.41543715846995} [25.03.2024] [21:45:08] [TRACE] [QA_ECODEVICES_1007]: computeCosts>>>costs={"moisHP":2,"moisSimulBase":2,"jourHP":2.04,"jourSimulBase":1.94,"jourHC":0.16,"anneeHC":0,"anneeSimulBase":2,"moisHC":0,"anneeHP":2} [25.03.2024] [21:45:22] [ERROR] [QA_ECODEVICES_1007]: waitLoop>>>onInit>>>Erreur lors de l'appel à prepareChilds :./include/main.lua:1328: attempt to call a nil value (method 'setUnit') Hello @Barelle J'ai un souci avec le quickapp. Il me remonte les erreurs ci-dessous. Je ne vois pas d'où ça provient ? J'obtiens l'erreur suivante : waitLoop>>>onInit>>>Erreur lors de l'appel à prepareChilds :./include/main.lua:1328: attempt to call a nil value (method 'setUnit') Attention le numéro de ligne est différèrent de la dernière version du QA. Cela correspond à la ligne suivante : child:setUnit(childsConfig[childKey].unit); Modifié le 25 mars par MAM78
Sakkhho Posté(e) le 3 juin Signaler Posté(e) le 3 juin @MAM78 @Barelle est ce que ce QA fonctionne toujours ? je m apprête à acheter un ecodevice d occasion pour la teleinfo uniquement mais quand je lis le sujet j ai un doute sur la QA après les mises à jours des FW. merci.
Barelle Posté(e) le 3 juin Auteur Signaler Posté(e) le 3 juin Théoriquement oui, mais n'utilisant plus l'Ecodevice v1 je ne peux le tester et donc le garantir... Fais le test, c'est sans risque. De rien.
Ironsyb Posté(e) le 25 juillet Signaler Posté(e) le 25 juillet Le 21/09/2023 à 19:24, Ironsyb a dit : Je vais tester ce weekend. Merci. Bonjour, Je reprends le fil. Je n'ai plus qu'une erreur : Mon abonnement est "BASE". Visiblement cela plante à la mise à jour des labels de l'interface et les childs C1 et C2 ne sont pas mis à jour J'ai essayé d'effacer la variable et relancer le QA, en vain. {"compteur2":{"monthIndex":23208,"hourIndex":23298,"lastIndex":23298,"yearIndex":23208,"consoActuelle":0,"dayIndex":23290},"teleinfo1":{"BASEIndex":35627323,"BASEhourTotalIndex":35627207,"periode":"TH..","dayTotalIndex":35621562,"monthTotalIndex":35614794,"hourTotalIndex":35627207,"consoActuelleWh":8,"BASEdayTotalIndex":35621562,"abonnement":"BASE","BASEmonthTotalIndex":35614794,"puissanceApparente":870,"BASEyearTotalIndex":35614794,"lastTotalIndex":35627323,"yearTotalIndex":35614794},"firstUpdate":1721831431,"lastUpdate":1721891658,"teleinfo2":{"BASEIndex":0,"periode":0,"dayTotalIndex":0,"monthTotalIndex":0,"abonnement":"BASE","hourTotalIndex":0,"puissanceApparente":0,"consoActuelleWh":0,"lastTotalIndex":0,"yearTotalIndex":0},"compteur1":{"monthIndex":64599,"hourIndex":64880,"lastIndex":64880,"yearIndex":64599,"consoActuelle":0,"dayIndex":64856}} Une idée du problème ? Bonne journée à tous
Ironsyb Posté(e) le 25 juillet Signaler Posté(e) le 25 juillet Je viens de voir que je ne suis pas le premier dans cette situation...
Ironsyb Posté(e) le 26 juillet Signaler Posté(e) le 26 juillet Le 06/03/2023 à 10:34, Manu31 a dit : Bonjour, Je ne sais pas si cela a un rapport, mais suite au dernier firmware de la HC3, le plugin ne marche plus. Voici l'erreur qu'il maffiche dans les log : [06.03.2023] [10:23:15] [WARNING] [QA_ECODEVICES_879]: readEcodevices>>>Erreur lors de l'appel de "afficheConsoMain" : ./include/main.lua:1153: attempt to index a nil value (field '?') [06.03.2023] [10:24:14] [TRACE] [QA_ECODEVICES_879]: mainLoop>>>Version 0.96 démarrée le 06/03/2023 à 10:23:13 (depuis 00:01:01), mise à jour dans 60 secondes à 10:25:14 [06.03.2023] [10:24:14] [TRACE] [QA_ECODEVICES_879]: mainLoop>>>Total memory in use by Lua 5.3: 1121.47 KB. Total CPU time=0.88 sec., last run CPU time=538.07 ms, mean CPU time=440.42 ms (for 2 loops.) [06.03.2023] [10:24:14] [TRACE] [QA_ECODEVICES_879]: readEcodevices>>>OK, response.data={"product":"Eco-devices","T1_PTEC":"TH..","T1_PAPP":590,"T1_BASE":25576703,"T2_PTEC":"----","T2_PAPP":0,"T2_BASE":0,"INDEX_C1":0,"INDEX_C2":0} [06.03.2023] [10:24:14] [TRACE] [QA_ECODEVICES_879]: changePeriode>>>globalVarName ("EcoDevices")={"lastUpdate":1678094654,"compteur2":{"yearIndex":0,"monthIndex":0,"consoActuelle":0,"hourIndex":0,"dayIndex":0,"lastIndex":0},"teleinfo1":{"BASEmonthTotalIndex":21905047,"abonnement":"BASE","consoActuelleWh":5,"dayTotalIndex":25552302,"hourTotalIndex":25576266,"puissanceApparente":590,"yearTotalIndex":12587327,"lastTotalIndex":25576703,"BASEdayTotalIndex":25552302,"BASEyearTotalIndex":12587327,"BASEIndex":25576703,"BASEhourTotalIndex":25576266,"monthTotalIndex":21905047,"periode":"TH.."},"compteur1":{"yearIndex":0,"monthIndex":0,"consoActuelle":0,"hourIndex":0,"dayIndex":0,"lastIndex":0},"firstUpdate":1623315955,"teleinfo2":{"abonnement":"BASE","consoActuelleWh":0,"hourTotalIndex":0,"puissanceApparente":0,"yearTotalIndex":0,"lastTotalIndex":0,"periode":0,"monthTotalIndex":0,"dayTotalIndex":0,"BASEIndex":0}} [06.03.2023] [10:24:14] [TRACE] [QA_ECODEVICES_879]: computeCosts>>>costs={"jourBASE":4.09,"moisBASE":554,"anneeBASE":1979} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigValue>>>childKey=T1WhActuel, json.encode(childsConfig[childKey])={"log":"580 VA","value":5,"unit":"Wmn","indexUnit":"Wh","childId":881,"name":"Conso. actuelle","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigValue>>>childKey=T1kWhJour, json.encode(childsConfig[childKey])={"log":"4.09 €","value":24.4,"unit":"kWh","indexUnit":"Wh","childId":885,"name":"Conso. jour","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigLog>>>childKey=T1WhActuel, log=590 VA, json.encode(childsConfig[childKey])={"log":"590 VA","value":5,"unit":"Wmn","indexUnit":"Wh","childId":881,"name":"Conso. actuelle","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigLog>>>childKey=T1kWhJour, log=590 VA, json.encode(childsConfig[childKey])={"log":"590 VA","value":24.4,"unit":"kWh","indexUnit":"Wh","childId":885,"name":"Conso. jour","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigValue>>>childKey=T1JourEuro, json.encode(childsConfig[childKey])={"log":"24.4 kWh","value":4.09,"unit":"€","indexUnit":"Wh","childId":890,"name":"Coût jour","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigValue>>>childKey=T1MoisEuro, json.encode(childsConfig[childKey])={"log":"3672 kWh","value":554,"unit":"€","indexUnit":"Wh","childId":889,"name":"Coût mois","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigValue>>>childKey=T1AnneeEuro, json.encode(childsConfig[childKey])={"log":"12989 kWh","value":1979,"unit":"€","indexUnit":"Wh","childId":886,"name":"Coût année","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigLog>>>childKey=T1JourEuro, log=24.4 kWh, json.encode(childsConfig[childKey])={"log":"24.4 kWh","value":4.09,"unit":"€","indexUnit":"Wh","childId":890,"name":"Coût jour","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigLog>>>childKey=T1MoisEuro, log=3672 kWh, json.encode(childsConfig[childKey])={"log":"3672 kWh","value":554,"unit":"€","indexUnit":"Wh","childId":889,"name":"Coût mois","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigLog>>>childKey=T1AnneeEuro, log=12989 kWh, json.encode(childsConfig[childKey])={"log":"12989 kWh","value":1979,"unit":"€","indexUnit":"Wh","childId":886,"name":"Coût année","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigValue>>>childKey=T1SimuBaseJour, json.encode(childsConfig[childKey])={"log":"24.4 kWh","unit":"€","indexUnit":"Wh","childId":887,"name":"Simul. BASE jour","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigValue>>>childKey=T1SimuBaseMois, json.encode(childsConfig[childKey])={"log":"3672 kWh","unit":"€","indexUnit":"Wh","childId":882,"name":"Simul. BASE mois","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigValue>>>childKey=T1SimuBaseAnnee, json.encode(childsConfig[childKey])={"log":"12989 kWh","unit":"€","indexUnit":"Wh","childId":880,"name":"Simul. BASE année","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigLog>>>childKey=T1SimuBaseJour, log=24.4 kWh, json.encode(childsConfig[childKey])={"log":"24.4 kWh","unit":"€","indexUnit":"Wh","childId":887,"name":"Simul. BASE jour","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigLog>>>childKey=T1SimuBaseMois, log=3672 kWh, json.encode(childsConfig[childKey])={"log":"3672 kWh","unit":"€","indexUnit":"Wh","childId":882,"name":"Simul. BASE mois","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigLog>>>childKey=T1SimuBaseAnnee, log=12989 kWh, json.encode(childsConfig[childKey])={"log":"12989 kWh","unit":"€","indexUnit":"Wh","childId":880,"name":"Simul. BASE année","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: setValuesForChilds>>>CostJour=4.09, costMois=554, costAnnee=1979 [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigLog>>>childKey=T1kWhJour, log=4.09 €, json.encode(childsConfig[childKey])={"log":"4.09 €","value":24.4,"unit":"kWh","indexUnit":"Wh","childId":885,"name":"Conso. jour","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigValue>>>childKey=C1Jour, json.encode(childsConfig[childKey])={"log":"0 L","value":0,"unit":"L","indexUnit":"L","childId":884,"name":"C1 Conso. jour","fibaroType":"com.fibaro.multilevelSensor"} [06.03.2023] [10:24:14] [DEBUG] [QA_ECODEVICES_879]: updateChildsConfigLog>>>childKey=C1Jour, log=0 L, json.encode(childsConfig[childKey])={"log":"0 L","value":0,"unit":"L","indexUnit":"L","childId":884,"name":"C1 Conso. jour","fibaroType":"com.fibaro.multilevelSensor"} A ce que j'en déduit : Il récupère bien le JSON / lance la routine / met à jour quelques info mais pas toutes (jusqu'au label 4 compris mais pas le 5). Et bug sur la ligne a cause d'une valeur nul. Sauf que ligne 1153 j'ai ça --> label = incLabel(label); Si vous avez une idée, je suis preneur. En vous remerciant Salut @Manu31, j'ai le même problème que toi. Cela vient du pointeur sur childsConfig[BASEIndex]. Le programme cherche "indexUnit" qui semble vide visiblement (je n'ai pas encore été plus loin). Solution de brute en attendant mieux, place le childsConfig en commentaire. Tu perds l'info mais au moins le reste fonctionne : self:updateView("Lbl_"..label, "text", a .. " index : " .. compteurs.teleinfo1[a.."Index"])-- .. childsConfig[a.."Index"].indexUnit);
Messages recommandés