I recently flashed Xiaomi LYWSD03MMC B1.4 with custom firmware v3.9 (pvvx.github.io), the device is responding and working perfectly. But I can’t find it in BLE scanner in ESPhome. I followed already different youtube tutorials and it usually should be discovered very soon after scan start. But it doesn’t, well no device shows up.
Thanks for your answer, I found the mac address with a different app on my phone and then set it directly as sensor. It works now, but the scanner still nothing nevermind, sensor is working
I experienced something similar recently as well. I could not get any devices to appear when using esp32_ble_tracker to scan. After a lot of trial and error, I found this solution.
Thank you @icecreamtruck! Exactly, this solves the problem and BLE tracker found the device.
In the last few days I experienced another issue - the sensor freezes for no reason. The sensor physically keeps measuring, but stops sending data. I tried HA restart, sensor restart but nothing helped. I had to unplug esp32 and plug it back. But when I checked if the esp32 is working, it was logging everything normally. Now I tried to downgrade custom firmware of the Xiaomi sensor, noa I’m waiting if it happens again, it took few days to happen.
The above solution did not work for me. But the following did: I disabled the continuous search and made 2 buttons that start and stop the search. So when I started the search the devices appeared in the log
I have 16 of the Xiaomi BLE temp sensors around the house and they works really well!
I use the bluetooth proxy and have 2 ESP 32 boards on either side of the house.
I flashed the custom firmware onto the temp sensors and enabled the BTHome reporting.
Install the BTHome integration and it seems to just auto discover them no problem!