Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caseta Occupancy Sensors Fail #71308

Closed
BWilky opened this issue May 4, 2022 · 6 comments · Fixed by #71309
Closed

Caseta Occupancy Sensors Fail #71308

BWilky opened this issue May 4, 2022 · 6 comments · Fixed by #71309

Comments

@BWilky
Copy link

BWilky commented May 4, 2022

The problem

2022.5 Caseta Motion sensors fail to load showing unavailable.

What version of Home Assistant Core has the issue?

2022.5

What was the last working version of Home Assistant Core?

2022.4.5

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Lutron Caseta

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.binary_sensor
Source: components/lutron_caseta/__init__.py:339
Integration: Binary sensor (documentation, issues)
First occurred: 11:59:22 AM (1 occurrences)
Last logged: 11:59:22 AM

Error while setting up lutron_caseta platform for binary_sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/lutron_caseta/binary_sensor.py", line 33, in async_setup_entry
    entity = LutronOccupancySensor(occupancy_group, bridge, bridge_device)
  File "/usr/src/homeassistant/homeassistant/components/lutron_caseta/__init__.py", line 310, in __init__
    identifiers={(DOMAIN, self.serial)},
  File "/usr/src/homeassistant/homeassistant/components/lutron_caseta/__init__.py", line 339, in serial
    return self._device["serial"]
KeyError: 'serial'

Additional information

No response

@probot-home-assistant
Copy link

lutron_caseta documentation
lutron_caseta source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @swails, @bdraco, 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!
(message by CodeOwnersMention)

@thecode thecode added this to the 2022.5.1 milestone May 4, 2022
@bdraco
Copy link
Member

bdraco commented May 4, 2022

@BWilky I have a fix, but I need diagnostics to validate it. Thanks
Screen Shot 2022-05-04 at 14 52 09

@BWilky
Copy link
Author

BWilky commented May 4, 2022

@bdraco
Copy link
Member

bdraco commented May 4, 2022

Thanks @BWilky

Can you try the fix

cd /config
mkdir custom_components
git clone https://github.com/bdraco/lutron_caseta

Then restart

Note: Be sure to delete /config/custom_components/lutron_caseta and restart again once the official fix it out

@BWilky
Copy link
Author

BWilky commented May 4, 2022 via email

@github-actions github-actions bot locked and limited conversation to collaborators Jun 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants