XiaomiGateway3 icon indicating copy to clipboard operation
XiaomiGateway3 copied to clipboard

Xiaomi Door Sensor 2 MCCGQ02HL нет данных заряда батареи и освещенности.

Open stylishkrio opened this issue 3 years ago • 6 comments

Если перезагрузить Xiaomi Gateway 3 то данные по освещенности не приходят с датчика. Помогает включение, выключение в пункте "Dim/bright light detection" в настройках самого датчика в mi home. Данных по заряду батареи совсем нет. Снимок1t

stylishkrio avatar Mar 03 '21 12:03 stylishkrio

Проверьте новую версию работы с BLE в последнем мастере

AlexxIT avatar Mar 11 '21 06:03 AlexxIT

Проверьте новую версию работы с BLE в последнем мастере

Полностью переподключил устройства к mi home. Xiaomi Gateway 3 firmware v1.4.7_0160 и v1.1b3. и BLE 1.3.0 и данные с датчиков появились. Но.. позже перезагрузил Xiaomi Gateway 3. И увы.. Снимок2-1

stylishkrio avatar Mar 11 '21 18:03 stylishkrio

Подождали какое-то время?

AlexxIT avatar Mar 12 '21 04:03 AlexxIT

Подождали какое-то время?

Да. Но данные не появляются.

stylishkrio avatar Mar 12 '21 08:03 stylishkrio

Подождали какое-то время?

Да. Но данные не появляются.

Видимо ждать нужно ооочень долго. У меня открытие закрытие через 12 часов появилось... Потом все подцепилось по факту действия. Смена света, открытие, батарея. Видимо сервера xiaomi на активацию влияют

pervolianinen avatar Mar 28 '21 05:03 pervolianinen

Hey, love your work.

I translated the discussion from russian and the author seems to have a similar issue to mine.

I have five xiaomi MCCGQ02HL door and window sensor 2. 4 of them work flawlessly. The fifth one displays the correct door opening and correct light illumination data. But its battery entity is always undefined. At first I thought its the device error but then I noticed this in the logs:

2022-02-20 00:17:21 DEBUG base 192.168.1.231 [MQTT] ble/{1st} b'{"battery":100,"contact":0,"light":1}' 2022-02-20 00:17:21 DEBUG base 192.168.1.231 [MQTT] ble/{2nd} b'{"contact":0,"light":0,"battery":80}' 2022-02-20 00:17:21 DEBUG base 192.168.1.231 [MQTT] ble/{3rd} b'{"contact":0,"light":0,"battery":100}' 2022-02-20 00:17:21 DEBUG base 192.168.1.231 [MQTT] ble/{4th} b'{"contact":0,"light":0,"battery":100}' 2022-02-20 00:17:21 DEBUG base 192.168.1.231 [MQTT] ble/{5th} b'{"contact":1,"light":0,"battery":100}'

The fifth device almost has direct view of the gateway and is positioned about 7 meters away from it.

I tried waiting for more than 12 hours. I tried readding the device to the xiaomi gateway. Could you suggest something I could try?

ekranas13 avatar Feb 19 '22 22:02 ekranas13

Please reopen the issue if it is still relevant

AlexxIT avatar Apr 09 '23 05:04 AlexxIT