Skip to content

Window client in python to read value from LYWSD03MMC Xiaomi sensor

License

Notifications You must be signed in to change notification settings

Sebwap/Windows_LYWSD03MMC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Windows_LYWSD03MMC

A simple python example to read values from Xiaomi LYWSD03MMC sensor device from a Windows 10 PC.

It use bleak as library to communicate with Bluetooth LE driver.

Many thanks to:

https://github.com/hbldh/bleak for wonderfull work on Bleak !

Feel free to make a better code of this, it was just made in a few hours just to see if it was possible under Windows 10.

Sample result below:

Name: LYWSD03MMC
Battery level: 99 %
Temperature: 22.78 °C
Moisture: 51 %
Temperature: 22.77 °C
Moisture: 51 %
Temperature: 22.79 °C
Moisture: 50 %

Issues

Unfortunately, sometimes, the result is only bleak.exc.BleakError: Device with address XX:XX:XX:XX:XX:XX was not found. I don't know why the device seem to be invisible sometimes.

About

Window client in python to read value from LYWSD03MMC Xiaomi sensor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages