Hacker News new | ask | show | jobs
by serbrech 872 days ago
I was very disappointed when I realized that the data showing from the app was 20min behind, and going through the cloud, while the Envoy box is connected to my local network and has a per-second stream.

their documentation is close to inexistant too. There were a couple opensource projects, with some snippets of code to get inspiration from to connect and scrape the data directly from the local API.

I did this and pushed data to grafana, but never took the time to share it.

Since my last attempt, it seems that more projects showed up that did a better job than me making it reusable :)

- https://github.com/petercable/solar-observatory

- https://github.com/vk2him/Enphase-Envoy-mqtt-json

- https://github.com/Matthew1471/Enphase-API

1 comments

Thanks so much for your note and these links! Can't wait to give it a shake.
Thanks for the shoutout to my wrapper and docs too :)

My GitHub repo serves 2 purposes:

1. To provide a reusable wrapper (currently only Python, https://github.com/Matthew1471/Enphase-API/blob/main/Documen...) to talk to the LAN API, it's even installable via pip.

2. To document what the LAN API returns and all the URL endpoints (https://github.com/Matthew1471/Enphase-API/tree/main/Documen...).

I would like to see more people using the wrapper so we have a common way of talking to the IQ Gateway (there's a lot of tightly coupled projects on GitHub), but most people seem more interested in the docs I provide and rolling their own wrapper.

I always have plans to add more to it - I found multiple security vulnerabilities in the IQ Gateway and that allowed me to get a dump of the firmware - so there's plenty more URLs for me to write about :)

Thanks so much for your work and sharing. I'm excited.

Great that you're able to update settings... not just read data. I assume that changes to settings are synced with Enphase's cloud as if done with the cloud-based API.

I assume it's not possible or advisable to disconnect from Enphase's cloud altogether (please let me know if that's actually no big deal). [EDIT: Thanks for addressing this in your other comment.]

Enphase released a better EV charger* a few months ago, that's integrated with the other IQ stuff. It can dynamically send excess solar production into the EV instead of exporting to the grid (and can be set to top off the EV battery with grid imports in the middle of the night). I'll finish installing mine this week. ...Please consider incorporating that into your wrapper :)

I too am pretty quick to roll my own stuff. But I'll try to practice restraint, and leverage your wrapper (and treat it as a standard).

* https://enphase.com/store/ev-chargers/connected-ev-chargers-...