Part 4: Lutron

To Install Lutron… I need to obtain certification files. This was a painful process since I only have a windows PC and had to install a few things to get this to work.

Component: https://www.home-assistant.io/components/lutron_caseta/

This is the first challenging part as I don’t have a python environment nativeon my windows PC. I also am using a Docker for the Home Assistant instance on my RPI3, which previously had a python virtual environment installed.

On Windows – I installed the latest version of Python 3 (at point of this blog post it is 3.6.5 released 3/28/18)

https://www.python.org/downloads/

Make sure to check the “install pathways” or else it is difficult to setup the file pathway in command prompt. Without pathways clicked, command line does not know what the “python” command refers to. This is referring to the python.exe sitting in the install file.

#7 Executing the Lutron Cert Python Script. Follow the prompts. First you copy link in browser and log in to Lutron. Second you look up your bridge IP. And lastly it populates 3 certificate files in your folder.

C:\Users\Yanyan\Downloads>python get_lutron_cert.py
Open Browser and login at https://device-login.lutron.com/oauth/authorize?client_id=XXXXSANITIZED
Enter the URL (of the “error” page you got redirected to (or the code in the URL): https://device-login.lutron.com/lutron_app_oauth_redirect?code=XXXXSANITIZED
Enter the address of your Caseta bridge device: 10.0.1.54
Successfully connected to bridge, running LEAP Server version 1.108