Package Exports
- homebridge-lywsd03mmc-sensor
- homebridge-lywsd03mmc-sensor/dist/accessory.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (homebridge-lywsd03mmc-sensor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
homebridge-mi-temperature-and-humidity-sensor
The Homebridge Mi Temperature and Humidity Sensor plugin allows you to add your Mi Sensor from HomeKit with Homebridge.
Compatibility
The LYWSD03MMC sensor is currently the only supported sensor for this plugin.

Before starting the installation you will have to flash the sensor to remove the encryption.
There are several ways to do this, but I recommend using this flashing tool (This tool is not made by or supported by me).
For the BLE connection look at the noble prerequisites for your OS.
Installation
With Homebridge Config UI X
- Search for "homebridge-mi-temperature-and-humidity-sensor" on the plugin screen.
- Click Install on
homebridge-mi-temperature-and-humidity-sensor
- Give the sensor a useful name. (This will appear in the HomeKit app).
- Add the MAC address. This can be found by using the above flashing tool, or by running
bluetoothctl scan le
from the terminal. The address will start withA4:C1:38
. - Restart Homebridge to pick up the new accessory.
- Repeat with as many sensors as you want.
From Terminal
- Run the following to install the plugin:
sudo npm i -g homebridge-mi-temperature-and-humidity-sensor@latest
- The config should look like:
"accessories": [
{
"accessory": "MiSensor",
"name": "Living Room Mi Sensor",
"address": "a4:c1:38:b9:3f:72",
"scanTimeout": 3600
}
]
name
should be a useful name for the sensor. (This will appear in the HomeKit app).address
is the device MAC address. This can be found by using the above flashing tool, or by runningbluetoothctl scan le
from the terminal. The address will start withA4:C1:38
.scanTimeout
is the interval in seconds between sensor scans. For example, 3600 (1 hour) can reduce sensor battery drain. The default is 1 minute.- Restart Homebridge to pick up the new accessory.
- Repeat with as many sensors as you want.
Troubleshooting
If you are having any problems open an issue in this repo and I will try to help.