I’ve added my Enphase Envoy solar system to my HA installation, but it seems the readings are not correct. My JSON file is not what HA expects I believe. Today’s power consumption is negative (-5.29), production is negative, and total production is o. If I add all inverters as sensors separately then all sensors show the correct production readings.
In the JSON file under “production” there are two headers:
0: type “ïnverters” (wNow 109, whLifetime 3081204)
1: type “EIM” (wNow -5.29, whLifetime 0)
So it seems HA is reading the wrong production field. Anybody else having these issues? Or any ideas as to what I’m doing wrong? Any help is much appreciated! JSON attached below.
{"production":[{"type":"inverters","activeCount":12,"readingTime":1572881147,"wNow":109,"whLifetime":3081204},{"type":"eim","activeCount":0,"measurementType":"production","readingTime":1572881198,"wNow":-5.29,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.285,"rmsVoltage":242.249,"reactPwr":0.162,"apprntPwr":36.847,"pwrFactor":-0.19,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0}],"consumption":[{"type":"eim","activeCount":0,"measurementType":"total-consumption","readingTime":1572881198,"wNow":-16.119,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":-0.067,"rmsVoltage":242.651,"reactPwr":-0.162,"apprntPwr":-16.243,"pwrFactor":-1.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":0.0,"varhLeadToday":0.0,"varhLagToday":0.0},{"type":"eim","activeCount":0,"measurementType":"net-consumption","readingTime":1572881198,"wNow":-10.829,"whLifetime":0.0,"varhLeadLifetime":0.0,"varhLagLifetime":0.0,"vahLifetime":0.0,"rmsCurrent":0.352,"rmsVoltage":243.052,"reactPwr":0.0,"apprntPwr":45.295,"pwrFactor":-0.35,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]}