[UNSUPPORTED] Enphase Envoy (local access)

It’s interesting… mine seems to track ok during the 1st half of the day, then drifts and is quite often 20kWH different by the end of the day…

I’ve poked around the various entry points /production.json, /api/v1/production, etc… ad it seems fairly consistent…

Finally got my CTs squared away, so at least I know that part is working fine, but it looks like there’s some offset somewhere on the Enlighten side or something that often overstates what the Envoy reports…

I’m also finding it odd that some of these entry points don’t respond from my PC browsers, but DO from my Mobile Phone… All are on the same network, so it’s really odd… thoughts there?

At first i wanted to have this on my action tiles… but now I feel like it is way too much for me to put together. lol

@klockk, I 've just installed solar and when I use my browser to access “http://ENVOY_IP/production” I get the prompt for username/password. How did you work around that?

To answer my own question, I have an Envoy IQ and the command I needed to use is “http://ENVOY_IP/production.json” which I got from Jesse Rizzo’s code envoy_reader.

1 Like

That’s probably because the local server requires the Digest authentication.
Try:

curl --digest --user name:password http://envoy.local/api/v1/production/inverters

The --digest option tells cUrl to specifically use that method.

@jensmoes, you’re correct and using curl is a great suggestion to try it out, txs!

You can also login using user:envoy and pass: Last 6 Digits of Envoy Serial Number

that doesn’t work in my case

Hello
Thank you
I have an Envoy S but no production for the moment.
I can’t see the consumption tho.
I had this error do you know why?

java.util.concurrent.TimeoutException: Execution time exceeded 20 app execution seconds: 597449284218247 @line 520 (dataCallback)
Thank you

Does anyone have the envoy-s code branch from geggog that includes consumption data? It is no longer on the dropbox link that was provided. If so could you please post it?

Hi @ahndee

I have tried to modify some of the enphase DTH on this forum for my solar inverter which is a zeversolar. I am not a programmer by any means. Are you or someone please able to help out withe code. I can use the zevercloud API GET request and get a response with JSON-formatted data over the browser. But I am not sure how to get it to display in Smartthings.

API Get request: https://www.zevercloud.com/api/v1/getPlantOverview?key=

Ive managed to run the GET cmd and get a response through Smartthings but get the following error:


1:10:17 PM: error groovy.lang.MissingPropertyException: No such property: E for class: java.io.StringReader @line 120 (doCall)

1:10:17 PM: debug {“sid”:XXXX,“ludt”:“2020-04-05 13:09:56”,“E-Today”:{“unit”:“kWh”,“value”:11.7},“E-Month”:{“unit”:“kWh”,“value”:59.62},“E-Total”:{“unit”:“MWh”,“value”:15.82},“TotalYield”:{“unit”:"$",“value”:3875.98},“CO2Avoided”:{“unit”:“T”,“value”:8.7},“Power”:{“unit”:“kW”,“value”:1.55}}

1:10:16 PM: debug

Looks like you’re trying to access an JSON element “E” that doesn’t exist (there is “E-Today” and “T-Total”) - what is line 120 of your DTH?

@ahndee thanks for the quick reply. The DTH I attempted modify was https://github.com/gouldner/SmartThingsPublic/blob/master/devicetypes/gouldner/enlighten-solar-system.src/enlighten-solar-system.groovy .

That error is with “E-Today”. Could it be ‘-’ that is throwing it off? I have some idea what im changing but don’t understand all of it.

Is it easier if you could modify your DTH to suit the Zeversolar API GET request? Any help would be much appreciated:)

Can someone on here please help me compile the DTH for Zeversolar solar inveter to suit the output of the API GET cmd above.

This may be a stupid question, but my SmartThings cannot even detect my Enphase Envoy. The Device handler will be great once I can add my Envoy to SmartThings. What do I need to do to connect the envoy to SmartThings?

Are you running the SmartThings Classic app? I thing you’ll need that to detect and add the Enphase Envoy.

You’ve got to find your envoy up, then configure the app

Yes I am using classic but when I click the plus to add a thing SmartThings never finds the envoy. Does this only work for specific models or firmware of the envoy?

If I remember correctly, you manually create the device in the Groovy IDE first. Then go to the app and make the settings in the device.