UNPKG

homebridge-thermometer-am2320

Version:

AM2320 temperature/humidity sensor bridge for Homebridge: https://github.com/nfarina/homebridge"

43 lines (31 loc) 1.19 kB
# homebridge-am2320 [ASONG AM2320](https://akizukidenshi.com/download/ds/aosong/AM2320.pdf) temperature/humidity sensor service plugin for [Homebridge](https://github.com/nfarina/homebridge) ## Installation 1. Install Homebridge using `npm install -g homebridge` 2. Install this plugin `npm install -g homebridge-thermometer-am2320` 3. Update your configuration file - see below for an example Connect the AM2320 chip to the I2C bus ## Configuration * `accessory`: "AM2320" * `name`: descriptive name * `name_temperature` (optional): descriptive name for the temperature sensor * `name_humidity` (optional): descriptive name for the humidity sensor If you get an I/O error, make sure the I2C address is correct (usually 0x5c depending on a jumper). Example configuration: ```json "accessories": [ { "accessory": "AM2320", "name": "Sensor", "name_temperature": "Temperature", "name_humidity": "Humidity", "options": { "i2cBusNo": 1, "i2cAddress": "0x5c" } } ] ``` This plugin creates two services: TemperatureSensor and HumiditySensor. ## License Apache 2.0