• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

seikan/homebridge-mi-air-purifier: A Xiaomi Mi air purifier plugin for Homebridg ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

seikan/homebridge-mi-air-purifier

开源软件地址:

https://github.com/seikan/homebridge-mi-air-purifier

开源编程语言:

JavaScript 100.0%

开源软件介绍:

homebridge-mi-air-purifier

This is Xiaomi Mi Air Purifier plugin for Homebridge. This plugin will add the air purifier and Air Quality Sensor to your Home app. This version is working with iOS 11 to add the device as air purifier in Home app.

mi-air-purifier

Features

  • Switch on / off.

  • Switch auto / manual mode.

  • Change fan rotation speed.

  • Switch child lock on / off.

  • Switch LED light on / off.

  • Switch buzzer sound on / off.

  • Display temperature.

  • Display humidity.

  • Display air quality.

Installation

  1. Install required packages.

    npm install -g homebridge-mi-air-purifier miio
    

  2. Make sure your Homebridge server is same network with your air purifier, then run following command to discover the token.

    miio discover --sync
    
  3. You may need to wait few minutes until you get the response similar to below:

    Device ID: 49466088
    Model info: Unknown
    Address: 192.168.1.8
    Token: 6f7a65786550386c700a6b526666744d via auto-token
    Support: Unknown
    

  4. Record down the Address and Token values as we need it in our configuration file later.

  5. If you are getting ?????????????? for your token value, please reset your device and connect your Homebridge server directly to the access point advertised by the device.

  6. Then run the command again.

    miio discover --sync
    

  7. Add following accessory to the config.json.

      "accessories": [
        {
          "accessory": "MiAirPurifier",
          "name": "Bed Room Air Purifier",
          "ip": "ADDRESS_OF_THE_AIR_PURIFIER",
          "token": "TOKEN_FROM_STEP_3",
          "showTemperature": true,
          "showHumidity": true,
          "showAirQuality": true,
          "showLED": true,
          "showBuzzer": true
        },
        {
          "accessory": "MiAirPurifier",
          "name": "Living Room Air Purifier",
          "ip": "ADDRESS_OF_THE_AIR_PURIFIER",
          "token": "TOKEN_FROM_STEP_3",
          "showTemperature": true,
          "showHumidity": true,
          "showAirQuality": true,
          "showLED": true,
          "showBuzzer": true
        }
      ]
    

    Notes: Set value for showTemperature, showHumidity, showAirQuality, showLED, showBuzzer to true or false to show or hide these sensors in Home app.

  8. Restart Homebridge, and your Mi air purifier will be added to Home app.

License

See the LICENSE file for license rights and limitations (MIT).




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
snowdd1/homebridge-knx: KNX platform shim for homebridge发布时间:2022-06-14
下一篇:
linuxkit/homebrew-linuxkit: Homebrew tap for LinuxKit发布时间:2022-06-14
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap