0.7.0 • Published 8 days ago

@townsen/homebridge-am2320 v0.7.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
8 days ago

homebridge-am2320

AM2320 temperature/humidity sensor service plugin for Homebridge.

  • Display of temperature, humidity from a AM2320 connected to a RaspberryPI.
  • Support the graphing feature of the Eve app for trends

Installation

  1. Install Homebridge using npm install -g homebridge
  2. Install this plugin npm install -g @townsen/homebridge-am2320
  3. Update your configuration file - see below for an example

Configuration

  • accessory: "AM2320"
  • loglevel: 0 = none, 1 = each reading, errors are always logged
  • name: descriptive name
  • name_temperature (optional): descriptive name for the temperature sensor
  • name_humidity (optional): descriptive name for the humidity sensor
  • refresh: Optional, time interval for refreshing data in seconds, defaults to 30 seconds.
  • recordpath: Optional, used by the fakegato history code to create an on-disk record of the observations. This preserves the history in case of a restart, and can be used to extract the observations manually. The name and the device_id are used to name the sensor device, which is then used as the filename.

Note that the names given must be unique if there is more than one device of this type in the configuration.

If you get an I/O error, make sure the I2C address is correct (usually 0x5c).

Simple Configuration

{
  "bridge": {
    "name": "AM2320Example",
    "username": "CB:22:33:E2:CE:31",
    "port": 51826,
    "pin": "033-44-254"
  },
  "accessories": [
    {
      "accessory": "AM2320",
      "name": "Sensor",
      "name_temperature": "Temperature",
      "name_humidity": "Humidity",
      "options": {
        "i2cBusNo": 1,
        "i2cAddress": "0x5c"
      }
    }
  ],
  "platforms": []
}

This plugin creates two services: TemperatureSensor and HumiditySensor.

Credits

This was adapted from the two projects below:

  • homebridge-bme280
  • homebridge-am2320

License

MIT

0.7.0

8 days ago

0.6.5

2 years ago

0.6.3

2 years ago

0.6.4

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago