This was originally found at https://community.home-assistant.io/t/enphase-local-api-with-firmware-7-x-my-setup/563828
Script by ha_steve, put up here for more to hopefully find.
I've also included an the Enphase information from my configuration.xml