@townsen/homebridge-am2320
v0.7.0
Published
AM2320 temperature/humiditysensor bridge for Homebridge: https://github.com/nfarina/homebridge"
Downloads
27
Maintainers
Readme
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
- Install Homebridge using
npm install -g homebridge
- Install this plugin
npm install -g @townsen/homebridge-am2320
- Update your configuration file - see below for an example
Configuration
accessory
: "AM2320"loglevel
: 0 = none, 1 = each reading, errors are always loggedname
: descriptive namename_temperature
(optional): descriptive name for the temperature sensorname_humidity
(optional): descriptive name for the humidity sensorrefresh
: 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. Thename
and thedevice_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