当前位置: 首页 > 软件库 > 其他开源 > 物联网 >

homebridge-sht3x

授权协议 Apache-2.0 License
开发语言 JavaScript
所属分类 其他开源、 物联网
软件类型 开源软件
地区 不详
投 递 者 施晗日
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

homebridge-sht3x

Homebridge plugin for theSensirion SHT3xhumidity and temperature sensor. Usesraspi-node-sht31 to communicatewith the device andfakegato-history to showhistorical data graphs when using theEve app.

Breakout boards for the SHT31 sensor are available fromAdafruit orAliExpress.

This plugin has only been tested on a Raspberry Pi, but should work with anyLinux-based board supported by i2c-bus,including C.H.I.P., BeagleBone, or Intel Edison.

Refer to your board documentation for instructions on how to enable the I²Cinterface and how to connect an I²C device. Thei2c-bus documentation also includes afew examples.

Installation

Node.js v10.17.0 or greater is required.

This assumes Homebridge has already been installed. If not, see theHomebridge documentationfor more information.

If using Homebridge Config UI X,search for the plugin in the Plugin screen, and install it from there.Otherwise you can install it manually with:

sudo npm install -g homebridge-sht3x

Configuration

If using Homebridge Config UI X, you can configure the plugin from the graphicalsettings editor, or you can edit the config.json file manually.

The minimal accessory configuration, containing only the required attributes, isas follows:

"accessories": [
  {
   "accessory": "SHT3x",
   "name": "SHT31"
  }
]

See config-sample.json for a complete example.

The following table shows the list of supported configuration parameters:

Attribute Description
accessory Accessory name registered with Homebridge. Has to be "SHT3x".
name Display name for the sensor. Can be anything you want.
address I²C address of the sensor. Possible values are "0x44" (default) or "0x45".
bus I²C bus number. Defaults to 1. See the I²C setup section below.
interval Time interval at which the device is polled, in seconds (default: 60).
history Options passed to fakegato-history as an object. Empty by default.

I²C setup

The default I²C bus number (1) is used by most Raspberry Pi models, except forthe early Raspberry Pi Model B (256MB) which uses bus number 0. On otherboards, available buses typically are 1 or 2 on a C.H.I.P., 0, 1, or 2on a BeagleBone, and 1 or 6 on an Intel Edison. Consult your boarddocumentation for details, and run i2cdetect -l to list the available I²Cbuses.

The I²C address for the SHT3x sensor is 0x44 by default, or 0x45 if the ADDRpin is connected to logic high.

History persistence

By default Fakegato saves history to memory, and data not yet downloaded by theEve app will be lost when Homebridge is restarted. If you want to save historyto disk instead, add the following line to the accessory configuration:

"history": {"storage": "fs"}

Data will be saved in a JSON file located in the Homebridge directory(~/.homebridge by default unless redefined with the -U option) and read uponrestart. In order to store the file elsewhere, use the path option:

"history": {
  "storage": "fs",
  "path": "/tmp"
}

See theFakegato documentationfor more information on available options.

Also note that Fakegato will automatically average out measurements and log anentry to history every 10 minutes. If you want the history feature to workreliably and avoid holes in the data, interval should be no more than 600.

Screenshots

 相关资料
  • Homebridge 是一个轻量级 NodeJS 服务器,它模拟 iOS HomeKit API,提供从 HomeKit 到“智能家居”设备制造商提供的各种第三方 API 的基本桥接。通过 Homebridge 的桥接,可以让 Siri 控制完全不支持 HomeKit 的设备。 此外 Homebridge 支持插件。

  • homebridge-vsx homebridge-vsx is a plugin made for homebridge,which allows switching on and off your Pioneer AV receiver. All AV receivers (VSX and SC),which work with the iControl AV5 App are support

  • homebridge-sesame Control and monitor your Sesame smart lock with HomeKit integration. Prerequisites Installation of Homebridge iOS 11 or later Sesame lock with enabled cloud integration Sesame Wifi A

  • homebridge-panasonictv A homebridge plugin for turning on and off your Panasonic Viera TV. The plugin also has experimental support for changing the volume and channel. These characteristics are not r

  • Quick Start | Contribute A Wake on Lan plugin for Homebridge Turn your PCs, laptops, servers and more on and off through Siri Quick Start To install the plugin, head over to the machine with Homebridg

  • Docker Homebridge This Alpine/Ubuntu Linux based Docker image allows you to run Nfarina's Homebridge on your home network which emulates the iOS HomeKit API. This is a multi-arch image and will also r