homebridge-mi-flower-mate

0.0.4 • Public • Published

homebridge-mi-flower-mate

npm version

homebridge plugin for mi flower mate

欢迎加入我们的QQ群 545171648 讨论
QQ Group:545171648
Telegram Group: https://t.me/joinchat/EujYfA-JKSwpRlXURD1t6g

Supported Types

1.Flower Mate

Unrespond Accessories will be removed from homebridge in 5 minutes. So there's no need to remove cachedaccessories when you throw away a sensor

Install packages

  1. sudo apt-get install libbluetooth-dev libudev-dev

  2. Go to your node_modules folder
    (You can find it by using by npm -g root)

  3. npm install noble

  4. sudo apt-get install libcap2-bin

  5. Run following command:

sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
  1. Run following command:
sudo hciconfig hci0 up

Then start homebridge
Wait until you get output.
If you found output like this:

[MiFlowerMatePlatform] [BLE]Noble loaded
[MiFlowerMatePlatform] [BLE]Timer Started

You can be sure that noble and bluetooth has no problem and the plugin is running properly

Configuration

"platforms": [
    {
        "platform": "MiFlowerMatePlatform",
        "defaultValue": {
            "c4:7c:8d:65:51:b1": "Flower Mate"
        }
    }
]

If you can't connect to your device, You can try to use sudo hciconfig hci0 reset

Version Logs

0.0.4

  1. Add support for accessory reusement
  2. Improve clear accessory timer

0.0.3

  1. bug fix

0.0.1

  1. add support for Flower Mate.

Readme

Keywords

Package Sidebar

Install

npm i homebridge-mi-flower-mate

Weekly Downloads

5

Version

0.0.4

License

GPLV3

Last publish

Collaborators

  • zzm317