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

Fix Aqara high precision motion sensor not detecting motion #3091

Conversation

TheJulianJES
Copy link
Collaborator

@TheJulianJES TheJulianJES commented Apr 7, 2024

Proposed change

Even though Aqara high precision motion sensors send false occupancy reports every hour (home-assistant/core#114129), at least some firmware versions actually use the ZCL cluster for sending occupancy reports.

This PR changes the agl04 quirk to parse ZCL occupancy reports again. This fixes the issue of some of these devices not detecting motion at all.

Additional information

This partly reverts #2779 (for the agl04 / high precision sensor). The T1 sensor fix is correct.
Addresses home-assistant/core#115027

Checklist

  • The changes are tested and work correctly
  • pre-commit checks pass / the code has been formatted using Black
  • Tests have been added to verify that the new code works

@TheJulianJES TheJulianJES added the bugfix This PR fixes a bug label Apr 7, 2024
@TheJulianJES
Copy link
Collaborator Author

Codecov upload fail is unrelated. This PR also doesn't affect coverage.

@TheJulianJES TheJulianJES merged commit cc11791 into zigpy:dev Apr 7, 2024
4 checks passed
lgraf pushed a commit to lgraf/zha-device-handlers that referenced this pull request May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant