Core version: core-2021.10.6
Lutron Bridge: L-BDG2-WH
I just recently started setting up automations which include lights controlled by the Lutron Smart Bridge. Since setting up the automations, I have started (inconsistently) getting these three errors (below) related to connection and SSL failures.
I used the UI to add the integration and I can see the cert files in the file editor. Network-wise, the bridge has a static IP and is online. I am able to control everything normally through the Lutron app without error or delay. And restarting HA or the bridge has no effect. Additionally, I am able to control the lights just fine in HA with the developer tools and lovelace UI.
Here are the three errors I get related to this automation.
Logger: pylutron_caseta.smartbridge
Source: /usr/local/lib/python3.9/site-packages/pylutron_caseta/smartbridge.py:446
First occurred: 12:07:20 PM (2 occurrences)
Last logged: 12:10:37 PM
Reconnecting...
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pylutron_caseta/smartbridge.py", line 434, in _monitor_once
await self._leap.run()
File "/usr/local/lib/python3.9/site-packages/pylutron_caseta/leap.py", line 78, in run
received = await self._reader.readline()
File "/usr/local/lib/python3.9/asyncio/streams.py", line 540, in readline
line = await self.readuntil(sep)
File "/usr/local/lib/python3.9/asyncio/streams.py", line 632, in readuntil
await self._wait_for_data('readuntil')
File "/usr/local/lib/python3.9/asyncio/streams.py", line 517, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.9/asyncio/sslproto.py", line 528, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File "/usr/local/lib/python3.9/asyncio/sslproto.py", line 206, in feed_ssldata
self._sslobj.unwrap()
File "/usr/local/lib/python3.9/ssl.py", line 948, in unwrap
return self._sslobj.shutdown()
ssl.SSLError: [SSL: APPLICATION_DATA_AFTER_CLOSE_NOTIFY] application data after close notify (_ssl.c:2756)
Logger: homeassistant.components.automation.entry_lights
Source: components/lutron_caseta/light.py:67
Integration: Automation (documentation, issues)
First occurred: 12:07:17 PM (4 occurrences)
Last logged: 12:10:34 PM
Entry Lights: Error executing script. Unexpected error for call_service at pos 1:
While executing automation automation.entry_lights
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pylutron_caseta/leap.py", line 71, in request
return await future
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 492, in wait_for
fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 371, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 571, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 830, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 462, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/usr/src/homeassistant/homeassistant/components/lutron_caseta/light.py", line 75, in async_turn_on
await self._set_brightness(brightness, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/lutron_caseta/light.py", line 67, in _set_brightness
await self._smartbridge.set_value(
File "/usr/local/lib/python3.9/site-packages/pylutron_caseta/smartbridge.py", line 286, in set_value
await self._request(
File "/usr/local/lib/python3.9/site-packages/pylutron_caseta/smartbridge.py", line 234, in _request
response = await asyncio.wait_for(
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 494, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
Logger: pylutron_caseta.smartbridge
Source: /usr/local/lib/python3.9/site-packages/pylutron_caseta/smartbridge.py:542
First occurred: 12:06:58 PM (2 occurrences)
Last logged: 12:10:28 PM
ping was not answered. closing connection.
Struggling to find what is going wrong here, any help is appreciated!