Enphase Envoy detected but HA unable to interpret JSON

Just got my Envoy IQ7 installed. I configured HA to automatically detect my device. It appears to have done this, however, when I try to add a card to Lovelace to graph energy consumption I see an error message on the card “Got a response from ‘http://envoy/production.json’, but metric could not be found. Maybe your model of Envoy doesn’t support the requested metric.”

I went to the Developer tools section on the HA home page, and under ‘States’ I can see all my connected devices. Every sensor.envoy_XXX tag has got the same error message.

I assume my Envoy may be a newer version than what HA supports, but I have no idea how to figure out what version of Envoy I have. Any troubleshooting tips? Thanks in advance

Here is the response from http://Envoy/production.json

{“production”:[{“type”:“inverters”,“activeCount”:26,“readingTime”:1559142987,“wNow”:0,“whLifetime”:3836},{“type”:“eim”,“activeCount”:1,“measurementType”:“production”,“readingTime”:1559143231,“wNow”:-9.842,“whLifetime”:3633.422,“varhLeadLifetime”:0.0,“varhLagLifetime”:5148.07,“vahLifetime”:8099.891,“rmsCurrent”:1.903,“rmsVoltage”:744.864,“reactPwr”:462.479,“apprntPwr”:472.979,“pwrFactor”:-0.02,“whToday”:1.422,“whLastSevenDays”:3518.422,“vahToday”:636.891,“varhLeadToday”:0.0,“varhLagToday”:623.07}],“consumption”:[{“type”:“eim”,“activeCount”:1,“measurementType”:“total-consumption”,“readingTime”:1559143231,“wNow”:385.458,“whLifetime”:47384.96,“varhLeadLifetime”:2834.326,“varhLagLifetime”:38861.345,“vahLifetime”:62197.564,“rmsCurrent”:4.62,“rmsVoltage”:744.869,“reactPwr”:-930.128,“apprntPwr”:3441.572,“pwrFactor”:0.11,“whToday”:658.96,“whLastSevenDays”:47345.96,“vahToday”:1113.564,“varhLeadToday”:715.326,“varhLagToday”:623.345},{“type”:“eim”,“activeCount”:1,“measurementType”:“net-consumption”,“readingTime”:1559143231,“wNow”:395.3,“whLifetime”:45705.701,“varhLeadLifetime”:2834.326,“varhLagLifetime”:33713.275,“vahLifetime”:62197.564,“rmsCurrent”:2.717,“rmsVoltage”:744.875,“reactPwr”:-467.649,“apprntPwr”:672.09,“pwrFactor”:0.59,“whToday”:0,“whLastSevenDays”:0,“vahToday”:0,“varhLeadToday”:0,“varhLagToday”:0}],“storage”:[{“type”:“acb”,“activeCount”:0,“readingTime”:0,“wNow”:0,“whNow”:0,“state”:“idle”}]}

The JSON you sent looks OK, i.e. the keys and values seem to be all there.

I just looked at the library, and just two days ago there was a change (not yet in HA of course) indicating that the error message you see is misleading. In this version of the library that error message appears if HA cannot connect to the Envoy system.

Can you try accessing that exact URL (http://envoy/production.json) from the server that is running HA? Maybe it simply can’t resolve the hostname?
As an alternative, you could configure the Envoy’s IP address instead. When you access http://envoy/ from your computer you should get an overview from your Envoy including its IP address.

That could be it. I noted from one of my other PCs that if I went to http://envoy/ it failed to resolve, so I had to use the IP address instead. If HA is not using the IP address, then that would definitely not resolve. Will try this and let you know!

Yes that fixed it! Thanks for the help.

1 Like