Support Xiaomi BLE Temp & humid sensor via XIaomi Bluetooth gateway (yeelight bedside lamp)

Hi there,
Is there a way to integrate this device (temp + humid sensor with LCD):

with Home Asssistant in case the device is paired with Xiaomi (yeelight) bedside lamp that acts also as a hub for Xiaomi Bluetooth devices? I mean this thing here:
https://www.aliexpress.com/item/New-xiaomi-led-bedside-lamp-mijia-bed-lamp-bedlight-romantic-helping-sleep-bluetooth-wifi-connection-desk/32960246124.html?spm=2114.search0104.3.26.23dc717fYgBLXY&ws_ab_test=searchweb0_0,searchweb201602_1_10065_10068_319_317_10696_10084_453_454_10083_10618_431_10304_10307_10820_10821_10301_537_536_10843_10059_10884_10887_100031_321_322_10103,searchweb201603_52,ppcSwitch_0&algo_expid=cf5be8ca-ae47-41ae-80b0-4abc4d6ce735-3&algo_pvid=cf5be8ca-ae47-41ae-80b0-4abc4d6ce735&transAbTest=ae803_5

Here’s a bit more about it: https://youtu.be/q-VYxZtR-Dg

Normally this device (temp+humid sensor) can be added via HA


component, but I’d like to also have a possibility to have the temperature from it th be available in HA via reading the gateway/hub lamp which is WiFI enabled.

The reason for this support is very simple. Bluetooth range is quite low. Especially within a house and when HA server with its USB-Bluetooth dongle is far away. But pairing it with this gateway lamp could extend the range significantly and cover entire house with 1 or 2 lamps like this.

The dedicated yeelight component


model id bslamp1 seems not to support this anyhow. The platform mitemp_bt doesn’t support it either.

Any clues or hints?

Thanks!

The bluetooth gateway of the lamp isn’t exposed by API right now. The values are available via the mi cloud only. You could build your own bluetooth gateway with an ESP32 f.e.

Thanks for the reply. I decided to go with a USB Bluetooth dongle, but it won’t cover the entire house because of the low BT range, thus this ESP gateway may become handy in the future.

Have there been any update or plans on the BLE Gateway API from Xiaomi?

1 Like

Any update in 2020?

2 Likes

+1 for this
I’ve got two of these sensors coming and while one will definitely be in range I’m worried the other won’t because of where the Rpi sits. If I could tap into the Yeelight data it would be perfect

1 Like

I would love to have this enabled!