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.

Having trouble getting LYWSD03MMC working, would appreciate some help

See original GitHub issue

First thing: thank you SO much for all your hard work on this!

I’ve managed to get my bind_key’s using @vevsvevs 's customized Android app (see pairings.txt attached) pairings.txt

I’ve add the following to my sensors section of my configuration.yaml:

  - platform: mitemp_bt
    encryptors:
      'A4:C1:38:9A:70:D3': '47a343db0e1aede32f5aa350c91d3b88'
      'A4:C1:38:4B:DD:9A': '025ff01e304006e67e2f83dd59f536f0'
      'A4:C1:38:3E:A9:2A': '10217911862739af9accecc28539a349'
      'A4:C1:38:50:05:91': 'e6f906ebfa60a5f27140b0d9c4efefea'

Is the syntax and indentation correct? Your readme seems to show 11 spaces for each mac:bind_key pair but if I don’t use 2 spaces the yaml parser complains about incorrect indentation.

The component seems to be working as I see in the HA log that it warns about using a custom mitemp and also when I turn on the debug logging it is outputting the right extra lines, however it doesnt seem to find any Xiaomi devices:

2020-03-22 16:40:12 DEBUG (SyncWorker_4) [custom_components.mitemp_bt.sensor] Finished. Parsed: 1827 hci events, 0 xiaomi devices.
2020-03-22 16:41:13 DEBUG (SyncWorker_17) [custom_components.mitemp_bt.sensor] Finished. Parsed: 1872 hci events, 0 xiaomi devices.
2020-03-22 16:42:14 DEBUG (SyncWorker_6) [custom_components.mitemp_bt.sensor] Finished. Parsed: 1797 hci events, 0 xiaomi devices.
2020-03-22 16:43:15 DEBUG (SyncWorker_2) [custom_components.mitemp_bt.sensor] Finished. Parsed: 1827 hci events, 0 xiaomi devices

I have a USB bluetooth dongle, hci0 is working fine, and when I run “sudo hcitool lescan” I can see data packets from LYWSD03MMC devices. (Cant run it since adding the component tho, as the hci0 interface is in use)

I ran a btmon for ~20 minutes and have zipped the log file and attached. problem.zip

Anything look off in any of my syntax? Any pointers on where its going wrong?

Thanks, Sunny

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:18

github_iconTop GitHub Comments

1reaction
SunnyM-hacommented, Mar 23, 2020

Thanks again!

1reaction
Magalex2x14commented, Mar 23, 2020

Or simply refuse to check RSSI, and give it as is. I added this check long time ago when the component dig through hcidump file (as another step of checking the integrity of the package). Yes, I will do so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xiaomi BLE "Temperature and humidity Sensor 2 ...
I have a question in using “Temperature and humidity Sensor 2” (Model : LYWSD03MMC). Basically, I want to receive phone notifications from Mi ......
Read more >
4$ Xiaomi thermometer custom firmware LYWSD03MMC BLE ...
Get your own Thermometers here (No affiliate link): https://aliexpress.com/item/400111092... You can support my work via PayPal: ...
Read more >
Home Assistant: Ultra Cheap 4$ multi-room Temperature ...
1,5 years have passed since my original video about this and some things have changed, including a 4$ sensor Xiaomi makes that through...
Read more >
Can someone please help me, I bought the Shelly H & T ...
Can someone please help me, I bought the Shelly H & T temperature humidity Wi-Fi device and I've tried 100 times and it...
Read more >
Xiaomi Mijia LYWSD03MMC ESP32 support
I had a Mijia LYWSD03MMC sensor delivered a few days ago and so far my results using OMG 0.9.5 have not been very...
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