Lutron Caseta integration

I am about to install some Caseta switches. I see that there is a Lutron Caseta integration that requires I run a python file. I don’t really know how to do this with certainty. I have Python 2 on Win 7, but I can only use it correctly with very clear instructions to follow. Here was my session when I tried to run the file:

C:\Python27\Scripts>pip install pyopenssl

C:\Python27\Scripts>python get_lutron_cert.py
get_lutron_cert.py:25: CryptographyDeprecationWarning: Python 2 is no longer sup
ported by the Python core team. Support for it is now deprecated in cryptography
, and will be removed in the next release.
  from cryptography import x509
Traceback (most recent call last):
  File "get_lutron_cert.py", line 38, in <module>
    [x509.NameAttribute(NameOID.COMMON_NAME, "get_lutron_cert.py")]
  File "C:\Python27\lib\site-packages\cryptography\x509\name.py", line 87, in __
init__
    raise TypeError("value argument must be a text type.")
TypeError: value argument must be a text type.

C:\Python27\Scripts>

I’m not sure how to proceed. But I do see that the Add-on Store has a Lutron Certificate component.

A simple utility to generate signed certificate files to allow local control of a Lutron Caseta smart bridge.

Will this work with the L-BDG2? If not, can someone steer me in the right direction with the python file?

It turns out the python file doesn’t work on Python 2. The Lutron Add-On for Home Assistant worked like a charm. To anyone who is embarking on adding Caseta switches to his/her home, I’d recommend going the Add-On route.

2012.2 will have one touch pairing from the UI built into core.

1 Like