sarnau / EnphaseEnergy

Various collected information about Enphase Energy solar system
136 stars 35 forks source link

Alternative URL for polling #4

Open adam-nielsen opened 2 years ago

adam-nielsen commented 2 years ago

Thanks for all this info! I have used it to investigate some of my employer's Enphase devices that they wish to monitor.

While poking around in the code for the web site, I also found the URL /ivp/meters/readings which appears to give you a one-off reading of the current values, without any password needed. It appears to give slightly more information (mostly around reactive power) but isn't as concise as the streaming version.

We appear to be on an older firmware version D5.0.34 (June 2019) so not sure if this URL still works on newer versions. If anyone is running a newer version and can test it let me know, as I think we will use this URL for our monitoring because of the additional info.

/ivp/meters also gives you a list of the attached devices, although I'm not quite sure what to make of this just yet. If you know the device's IP address, /inventory.json appears to give you a bunch of info about the device, including its serial number. /ivp/meters/EID breaks something in the firmware if you use any EID except one returned by the /ivp/meters call. It stops responding to any /ivp/* request until you reboot it or you SSH in and run /etc/init.d/eim restart.

I also found references to a much lower level API where you can read and write to the registers on the ADE7758 power monitoring chip, so that would be interesting, but it probably would be a lot of effort for not much additional information.