I am trying to use the new Lutron binding in HASS 0.37 however I have not been successful. In the configuration page it says it will auto discover however this hasn’t been the case for me. I can connect to the hub manually (with telnet) and the lutron component in openhab is working so I think my hardware is ok.
I have also attempted adding configuration based on my reading of component source code (lutron.py) as follows.
lutron:
lutron_host: 10.0.1.242
lutron_user: "lutron"
lutron_password: "integration"
however after doing so I receive the following error:
17-02-04 12:48:43 ERROR (MainThread) [homeassistant.bootstrap] Error during setup of component lutron
Traceback (most recent call last):
File "/usr/lib/python3.4/urllib/request.py", line 1174, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.4/http/client.py", line 1090, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request
self.endheaders(body)
File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.4/http/client.py", line 924, in _send_output
self.send(msg)
File "/usr/lib/python3.4/http/client.py", line 859, in send
self.connect()
File "/usr/lib/python3.4/http/client.py", line 836, in connect
self.timeout, self.source_address)
File "/usr/lib/python3.4/socket.py", line 509, in create_connection
raise err
File "/usr/lib/python3.4/socket.py", line 500, 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 151, in _async_setup_component
None, component.setup, hass, config) File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion. File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result() File "/usr/lib/python3.4/asyncio/futures.py", line 277, 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 "/home/pi/.homeassistant/deps/pylutron/__init__.py", line 330, in load_xml_db
xmlfile = urllib.request.urlopen('http://' + self._host + '/DbXmlInfo.xml')
File "/usr/lib/python3.4/urllib/request.py", line 153, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.4/urllib/request.py", line 455, in open
response = self._open(req, data)
File "/usr/lib/python3.4/urllib/request.py", line 473, in _open
'_open', req)
File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
result = func(*args) File "/usr/lib/python3.4/urllib/request.py", line 1202, in http_open
return self.do_open(http.client.HTTPConnection, req) File "/usr/lib/python3.4/urllib/request.py", line 1176, in do_open
raise URLError(err)urllib.error.URLError: <urlopen error [Errno 111] Connection refused>
Any ideas?