lywsd03mmc
lywsd03mmc copied to clipboard
Doesn't work with the patched firmware that disables encryption
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)
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