home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.03k stars 29.69k forks source link

Lutron Caseta not connecting reliably #122285

Open throb opened 1 month ago

throb commented 1 month ago

The problem

File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 628, 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 178, in async_turn_on await self._async_set_brightness(brightness, color, kwargs) File "/usr/src/homeassistant/homeassistant/components/lutron_caseta/light.py", line 138, in _async_set_brightness await self._smartbridge.set_value( File "/usr/local/lib/python3.12/site-packages/pylutron_caseta/smartbridge.py", line 440, in set_value await self._request( File "/usr/local/lib/python3.12/site-packages/pylutron_caseta/smartbridge.py", line 252, in _request raise BridgeDisconnectedError() pylutron_caseta.BridgeDisconnectedError 2024-07-20 17:24:33.430 WARNING (MainThread) [pylutron_caseta.smartbridge] Reconnecting after error: [Errno 110] Connect call failed ('10.0.0.237', 8081) 2024-07-20 17:24:35.432 DEBUG (MainThread) [pylutron_caseta.smartbridge] Connecting to Smart Bridge via SSL

This is basically a duplicate of : https://github.com/home-assistant/core/issues/31361

What version of Home Assistant Core has the issue?

2024.7.3

What was the last working version of Home Assistant Core?

2024.7.1 (maybe)

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Lutron Caseta

Link to integration documentation on our website

https://www.home-assistant.io/integrations/lutron_caseta/

Diagnostics information

config_entry-lutron_caseta-1099119f4934cafc5a066c1dd6efa434.json

Example YAML snippet

Any on/off/value change. Nothing works.

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @swails, @bdraco, @danaues, @eclair4151, mind taking a look at this issue as it has been labeled with an integration (lutron_caseta) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `lutron_caseta` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign lutron_caseta` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


lutron_caseta documentation lutron_caseta source (message by IssueLinks)

throb commented 3 weeks ago

adding more information here from the logs :

Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/commands.py:241 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 8:54:47 AM (3 occurrences) Last logged: 8:54:53 AM

[139978127208608] Unexpected exception Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pylutron_caseta/smartbridge.py", line 260, in _request response = await self._leap.request( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pylutron_caseta/leap.py", line 75, in request return await future ^^^^^^^^^^^^ asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2763, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2806, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 999, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1071, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 626, 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 174, in async_turn_on await self._async_set_brightness(brightness, color, kwargs) File "/usr/src/homeassistant/homeassistant/components/lutron_caseta/light.py", line 134, in _async_set_brightness await self._smartbridge.set_value( File "/usr/local/lib/python3.12/site-packages/pylutron_caseta/smartbridge.py", line 440, in set_value await self._request( File "/usr/local/lib/python3.12/site-packages/pylutron_caseta/smartbridge.py", line 259, in _request async with asyncio_timeout(REQUEST_TIMEOUT): File "/usr/local/lib/python3.12/asyncio/timeouts.py", line 115, in aexit raise TimeoutError from exc_val TimeoutError

I am able to access the iOS app and control the lutron with zero issues. How else can I help to solve this issue?