jrester/tesla_powerwall

Error: tesla_powerwall.error.PowerwallUnreachableError

pietervanderwesthuizen opened this issue · 6 comments

I get Powerwall is unreachable error with below code:

from tesla_powerwall import Powerwall, User, API

password='xxx'
email='xxx'
ip = "xxx" # Address of your Powerwall Gateway

powerwall = Powerwall(ip)

powerwall.login(password, email)

Console:

reticulate::source_python('C:/Users/piete/OneDrive/Documents/R/Powerwall 2.py')
Error: tesla_powerwall.error.PowerwallUnreachableError: Powerwall is unreachable: HTTPSConnectionPool(host='192.168.1.109', port=443): Max retries exceeded with url: /api/login/Basic (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)')))

Powerwall Gateway Firmware: 23.12.0 2f804982

Hi, this error seems to come from the self-signed certificate provided by the powerwall. Although this powerwall lib skips the certificate verification, it does not seem to work in your case. For further investigation could you please test the following short code snippet and report if it also throws the same error or returns a <Response [200]>:

import requests
print(requests.get("https://<insert your powerwall ip>", verify=False))

Hi, on my system I have exactly the same behavior: <Response [200]>.
Any news?

@pietervanderwesthuizen and @ezorzin, sorry for my late reply. Does the error still occur?

Closing this because of inactivity