vk2him / Enphase-Envoy-mqtt-json

Takes real time stream from Enphase Envoy and publishes to mqtt broker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSL: CERTIFICATE_VERIFY_FAILED

carfnann opened this issue · comments

Hello

Since some weeks i'm having issue to run the addon :

18/07/2023 18:09:32 Exception fetching stream data: HTTPSConnectionPool(host='envoy.local', port=443): Max retries exceeded with url: /stream/meter (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:997)')))

Do you have any clue why is it not working anymore?
is it related to python upgrade on HA?

Thanks

Hi, this is really odd as your error shows it's trying to connect to the envoy via https on port 443 which is incorrect, it must be http on port 80.

Can you confirm your envoy has version 5.x.x firmware?

I assume you're running version 1.0.7 of my addon and that you've already tried removing and reinstalling? I just did that myself and it works fine - I'm running:
Home Assistant 2023.7.2
Supervisor 2023.07.1
Operating System 10.3
Frontend 20230705.1 - latest

Can you please try this for fault finding and report back?
In Configuration, change "envoy.local" to the actual ip address of the envoy with :80 appended to the end. For me, it's 192.168.1.84:80

My bet, the Firmware was updated to version 7.
The url /stream/meter in FW 7 gives 301 and tries to redirect to https. Since it is a self-sign certificate, python gives erros.
Just browse http://envoy.local to confirm FW version.

yes, i've tried to reinstall without success.
I've check and my gateway has been updated to D7.6.175 (f79c8d) :( which use https on the gateway...
i've sent a message to support to downgrade me.

i'm giving a try with the update you provide, but getting an error. i will give my feedback on the other topic