I know there are many threads about this specific sensor (or Mi sensors in general)
but I've gone through some of them and could not find the answer for this basic problem.
I am trying to migrate this sensor from ST hub to Hubitat.
so I reset it pressing its button 3 seconds.
its blue led blinks 3 times
then I start zigbee pairing on Hubitat.
I see a solid blue light on sensor once, then Hubitat UI shows:
Found Zigbee Device with id 00158D00016DA00F
Initializing
But it stays at this state forever. The sensor never initialize and turns to a device.
I installed 2 different devices using " Hubitat Package Manager"
but I'm not sure if this is a correct step.
Install this package as all my Xiaomi stuff works with these drivers. I migrated from ST only a few months ago.
Xiaomi Aqara Mijia Sensors and Switches
When you get a "Device" installed instead of the actual device you expect edit it and change the driver to the one listed above. Change the device and and label if you wish and Save.
Then hit Configure and you should be good to go.
Navigate to the Device Discovery page of your hub's web UI and click "Zigbee" to put the hub in ZigBee discovery mode.
Hold the Xiaomi / Aqara device's reset button until the device's LED flashes 2-3 times, which indicates it has started pairing mode.
After a brief pause, the LED will flash again:
2-3 quick flashes indicates success
1 long flash means pairing has not started yet.
In either case, keep the device "awake" by short-pressing the reset button repeatedly (about every 2-3 seconds, following the same push and LED response sequence described in steps 2-3 above), until the device is recognized by Hubitat.
I have used all these drivers in the past as I have been using Xiaomi with ST since they were available. Just use the package I suggested as it's the most reliable and currently user supported.
I really had no issues pairing except the button device which required a deep press to click the reset switch inside the button every 5 seconds or so. It then joined right away.