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

RaresAil/homebridge-levoit-air-purifier: Made for Core 200S/300S/400S/400S Pro

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

开源软件名称:

RaresAil/homebridge-levoit-air-purifier

开源软件地址:

https://github.com/RaresAil/homebridge-levoit-air-purifier

开源编程语言:

TypeScript 100.0%

开源软件介绍:

verified-by-homebridge

Build and Lint CodeQL

NPM Package Downloads Snyk Vulnerabilities for NPM Package

Homebridge Levoit Air Purifier

This is a Homebridge plugin to control Levoit Air Purifiers with via the VeSync Platform.

Supported Versions Tested
Core 600S
Core 400S Pro
Core 400S
Core 300S
Core 200S
Other versions

The versions lower then 200 are not supported (e.g. 131S) because they require API v1 and this plugin uses v2

If you have a newer version that is not in this table, then open a issue and i will try to add support for it

This plugin uses similar API calls as homebridge-levoitcore-client but with differences on API implementation and extra features.

Any device from VeSync that is not listed in the supported versions are automatically skipped when discovering devices.

Features

  1. Displaying the air quality (the same display as the one on the physical device) (Not for 200S)
  2. Display the PM2.5 Density value in Home App shown in µg/m^3 (Not for 200S)
  3. Child Lock option
  4. Speed option:
    • 0 -> Off
    • 1 -> Sleep Mode
    • 2 -> Level 1
    • 3 -> Level 2
    • 4 -> Level 3
    • 5 -> Level 4 (Only for Core 400S, 400S Pro and 600S)
  5. Filter Change Indicator & Filter Life Level
  6. Mode change (Not for 200S)
    • Auto
    • Manual

The read data is cached for 5 seconds to not trigger the rate limiter for the API. Each request is delayed by 500ms to not trigger the rate limiter if a huge number of requests are sent.

The timers are not included because you can accomplish similar results by using Home App's Automatization or the Shortcuts app

Configuration

  • Via the Homebridge UI, enter the Homebridge VeSync Client plugin settings.
  • Enter your VeSync app credentials.
  • Setup the platform plugin as a child bridge for better performance
  • Save and restart Homebridge.

This plugin requires your VeSync credentials as it communicates with the VeSync devices via VeSync's own API. Your credentials are only stored in the Homebridge config and not sent to any server except VeSync's.

You can also do this directly via the homebridge config by adding your credentials to the config file under platforms. Replace the values of username and password by your credentials.

{
  "platforms": [
    {
      "name": "Levoit Air Purifiers",
      "email": "email",
      "password": "password",
      "platform": "LevoitAirPurifiers"
    }
  ]
}

Enabling Debug Mode

In the config file, add enableDebugMode: true

{
  "platforms": [
    {
      "name": "Levoit Air Purifiers",
      "email": "email",
      "password": "password",
      "platform": "LevoitAirPurifiers",
      "enableDebugMode": true
    }
  ]
}

Local Development

To setup the local project clone the files and inside the root directory of the project run:

yarn install

After that to start the local server use

yarn watch



鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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