Enphase PKIX error

Trying to set up the EnPhase binding. When adding the thing (bridge to the local enphase gateway) as per the instructions, it gets created, but communications fails with the following error: COMMUNICATION_ERROR

Could not retrieve data: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Access to the local gateway requires an accessToken (which I have), but I see no way to provide it via the binding.

Which enphase device do you have? The binding works for the Envoy gateway. The message suggests it tries to use a https connection, which is not needed as far as I know and I’m also not familiar with the access token. What configures did you use?

It is a regular envoy gateway (Model ENV-IQ-AM1-240 M). However I think the last few envoy firmware revisons (I have D7.0.107), requires an access token to access the local gateway. https://support.enphase.com/s/question/0D53m00007a2WcDCAU/instructions-to-get-access-token

Hmm, it looks like they changed the local API access with v7 and that they also promise to change/improve the local API. This means the current version of the binding doesn’t support this. My own system seem to be stuck on a old version from 2018.

1 Like

Yes, they have rolled out version v4 of the API which uses OAuth. They are deprecating the old API in October.