Skip to content

dkatargin/homebridge-mi-temperature-and-humidity-sensor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-mi-temperature-and-humidity-sensor

npm version npm downloads

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

  1. Search for "homebridge-mi-temperature-and-humidity-sensor" on the plugin screen.
  2. Click Install on homebridge-mi-temperature-and-humidity-sensor
  3. Give the sensor a useful name. (This will appear in the HomeKit app).
  4. 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 with A4:C1:38.
  5. Restart Homebridge to pick up the new accessory.
  6. Repeat with as many sensors as you want.

From Terminal

  1. Run the following to install the plugin:
sudo npm i -g homebridge-mi-temperature-and-humidity-sensor@latest
  1. The config should look like:
"accessories": [
    {
        "accessory": "MiSensor",
        "name": "Living Room Mi Sensor",
        "address": "a4:c1:38:b9:3f:72",
        "scanTimeout": 3600
    }
]
  1. name should be a useful name for the sensor. (This will appear in the HomeKit app).
  2. address is the device 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 with A4:C1:38.
  3. scanTimeout is the interval in seconds between sensor scans. For example, 3600 (1 hour) can reduce sensor battery drain. The default is 1 minute.
  4. Restart Homebridge to pick up the new accessory.
  5. 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%