homebridge-mi-hygrothermograph
Homebridge plugin for exposing measured temperature and humidity from the Xiaomi Mi Bluetooth Temperature and Humidity Sensor as an HomeKit accessory.
Installation
Make sure your systems matches the prerequisites. You need to have a C compiler, Node.js server. Noble is BLE central module library for Node.js used to discover and read values from the hygrothermograph.
Install libbluetooth-dev
and libavahi-compat-libdnssd-dev
These libraries and their dependencies are required by Noble package and provide access to the kernel Bluetooth subsystem.
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libavahi-compat-libdnssd-dev
For more detailed information and descriptions of other platforms please see the Noble documentation.
Install homebridge and this library
npm install -g --unsafe-perm homebridge
npm install -g homebridge-mi-hygrothermograph
Homebridge configuration
"accessories": [
{
"accessory": "Hygrotermograph",
"name": "Temperature & Humidity"
}
]