lywsd03mmc icon indicating copy to clipboard operation
lywsd03mmc copied to clipboard

Doesn't work with the patched firmware that disables encryption

Open steven-ellis opened this issue 3 years ago • 1 comments

References

  • https://github.com/atc1441/ATC_MiThermometer
  • https://esphome.io/components/sensor/xiaomi_ble.html#lywsd03mmc

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

steven-ellis avatar Apr 28 '21 05:04 steven-ellis

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 

afer92 avatar Feb 20 '22 16:02 afer92