×

USB设备可在HomeKit中使用的插件

消耗积分:0 | 格式:zip | 大小:0.00 MB | 2022-04-21

笑尽往事

分享资料个

授权协议 MIT License
开发语言 JavaScript
操作系统 跨平台
软件类型 开源软件
所属分类 其他开源物联网

软件简介

homebridge-aircontrol-mini

A HomeBridge Plugin making the TFA-Dostmann AirCO2ntrol Mini CO2 Monitor measurment USB device availible in HomeKit.

Installation

For use on an Ubuntu/Debian style Linux:

sudo apt-get install build-essential libudev-dev
sudo npm install -g --unsafe-perm homebridge-aircontrol-mini

To allow homebridge to run without beeing root or using sudo a udev Rule needs to be added.

Create /etc/udev/rules.d/23-homebridge.rules and put in the following line, where you replace homebridge with the group of the user running homebridge on your system (e.g. pi on a raspian):

, ATTR{idVendor}, ATTR{idProduct}, , 

Afterwards reload the rules with udevadm control --reload and replug the USB plug of your AirControl Mini.

Sample Config (Excerpt)

Configured as part of your homebridge configuration.

  • accessory: Needs to be aircontrol-mini
  • name: Required, String; You need to configure the name of your accessory.
  • co2_warning_level: Optional, Number, Default 1200; Configure the level (in ppm) at which the CO2 is detected as abnormal (default 1200ppm, same as red LED level according to the device manual).

In addition to this you need to connect the device to your machine running homebridge.

{
  "bridge": {
    …
  },
  …
  "accessories": [
    {
      "accessory": "aircontrol-mini",
      "name": "Living Room CO2",
      "co2_warning_level": 1200
    }
  ],
	…
}

 

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !