esphome / esphome/feature-requests
Integration new Xiaomi sensor door&windows (MCCGQ02HL) (2nd attempt)
- Dominant language
- No language data
- Stars
- 450
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the problem you have/What new integration you would like**
I would like to have an integration with the new Xiaomi sensor door&windows (MCCGQ02HL) which has BLE sensor.
**Please describe your use case for this integration and alternatives you've tried:**
I would like to have a similar integration like other Xiaomi BLE devices, without Xiaomi Gateway.
**Additional context**
A [feature request](https://github.com/esphome/feature-requests/issues/978) for this integration was opened a long time ago, and a PR developed by @morph027 https://github.com/esphome/esphome/pull/1645. The PR was never merged and something has changed since then since the integration doesn't compile anymore due to configuration errors. Although @szilardcsotya [reported](https://github.com/esphome/feature-requests/issues/978#issuecomment-1017917453) that the zigbee version works much better, I still use the bluetooth version myself and would like to have it merged officially.
**Todo:** Need somebody who can fix the python configuration error in `binary_sensor.py` (`AttributeError: module 'esphome.components.binary_sensor' has no attribute 'device_class'`) and submit a new PR . I believe the actual sensor code is still working and doesn't need changing.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the binary_sensor.py configuration error named in the issue and review the earlier PR #1645 for the Xiaomi MCCGQ02HL integration. Confirm the current configuration failure and compare the existing sensor implementation with current ESPHome configuration APIs. Done means the integration compiles and a new PR is submitted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100