lawtancool / pyControl4

Python 3 asyncio package for interacting with Control4 systems
https://lawtancool.github.io/pyControl4
Apache License 2.0
38 stars 16 forks source link

Error in usage example, SSL Error #2

Closed ctmanley closed 3 years ago

ctmanley commented 3 years ago

I ran test.py to test and get started. I replace username and password with my login username and password. I replaced ip with the ip of my EA-5 controller. The controller is running OS 3.1.1

When I run the test, I get the following error:

aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host apis.control4.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1122)')]

for this statement

asyncio.run(account.getAccountBearerToken())

Which is just after the statement: account = C4Account(username, password)

Is there something that needs to be configured in addition to username, password and ip? Is there a C4 drive needed to use this code?

lawtancool commented 3 years ago

I've never seen this error before - it appears to be something wrong with your local Python installation or internet access, not the library itself.