question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LYWSD03MMC not recognized, faulty device?

See original GitHub issue

Hi,

I bought two LYWSD03MMC sensors, flashed custom firmware through Telink Flasher and one is working great, i get temp/humidity/battery readings as expected but i have a problem with other one.

This is my config:

ble_monitor:
  batt_entities: True
  restore_state: True
  report_unknown: True
  devices:
  - mac: 'A4:C1:38:00:AE:2A'
    name: 'Hallway'
    temperature_unit: C
  - mac: 'A4:C1:38:E1:8C:8D'
    name: 'Livingroom'
    temperature_unit: C

Device with MAC A4:C1:38:00:AE:2A is working good, but A4:C1:38:E1:8C:8D is not getting any values in Hass. I turned on report_unknown, but still there aren’t any messages about the ‘unknown’ device.

I downloaded app BLE Scanner on my phone and i see messages from both devices - This is raw data for mac A4:C1:38:00:AE:2A which is working fine: 151695FE50305B05242AAE0038C1A40A10012A0000000B094154435F303041453241

and this is raw data for faulty mac A4:C1:38:E1:8C:8D: 10161A18A4C138E18C8D00FB21640C310B0B094154435F453138433844

Message from faulty device is shorter, i looked through the code a bit and i see there should be bytes \x16\x95\xFE present in message but i dont see those in message from a faulty device.

I tried reflashing the custom firmware on the faulty device, shorting reset pins above the battery but nothing seems to help. Also i made sure that Advertising Type ‘Mi Like’ is set, that button was pressed about thousand times now while the device is connected to my phone 😃

So, do I have a faulty device on my hand or is there some kind of remedy for this? Thank you in advance

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
ivanpavlinacommented, Dec 5, 2020

Problem solved, i flashed both sensors with new firmware which has MiLike Advertising type and they both work. Yay \o/ I’m attaching this firmware here so that it helps any poor soul like me.

Thank you for the help dude, you rock, now i finally have some proper and cheap option to measure temperatures in all corners of my house 😄 ATC_Thermometer-05122020-mi_like-adv.zip

1reaction
ivanpavlinacommented, Dec 5, 2020

😦 404 on all links. I’m gonna build my own compile env… with blackjack and hookers 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot connect after flash of LYWSD03MMC #159 - GitHub
After flash, the sensor not seen in bluetooth on Samsung Phone, Sony laptop or Raspberry Pi 3. Flash back to stock and all...
Read more >
Xiaomi Temperature Sensor (LYWSD03MMC) not updating
I am working on a "closed loop" heating control for my baby's room and I am trying to solve this with temperature sensor...
Read more >
4$ Xiaomi thermometer custom firmware LYWSD03MMC BLE ...
This video is an overview of the 4$ Xiaomi Thermometer custom firmware i made, Check out https://pcbway.com :)Model: LYWSD03MMC Github repo: ...
Read more >
BLE Gateway - Tasmota
It can not be ruled out, that changes in the device firmware may break the ... such as LYWSD03MMC, MHO-C401 or MJYD2S, came...
Read more >
Xiaomi Mijia BLE Sensors - ESPHome
The new bind key will work with ESPHome, but the Mi Home app will not recognise the sensor anymore once the device has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found