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

Xiaomi mccgq02hl #4605

Closed
wants to merge 73 commits into from
Closed

Xiaomi mccgq02hl #4605

wants to merge 73 commits into from

Conversation

ahpohl
Copy link
Contributor

@ahpohl ahpohl commented Mar 21, 2023

What does this implement/fix?

Add support for Xiaomi door & windows sensor (MCCGQ02HL)

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other

Related issue or feature (if applicable): fixes esphome/feature-requests#978 and esphome/feature-requests#1948

Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#

Test Environment

  • ESP32
  • ESP32 IDF
  • ESP8266
  • RP2040

Example entry for config.yaml:

binary_sensor:
  - platform: xiaomi_mccgq02hl
    name: "MCCGQ02HL Sensor"
    mac_address: "E4:AA:EC:4E:5E:E4"
    bindkey: "e05552dabf6c7fa69010076c5855060b"
    battery_level:
      name: "MCCGQ02HL Battery-Level"
    has_light:
      name: "MCCGQ02HL Light"
    open:
      name: "MCCGQ02HL Open"

Checklist:

  • The code change is tested and works locally.
  • Tests have been added to verify that the new code works (under tests/ folder).

If user exposed functionality or configuration variables are added/changed:

ahpohl and others added 30 commits May 26, 2020 18:21
Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.8.3 to 3.8.4.
- [Release notes](https://gitlab.com/pycqa/flake8/tags)
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.3...3.8.4)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.0.2 to 6.1.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@6.0.2...6.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [colorlog](https://github.com/borntyping/python-colorlog) from 4.2.1 to 4.4.0.
- [Release notes](https://github.com/borntyping/python-colorlog/releases)
- [Commits](borntyping/python-colorlog@v4.2.1...v4.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
@probot-esphome
Copy link

Hey there @ahpohl,
Thanks for submitting this pull request! Can you add yourself as a codeowner for this integration? This way we can notify you if a bug report for this integration is reported.
In __init__.py of the integration, please add:

CODEOWNERS = ["@ahpohl"]

And run script/build_codeowners.py

(message by NeedsCodeownersLabel)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
@github-actions
Copy link
Contributor

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jun 20, 2023
@github-actions github-actions bot closed this Jun 27, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jun 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration new Xiaomi sensor door&windows (MCCGQ02HL)
3 participants