MAM78 408 Signaler ce message Posté(e) 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é 25 mars par MAM78 Partager ce message Lien à poster Partager sur d’autres sites