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.35k stars 29.89k forks source link

Lutron Caseta failed setup. Will retry #109583

Closed tanner-moore closed 2 months ago

tanner-moore commented 7 months ago

The problem

Lutron Caseta wont integrate.

Logger: pylutron_caseta.smartbridge Source: runner.py:188 First occurred: 5:45:30 PM (28 occurrences) Last logged: 6:30:01 PM

Reconnecting after error: Separator is not found, and chunk exceed the limit

What version of Home Assistant Core has the issue?

core-2024.1.6

What was the last working version of Home Assistant Core?

No response

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

home-assistant_lutron_caseta_2024-02-04T02-38-04.707Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 7 months ago

Hey there @swails, @bdraco, @danaues, 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)

rblakemesser commented 7 months ago

I'm seeing the same problem with this stack trace

2024-02-09 16:15:55.169 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 05a1fbf7 for lutron_caseta
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/lutron_caseta/__init__.py", line 176, in async_setup_entry
    await bridge.connect()
  File "/usr/local/lib/python3.12/site-packages/pylutron_caseta/smartbridge.py", line 107, in connect
    await self._login_completed
  File "/usr/local/lib/python3.12/site-packages/pylutron_caseta/smartbridge.py", line 777, in _login
    await self._load_ra3_devices()
  File "/usr/local/lib/python3.12/site-packages/pylutron_caseta/smartbridge.py", line 882, in _load_ra3_devices
    await self._load_ra3_control_stations(area)
  File "/usr/local/lib/python3.12/site-packages/pylutron_caseta/smartbridge.py", line 938, in _load_ra3_control_stations
    await self._load_ra3_station_device(
  File "/usr/local/lib/python3.12/site-packages/pylutron_caseta/smartbridge.py", line 1011, in _load_ra3_station_device
    for button_json in button_expanded_json["Buttons"]:
                       ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'Buttons'
hackncrash commented 5 months ago

I am seeing the same issue

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 504, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/lutron_caseta/__init__.py", line 176, in async_setup_entry await bridge.connect() File "/usr/local/lib/python3.12/site-packages/pylutron_caseta/smartbridge.py", line 107, in connect await self._login_completed asyncio.exceptions.CancelledError

hackncrash commented 5 months ago

For me, I found I never set a static IP address, and the IP changed. Lesson learned.

issue-triage-workflows[bot] commented 2 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.