Skip to content

Add support for Xiaomi MJWSD07MMC - #1615

Merged
Ernst79 merged 1 commit into
custom-components:masterfrom
kevin8717:add-mjwsd07mmc
Sep 30, 2026
Merged

Ernst79 merged 1 commit into
custom-components:masterfrom
kevin8717:add-mjwsd07mmc

Conversation

@kevin8717

Copy link
Copy Markdown

Summary

  • Add the Xiaomi MJWSD07MMC product ID (0x9AB9).
  • Parse its temperature (0x5C01), humidity (0x5C02), and CO2 (0x601D) objects.
  • Register the device measurement entities; battery uses the existing 0x5003 battery object.
  • Add device documentation and regression tests using captured encrypted advertisements.

Testing

  • Targeted MJWSD07MMC and battery tests: 2 passed
  • Full Xiaomi parser suite: 101 passed, with one pre-existing Windows-only failure because time.tzset() is unavailable.

@Ernst79 Ernst79 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the precommit errors?

@kevin8717

Copy link
Copy Markdown
Author

Thanks for the review. Fixed the pre-commit/isort failure in 35c8872 and pushed the update.

Local verification:

  • pre-commit run --show-diff-on-failure --files ... passes, including isort.
  • Targeted MJWSD07MMC and battery tests: 2 passed.

The workflow may need approval again after the force-push.

@Ernst79

Ernst79 commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Thanks

@Ernst79
Ernst79 merged commit ee4ae65 into custom-components:master Sep 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants