JsBergbau / MiTemperature2

Read the values of the Xiaomi Mi Bluetooth Temperature sensor 2 including custom encrypted format.
706 stars 162 forks source link

Troubleshooting tools and tips #13

Closed svendickman closed 4 years ago

svendickman commented 4 years ago

I have difficulty getting data from my LYWSD03MMC. I'm trying to connect from PiZeroW with python 3.7. I can get the MAC with hcitool without any problem. Your script seems to connect and then loses the connection and then stays in waiting. I have tried troubleshooting with gatttool and seem to be able to connect but cannot get any data. I'm not sure if it is important but I cannot seem to find the meter with the standard Xiaomi phone app, but I can find it with the MijiaTemp application: https://play.google.com/store/apps/details?id=com.smrtprjcts.mijiabt Any troubleshooting tips would be greatly appreciated. Thanks in advance.

JsBergbau commented 4 years ago

I'm not sure if it is important but I cannot seem to find the meter with the standard Xiaomi phone app, but I can find it with the MijiaTemp application Not really important, but try changing the Region to China, then this should work.

How far is the distance between PiZeroW and the Xiaomi? Try sudo apt update && sudo apt upgrade Then please reboot and try again.

Luilutin commented 4 years ago

With RPi4 I had similar problem. Moving RPi to closer sensor started work. It is easier scan sensor than get data from it.

JsBergbau commented 4 years ago

Seems to be solved --> Closing