Ich habe eine frage zu virtuelle eingänge. Ich habe eine Enphase Envoy photovoltaik system. Mit json kann ich die daten auslesen:
{"production":[{"type":"inverters","activeCount":18,"readingTime":1573326966,"wNow":0,"whLifetime":344182},{"type":"eim","activeCount":1,"measurementType":"production","readingTime":1573327022,"wNow":-2.871,"whLifetime":14561.397,"varhLeadLifetime":0.044,"varhLagLifetime":15788.111,"vahLifetime":26601.687, "rmsCurrent":0.351,"rmsVoltage":232.685,"reactPwr":81.758,"apprntPwr":81.758,"pwrFactor":0.0,"whToday":2970.397,"whLastSevenDays":13265.397,"vahToday":4237.687,"varhLeadToday":0.044,"varhLagToday":1821.111}], "consumption":[{"type":"eim","activeCount":1,"measurementType":"total-consumption","readingTime":1573327022,"wNow":232.995,"whLifetime":81891.633,"varhLeadLifetime":60313.993,"varhLagLifetime":15792.297, "vahLifetime":117078.799,"rmsCurrent":2.233,"rmsVoltage":232.683,"reactPwr":-409.985,"apprntPwr":519.507,"pwrFactor":0.45,"whToday":11655.633,"whLastSevenDays":78194.633,"vahToday":15597.799,"varhLeadToday":6922.993,"varhLagToday":1822.297}, {"type":"eim","activeCount":1,"measurementType":"net-consumption","readingTime":1573327022,"wNow":235.866,"whLifetime":74113.142,"varhLeadLifetime":60313.949,"varhLagLifetime":4.186,"vahLifetime":117078.799, "rmsCurrent":1.881,"rmsVoltage":232.681,"reactPwr":-328.227,"apprntPwr":437.672,"pwrFactor":0.53,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}],"storage": [{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]}
Ich habe das alst folgt versucht:
"wNow":\v
\i[{"type":\i "wNow":\v
Mit
"wattHoursToday": \v
{ "wattHoursToday": 2970, "wattHoursSevenDays": 13265, "wattHoursLifetime": 14561, "wattsNow": -2 }
Vielen dank für ihre hilfe!
Kommentar