JsBergbau / MiTemperature2

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

Connection lost loop #127

Open pristis opened 2 years ago

pristis commented 2 years ago

Hello!

I have an issue with the script. I am using this command to get data from my temp and hum sensor:

python3.9 LYWSD03MMC.py -d A4:C1:38:B4:48:55 -r -b

And the answer from console is always this loop:

Trying to connect to A4:C1:38:B4:48:55
Connection lost
Waiting...
Trying to connect to A4:C1:38:B4:48:55
Connection lost
Waiting...

I can connect with gatttool -I with no issues, but with LYWSD03MMC.py I can't find a solution.

I will be glad for some help. Thanks for your time.

JsBergbau commented 2 years ago

Hi pristis,

which Firmware are you using? If not already ATC Firmware von there https://github.com/pvvx/ATC_MiThermometer I recommend using this Firmware. Connection mode is not recommended any more and support will be removed in a future version.

wojtekza commented 1 year ago

hello, while trying to connect the sensor to domoticz, I updated the sensor. When trying to change the software, I get the message 10:16:48: Searching for devices 10:16:54: Connecting to: LYWSD03MMC 10:16:58: Hardware Revision String: B1.5 10:16:58: Software Revision String: 0159 10:16:58: Firmware Revision String: 2.1.1_0159 10:16:58: Detected Mi device 10:16:58: (!) Version: 2.1.1_0159 is temporarily not supported (!) 10:16:58: Disconnected.

Will he be able to change the software version in some way?