homebridge-mi-temperature-and-humidity-sensor
v1.0.6
Published
Homebridge plugin that exposes Mi temperature and humiditity sensors as HomeKit accessories
Downloads
45
Maintainers
Readme
homebridge-mi-temperature-and-humidity-sensor
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.