Xiaomi motion sensor2 - Hub - bluetooth - on MiHome app can see detection every 30 sec and on the HA yes
the Xiaomi Mi Motion Sensor 2 is called the RTCGQ02LM, which is currently not supported by ESPHome, only BLE monitor.
Product model: RTCGQ02LM
internal model :lumi.motion.bmgl01
Firmware version:1.1.1_0011 20230618
Release date:
You have 4 options.
-
Buy a Xiaomi Smart Central Hub Gateway and use this integration: Xiaomi Miot Auto Integration for Home Assistant. This integration has support for RTCGQ02LM
-
Buy a Xiaomi gateway 3 and use this integration: GitHub - AlexxIT/XiaomiGateway3: Control Zigbee, BLE and Mesh devices from Home Assistant with Xiaomi Gateway 3 (ZNDMWG03LM) on original firmware . This integration has support for RTCGQ02LM
-
Use a second HA (e.g. on a Raspberry Pi Zero) with BLE monitor
-
Ask the developers of ESPHome to add it. Shouldn’t be that hard, as they can have a look at how I have implemented it in BLE Monitor. I see that there is a [discussion] (Support for device Xiomi Mi Motion Sensor 2 · Discussion #1719 · esphome/esphome · GitHub ) for this sensor, but it would probably have been better to open an issue in stead of a discussion, I think.