I’m getting the same errors. I’m pretty new to importing custom code, so forgive me if I missed something obvious.
Here’s what I did to install the component:
I replaced /usr/local/lib/python3.4/dist-packages/pylutron/init.py with the version from your github.
I exported the Integration Report from the Lutron app and saved it as caseta_config.json in the same directory as configuration.yaml.
Did I miss something?
Here’s my config:
lutron:
lutron_host: "10.1.1.24"
lutron_user: "lutron"
lutron_password: "integration"
lutron_caseta: "true"
lutron_caseta_config: "caseta_config.json"
Here’s the error messages:
17-03-02 23:50:45 INFO (MainThread) [homeassistant.bootstrap] Setting up lutron
17-03-02 23:50:45 ERROR (MainThread) [homeassistant.bootstrap] Error during setup of component lutron
Traceback (most recent call last):
File "/usr/lib/python3.4/urllib/request.py", line 1182, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.4/http/client.py", line 1125, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.4/http/client.py", line 1163, in _send_request
self.endheaders(body)
File "/usr/lib/python3.4/http/client.py", line 1121, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.4/http/client.py", line 951, in _send_output
self.send(msg)
File "/usr/lib/python3.4/http/client.py", line 886, in send
self.connect()
File "/usr/lib/python3.4/http/client.py", line 863, in connect
self.timeout, self.source_address)
File "/usr/lib/python3.4/socket.py", line 512, in create_connection
raise err
File "/usr/lib/python3.4/socket.py", line 503, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 153, in _async_setup_component
None, component.setup, hass, config)
File "/usr/lib/python3.4/asyncio/futures.py", line 386, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 287, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 275, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/lutron.py", line 39, in setup
hass.data[LUTRON_CONTROLLER].load_xml_db()
File "/usr/local/lib/python3.4/dist-packages/pylutron/__init__.py", line 388, in load_xml_db
xmlfile = urllib.request.urlopen('http://' + self._host + '/DbXmlInfo.xml')
File "/usr/lib/python3.4/urllib/request.py", line 161, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.4/urllib/request.py", line 463, in open
response = self._open(req, data)
File "/usr/lib/python3.4/urllib/request.py", line 481, in _open
'_open', req)
File "/usr/lib/python3.4/urllib/request.py", line 441, in _call_chain
result = func(*args)
File "/usr/lib/python3.4/urllib/request.py", line 1210, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.4/urllib/request.py", line 1184, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>