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
MCCGQ02HL BLE 5.1 Door sensor 2 #115
Comments
At the moment, no. The FAQ gives instructions for adding new devices. But it might be not as easy to implement as new temperature/humidity sensors. |
There is a Log from Xiaomi Door Sensor 2 (MCCGQ02HL): |
This is from Logbook using HACS/Xiaomi Gateway 3 integration (time from log is different from logbook) |
there are more logs: |
Hello everyone. Sorry for the long silence. I'll take a look at the data you've collected shortly. I will give you the details after examining your data. |
Hello everyone again. Looked at the data provided by @evalnor. As there are more and more requests for the implementation of support for "switching" sensors, for now I will return to work on reworking our component so that information about events from such sensors is processed in real time. |
Another thought arose - I will prepare a special version of the component to simplify the collection of data from unknown "encryptors" (but the encryption key will still need to be obtained in advance). I will let you know. |
I try Open, Close with and withou Light, and try set Open timeout alert, and open more then this time ...
|
|
@andrewjswan as I wrote in a previous post, this data is useless without an encryption key ... |
If it helps, I've used the modded APK from this link: https://www.kapiba.ru/2017/11/mi-home.html to successfully pair to the sensor, however be aware that it needs a specific directory to store the bindkey files. |
@Magalex2x14 I have token and bindkey how i can send it to you? |
You can email - magalex28@gmail.com. Or Telegram - @Magalex2x14 |
Send by email... |
Thank you, @andrewjswan. The key fits. I will try to figure it out by the end of the week. It is possible that the processing of data from "switching" sensors in real-time will also be ready by this time, but I cannot say for sure yet. |
In the dumps above, I found events from two switching sensors - a door sensor and a light sensor. |
Hi, |
Yes. Yes. |
0.8.2-beta is ready for testing. Note the breaking changes (if not yet updated to 0.8.x) |
@Magalex2x14 I try update to 0.8.1 or to 0.8.2-beta and always have error: No content to download |
Restart your home assistant and try again. It is a sync issue in HACS, as we moved folders. |
It does not help, now I have completely lost the directory with this integration in the custom integration directory. |
|
That is suppose to happen. Do you have a new folder ble_monitor in custom_components? If you don’t have that folder, try to uninstall, restart HA and then reinstall. |
If i try update from HACS, HACS remove this directory, give error like No content to download and all :( I manualy download ble_monitor and put it to custom_components folder ...
I can only install the 0.7 version, when trying to install, update the version to 0.8. etc. I get an error and the ble_monitor directory deleted by hacs and no integration. |
Still think it is an sync issue. Could you try clicking on reinstall on the custom component card in HACS and check if 0.8.1 is available? If not, try restarting again and try again. If still not available, wait till tonight and check again. 0.7.x will delete ble_monitor and will install mitemp_bt |
30% of my sensors (T&H 2) not work after 1 hour of waiting, i revert to 0.8.2beta... |
Plz add device_class to open and light sensor .... |
On 0.8.2 beta, 5 minutes and all sensor work and present ,,, |
Today I will look for this sensor in my city - it is difficult to debug binary sensors without having one. |
On 0.8.3 beta my Door sensor works unstablely. Sometimes you open the door and the status just remain closed. wait ~2min don't solve the problem. |
I add automatization for test (open, close, light on, light off) ... I will observe whether the sensor is triggered or not and how fast. |
@andrewjswan and others interested - I've updated the tag for 0.8.3-beta, please reinstall it.
|
Checked the light, works almost instantly. Great job! The RSSI appeared. But for some reason, the icon for all sensors is an eye. Is this how it should be? It seems that the class of devices is registered. Or do these devices have no icons?
sensor type: MCCGQ02HL |
👆the bug is captured on the screenshot :) When the close timeout occurs, the sensor state must remain "open" or "on". |
Release 0.8.3 with MCCGQ02HL support has been published. |
In 0.8.3 the sensor works PERFECTLY with update delay < 3s ! |
Added to docs and release notes |
0.8.4-beta with binary_sensor entities has been released. |
I have the MCCGQ02HL sensor too. Can't find a way for it to work with home assistant. BLE monitor isn't detecting the device. There are no turtorials or video's online that can help me. Someone that has made a turtorial step by step to add them? |
Did you enter the encryption key in the configuration? |
Can this read more data from the light sensor? Xiaomi app shows stuff like bright light, dim light, on, off so I guess it should be able to read lux data. or at least to change the values for light detected/no light because I find the default values inaccurate, example: if my Tradfri bulb is set to 85% or less the Xiaomi sensor would display No light. |
try using search function at least, everything is in repo... |
Sorry but I didn't find what I was looking for. Can you provide the link? |
To check if the sensor sends illumination (in lux), you can do the following. Change line 996 in Change it from 'MCCGQ02HL' : [["battery", "rssi"], [], ["opening", "light"]], to 'MCCGQ02HL' : [["battery", "illuminance", "rssi"], [], ["opening", "light"]], Restart HA and check if the new illuminance sensor is giving data. |
Did anyone manage to get the illuminance value to show up? |
No, it says Unknown. |
In that case, I need some data + the encryption key to investigate See the instruction page how to get BLE data |
Hi,
I've ordered few Zigbee door sensors but I've received one on BLE also. Is there a way to use it with this component?
The text was updated successfully, but these errors were encountered: