Caseta Smart Bridge issue with latest Hassbian 0.73.1

I just fired up Hassbian 0.73.1 on a new Pi and all was going swimmingly. Having just stopped my Docker version of HASS, in favor of the Pi installation, I brought over my caseta.crt, caseta.key, and caseta-bridge.crt files, added the necessary configuration.yaml entries and HASS successfully set up all my Lutron switches.

Then the next morning, a few lights did not respond to HASS. I restarted, and now HASS reports invalid config and cannot setup Lutron. Puzzling that it worked … and then stopped working.

Log entries below. Any help is appreciated.

Tue Jul 10 2018 19:50:27 GMT-0400 (Eastern Daylight Time)

Error during setup of component lutron_caseta
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 143, in _async_setup_component
hass, processed_config)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/lutron_caseta.py”, line 57, in async_setup
yield from bridge.connect()
File “/srv/homeassistant/lib/python3.5/site-packages/pylutron_caseta/smartbridge.py”, line 40, in connect
yield from self._login()
File “/srv/homeassistant/lib/python3.5/site-packages/pylutron_caseta/smartbridge.py”, line 281, in _login
self._reader, self._writer = yield from self._connect()
File “/srv/homeassistant/lib/python3.5/site-packages/pylutron_caseta/smartbridge.py”, line 58, in _connect
family=socket.AF_INET)
File “/srv/homeassistant/lib/python3.5/site-packages/pylutron_caseta/leap.py”, line 16, in open_connection
limit=limit, **kwds)
File “/usr/lib/python3.5/asyncio/streams.py”, line 75, in open_connection
lambda: protocol, host, port, **kwds)
File “/usr/lib/python3.5/asyncio/base_events.py”, line 801, in create_connection
sock, protocol_factory, ssl, server_hostname)
File “/usr/lib/python3.5/asyncio/base_events.py”, line 827, in _create_connection_transport
yield from waiter
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/sslproto.py”, line 502, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File “/usr/lib/python3.5/asyncio/sslproto.py”, line 201, in feed_ssldata
self._sslobj.do_handshake()
File “/usr/lib/python3.5/ssl.py”, line 641, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:720)

I have a similar issue. I just restarted, and am running 0.73.1. I now get the “Invalid Config” card. Here are my log entries.

Log Details (ERROR)
Tue Jul 10 2018 22:10:54 GMT-0400 (Eastern Daylight Time)

Error during setup of component lutron_caseta
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/setup.py”, line 143, in _async_setup_component
hass, processed_config)
File “/usr/lib/python3.6/site-packages/homeassistant/components/lutron_caseta.py”, line 57, in async_setup
yield from bridge.connect()
File “/usr/lib/python3.6/site-packages/pylutron_caseta/smartbridge.py”, line 40, in connect
yield from self._login()
File “/usr/lib/python3.6/site-packages/pylutron_caseta/smartbridge.py”, line 281, in _login
self._reader, self._writer = yield from self._connect()
File “/usr/lib/python3.6/site-packages/pylutron_caseta/smartbridge.py”, line 58, in _connect
family=socket.AF_INET)
File “/usr/lib/python3.6/site-packages/pylutron_caseta/leap.py”, line 16, in open_connection
limit=limit, **kwds)
File “/usr/lib/python3.6/asyncio/streams.py”, line 75, in open_connection
lambda: protocol, host, port, **kwds)
File “uvloop/loop.pyx”, line 1877, in create_connection
File “uvloop/loop.pyx”, line 1874, in uvloop.loop.Loop.create_connection
File “uvloop/sslproto.pyx”, line 497, in uvloop.loop.SSLProtocol.data_received
File “uvloop/sslproto.pyx”, line 204, in uvloop.loop._SSLPipe.feed_ssldata
File “uvloop/sslproto.pyx”, line 171, in uvloop.loop._SSLPipe.feed_ssldata
File “/usr/lib/python3.6/ssl.py”, line 689, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)

I posted this as an issue on the issue tracker and will come back and share here if I get a helpful response.

Thanks. I just joined the chorus on issue tracker as well.

same issue here after update to homeassistant 0.73.1

Jul 14 17:31:25 HomeAssist hass[18500]: #033[32m2018-07-14 17:31:25 INFO (MainThread) [homeassistant.setup] Setting up lutron_caseta#033[0m
Jul 14 17:31:25 HomeAssist hass[18500]: #033[36m2018-07-14 17:31:25 DEBUG (MainThread) [pylutron_caseta.smartbridge] Connecting to Smart Bridge via SSL#033[0m
Jul 14 17:31:25 HomeAssist hass[18500]: #033[31m2018-07-14 17:31:25 ERROR (MainThread) [homeassistant.setup] Error during setup of component lutron_caseta#033[0m
Jul 14 17:31:25 HomeAssist hass[18500]: File “/usr/local/lib/python3.6/dist-packages/homeassistant/components/lutron_caseta.py”, line 57, in async_setup
Jul 14 17:31:25 HomeAssist hass[18500]: File “/root/.homeassistant/deps/lib/python3.6/site-packages/pylutron_caseta/smartbridge.py”, line 40, in connect
Jul 14 17:31:25 HomeAssist hass[18500]: File “/root/.homeassistant/deps/lib/python3.6/site-packages/pylutron_caseta/smartbridge.py”, line 281, in _login
Jul 14 17:31:25 HomeAssist hass[18500]: File “/root/.homeassistant/deps/lib/python3.6/site-packages/pylutron_caseta/smartbridge.py”, line 58, in _connect
Jul 14 17:31:25 HomeAssist hass[18500]: File “/root/.homeassistant/deps/lib/python3.6/site-packages/pylutron_caseta/leap.py”, line 16, in open_connection
Jul 14 17:31:25 HomeAssist hass[18500]: - lutron-caseta
Jul 14 17:31:25 HomeAssist hass[18500]: - lutron-caseta

See the following post by Breakerz

quick fix :
in [ /srv/hass/lib/python3.6/site-packages/pylutron_caseta/smartbridge.py ] line 50 :
ssl_context.verify_mode = ssl.CERT_NONE

instead of
ssl_context.verify_mode = ssl.CERT_REQUIRED

Just updated to 0.73.2, and it is working fine now.