vincentwolsink / home_assistant_enphase_envoy_installer

This is a HACS custom integration for Enphase Envoys with firmware version 7 and up.
Apache License 2.0
54 stars 10 forks source link

[FEATURE] Ability to upload grid profile #107

Closed upsuper closed 4 months ago

upsuper commented 4 months ago

Describe the feature

While #95 allows setting grid profile, it seems at least for my installation, the grid profile gets removed every time I switch away from it. However, it seems that there is an endpoint for uploading grid profile so that it can be switched to again locally.

The endpoint is /installer/agf/upload_profile_package, which accepts a POST with multipart/form-data with field file being the file of the grid profile. This endpoint can be opened directly in the browser as well, which would show a form that can be used to submit the file through this endpoint.

Account type

Envoy

(If you want grid profile file to test, I can send you privately. I'm not sure whether it's okay to upload them publicly.)

upsuper commented 4 months ago

Done in #108 .

upsuper commented 4 months ago

For record, my firmware version currently is 8.2.x. I chatted with @brodykenrick and it seems his firmware version is 7.6.x which doesn't have the behavior that grid profile gets removed after switching away. I suspect this is a behavior started from 8.x.