algirdasc / xiaomi-ble-mqtt

Xiaomi BLE Temperature and Humidity Sensor Bluetooth To MQTT gateway
140 stars 35 forks source link

Can't read from small Xiaomi T&H Sensors #21

Open pristis opened 11 months ago

pristis commented 11 months ago

Hey,

Unfortunately can't read from small Xiaomi Bluetooth Temp & Hum sensors, known as LYWSD03MMC. There is the photo of the device: imgurl link

I have always this message:

Error polling device Bedroom BLE. Device might be unreachable or offline.

But for sure works great with MJ_TH_V1

If you have some idea how to read from LYWSD03MMC, I will be very grateful.

bhcopeland commented 9 months ago

Don't you need to run a custom firmware to read the values?

i.e. https://github.com/atc1441/ATC_MiThermometer

DutchBoy82 commented 3 weeks ago

@pristis Apologies if this is not allowed (pointing to another repo), however I was on the same mission as you. Have several of those wee square Xiaomi units. Found this: https://github.com/Zenedith/LYWSD03MMC Seems to work - though the current repo/script does not print the values until you uncomment the "print" lines on lines 144, 145 and 147. I'm looking to save the data someplace handy now. I've got a Raspberry Pi 3, and can just read the temperature sensor that is about 7m away through some walls, though this script may take several attempt to connect to that specific unit.