uduncanu / lywsd03mmc

Python library for Xiaomi Mijia LYWSD03MMC sensors
MIT License
53 stars 12 forks source link

Doesn't work with the patched firmware that disables encryption #2

Open steven-ellis opened 3 years ago

steven-ellis commented 3 years ago

References

I get the following error message Bluetooth command failed (code: 10, error: No attribute found within the given range)

afer92 commented 2 years ago

View [https://github.com/afer92/lywsd03mmc] fork. With AtcMiThermometerClient you can retrieve thermometers data without connecting. Limitations : can't get firmware and hardware revisions, can't get history.

from lywsd03mmc import AtcMiThermometerClient
client = AtcMiThermometerClient()

client.get_datas()

for thermometer in client.thermometers:
    print('----\n', thermometer) # print all data