[UNSUPPORTED] Enphase Envoy (local access)

Success

1 Like

Hello, Anyone here set up scraping of the html page from the older Envoy-C? (pill shaped, production monitoring only, software older than R3.9.xx) Mine is R3.7.26 and the .json pages are not there. It sounded like @chewie8han had the same version Envoy, ever get it working? The html pages are there with data, just different format to scrape from, not as simple as the nice .json format.

I’m using homeassistant, and the code there works for the .json pages on newer s/w Envoy-C and Envoy-S ( /api/v1/production, /production.json pages), as it sounds like you have working here also. I figure I’ll add to the home assistant envoy_reader code, to do the .html pages on the older s/w Envoy-C, if it’s not available somewhere already.

Thanks! Go home automation!!

I’m just using the current version of the DTH posted in the first post. Pollster refreshes the data every 15 minutes for me. I have no experience with homeassistant, so I can’t really help you there.

For some reason when I go to enter the setup data in the settings, a Red banner keeps popping up saying that i need to enter all required fields when trying to save even know they already are! Any thoughts?

Just got my Solar!
Still waiting for the NetMeter, so it isn’t quite on yet, but I’m getting ready to play here! :slight_smile:Is this just a DTH and no App?

39 - 315W Panels
IQ7 MicroInverters… (So I THINK the Inverter size is 350W) - Will this work with the IQ7?

Excited to see this work! :slight_smile:

Can I pull any info from this for my ActionTiles Dashboard? (I see I can… please explain the difference between POWER vs Energy Values…?)

FINALLY got things going…
Looks like I have the M250 Inverters, based on the part number I saw in the Enlighten App details…
And my PV Modules appear to be the 315W Panels… (PV Module: REC315PE72 REC).

The numbers still seem to not align with the data I see in the Enlighten app…??

I also seem to be seeing a Java Timeout error when making queries to the DB…

10:53:57 AM: **error java.util.concurrent.TimeoutException**: Execution time exceeded 20 app execution seconds: 521964122406836 @line 520 (dataCallback)
10:53:37 AM: trace Querying DB for yesterday's data…
10:53:37 AM: debug Solar - new data: [wattHoursLifetime:41078, wattHoursSevenDays:39739, wattHoursToday:21154, wattsNow:7233]
10:53:37 AM: debug Solar - new data: [wattHoursLifetime:41078, wattHoursSevenDays:39739, wattHoursToday:21154, wattsNow:7233]
10:53:37 AM: debug Solar - requesting latest data from Envoy via JSON API… 

I seem to be seeing yesterday and todays data being the same also…??

Also, after further debugging of the code, I see what others have seen on the past, it SEEMS to be completely unable to save the STATE data… do PowerChange isnt working, as well as the graph data…
Still working on TRYING to debug it… but still not working… :confused: I’m almost assuming it is related to the timeout trying to get historical data, but not sure…

I’ve actually gone through and commented every block like this in the code… (there’s 4 of them…)

// 2019-07-11 - KTK - This call is causing a timeout and apparently an exit!
//while ((newValues = device.statesBetween("energy", startOfToday, energyData.last().date, [max: 288])).size()) {
//	energyData += newValues
//}

This gets rid of the Java errors everybody sees, and then immediately my graph started populating…
Additionally, my powerChange and other STATE values were finally gettign properly stored/updated…

I’ll have to dig through this more to understand what it removes from functionality…
but I seem to have a workign APP…

NOW, what I need to try and figure out is what that Power Reading is… (wattHoursToday, as I cant get that number to match anything in the Elighten data or even if I connect to the Enphase Envoy directly with the toolkit and look at live data…??? SO what is that???

It LOOKS like this thread is basically dead… kind of a bummer… :frowning:

Those lines are trying to read the db (event history) to populate the history for the graphs.

On ST, these commands are notorious for timing out. commenting them out is likely the best thing to do as they won’t run much once the history is populated.

The latest version of the code will try to populate the history only once – if it times out it will not try again…

I thought I downloaded the latest code just a couple weeks ago… but it kept repeatedly sending those errors, causing the function to drop out and nothing would get saved…

Have you updated the code in the last week or two?

I also cant get my install date, so seems like in this situation, it might be better to just add a config option to enable entering a date and use that if you cant get it from the system…
My Envoy pops the user/password prompt when trying /production url… :frowning:

Also… for the wattHoursToday value… what is that? It certainly doesn’t seem to match what comes back from my Enlighten monitoring data… (or is that part of a calculation somewhere and why we need to enter the # of panels, PV Type and Panel max value? (My Panels have a NOMINAL output of 315… not sure what the MAX is…)

No, it has been longer than that.

Seems like you are running a FW on your Envoy that isn’t really supported by this DTH, I’ve never seen user/pass request for the production page.

That is the current power (in Wh) produced so far for the current date. The Enlighten website will show those values with a delay with respect to the Envoy and it adds some filtering/post-processing which will make the values not fully agree at the end of the day. I prefer using the raw data as reported by the Envoy…

I’ve actually got this: https://enphase.com/sites/default/files/downloads/support/IQ-Combiner3-DS-EN-US.pdf

I see I’m on a higher FW revision than has been mentioned in here…

But with the changes I’ve made so far, i’ve got basic functionality… but no lifetime values at this point…

I’m also not getting any color on the tiles… :frowning:
Did I maybe somehow end up with an older version of the code??

Did this stuff ever get incorporated into the code, and I somehow got an older version?? This would GREAT to be able to have and add to action tiles dashboards…`

Mines was working fine for the past couple years until now! A few days ago, smartthings was showing the device as " unavailable" so I uninstalled then reinstalled everything. Readings throughout the day seem to be accurate, as well as lifetime and last 7 day production, but ā€œyesterdayā€ seems to be incorrect pretty frequently. It’s been about 4 days and still NOTHING showing up on the graph. Any ideas? I vaguely remember changing something in the code before (when it worked) but I could be wrong.

I’ve never even heard of that before – looks interesting though!

I see you’re running on Android – most likely that’s the reason for the lack of colors in the efficiency tiles.

Anybody happen to know where I can get my hands on this code branch?

I’d also be interested in the handler that looks at consumption too after getting my system installed yesterday! :slight_smile:

I’m going to third that. Anyone have the code for consumption?

I’m more than interested in making updates, but would like to find the consumption branch…

Actually, I’d love to figure out how to combine them into a single app/dth…

Also still interested in why the energy generated is so far off from what I see in Enlighten, and even pvoutput data… 20kWH difference today seems like a big difference…

I don’t see that, in fact my output in Enlighten pretty much matches what I see in Smartthings.