Skip to content

The idea of this plugin is to be able to connect BLE thermometers running the ATC_MiThermometer custom firmware.

Notifications You must be signed in to change notification settings

Ruskyy/Octoprint-Xiaomi-BLE-Thermometer

Repository files navigation

Octoprint-Xiaomi-BLE-Thermometer

ABANDONED

The idea of this plugin is to be able to connect BLE thermometers running the ATC_MiThermometer custom firmware.

Never got it to work, it seems like there is some incopatibility with the custom firmware, and its beyond my knowledge.

Plugin Dependencies

sudo apt-get install mercurial libbluetooth-dev libreadline-dev gcc python-dev bluetooth libbluetooth-dev

And due to a limitation on permissions inside octoprint the following command must be ran:

sudo usermod -aG bluetooth pi
sudo reboot
Xiaomi Mijia (LYWSD03MMC) Xiaomi Miaomiaoce (MHO-C401) Qingping Temp & RH Monitor (CGG1-Mijia)
Xiaomi Mijia (LYWSD03MMC) Xiaomi Miaomiaoce (MHO-C401) E-ink CGG1 'Qingping Temp & RH Monitor', Xiaomi Mijia DevID: 0x0B48

Advertising format of the custom firmware:

The ATC_MiThermometer custom firmware sends every minute an update of advertising data on the UUID 0x181A with the Tempereature, Humidity and Battery data.

The format of the advertising data is as follow:

  • Byte 5-10 MAC in correct order

  • Byte 11-12 Temperature in int16

  • Byte 13 Humidity in percent

  • Byte 14 Battery in percent

  • Byte 15-16 Battery in mV uint16_t

  • Byte 17 frame packet counter

Example: 0x0e, 0x16, 0x1a, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xaa, 0xaa, 0xbb, 0xcc, 0xdd, 0xdd, 0x00

About

The idea of this plugin is to be able to connect BLE thermometers running the ATC_MiThermometer custom firmware.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published