-
Notifications
You must be signed in to change notification settings - Fork 216
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
Lesson learned regarding Xiaomi LYWSD03MMC not being added as BTHome Device in HA #559
Comments
lol, that’s certainly one way of doing it, thank you. Oddly though I don’t think I saw that option on my system. In any case it’s a good tip, thanks 🙏 |
anyother easy way is: take a esp32 and flash ESPhome with bluetooth proxy function. add the esphome device to HA and bthome units get visible automaticly. |
ESP32 has Bluetooth version 4.2 and does not accept all BTHome variants that are available in alternative firmware - Bluetooth version above 5.0 is required. And also does not work with a large number of BLE devices. Has a lot of losses in BLE reception that cannot be eliminated - one antenna for WiFi and BT. That is, ESP32 is not recommended for use with BLE devices. |
this may be but for me its the method that simply works out of the box. everything else i tried was a nightmare and not working in the end. in most cases it doesnt need to be perfect. i prefer simplicity over perfection. live is short. |
It couldn't be simpler - solving the problem requires two mouse clicks in the Home Assistant menu.
To work with BLE devices out of the "box", only USB-BT adapters are available to the average user. The adapter must be inserted into the USB port and confirmed in the "Bluetooth" integration menu. And if the reception range is not enough, then according to the description, switch the adapter and BLE device to work in the "LE Long Range" mode.
@g6094199 - Describe here what steps need to be taken to get a ready-made "out of the box" result for your ad for buying obsolete chips. |
Hopefully this will help someone and wil be left here, I appreciate it is not 100% ATC FW related but if you did what I did and tried literally hundreds of FW flashes, downgarding to original Xiaomi Mi FW, updating to ATC_38 through ATC_48, trying all for advertising modes, trying Zigbee then back to BLE, and you STILL couldn't add a device to Home Assitant via BTHome, maybe you did what I did.
I have two identical HW 1.4 LYWSD03MMC H&T devices, one added to HA BTHome just fine, the other rmust have been added at soem point, but I deleted it and it was never to be seen NOR ABLE TO BE ADDED to HA, ever again.
I knew it worked as I could see it advertising itself when I checked bluetoothctl devices in a HA terminal and it added fine using Miijia advertsiing mode (Xiaomi BLE). As above, I though it was a bad flash, wroing advertising mode, integration wrong, settings wrong, a bad device. It was none of these.
So after four days, I found a FIX ... the issue is NOT that the device flashed with e.g. custom firmware LYWSD03MMC from pvvx (or whoever) using BTHome as the advertising type is not working in your Xiaomi H&T Sensor (all text for future searchers...), it is simply that at some stage you (like me) have "Dismissed" or ignored adding a device and BTHome simply remembers that.
Note that this applies to other integrations where things do not get added back in or found again...
So:
HTH as it has taken me four days to find this out; I thought my device was stuffed. It wasn't. HA was just doing what you told it to do... and forgot :-).
k.
The text was updated successfully, but these errors were encountered: