https://github.com/maxnowack/homebridge-dht-sensor
Homebridge plugin for DHT temperature and humidity sensors
https://github.com/maxnowack/homebridge-dht-sensor
Last synced: about 1 year ago
JSON representation
Homebridge plugin for DHT temperature and humidity sensors
- Host: GitHub
- URL: https://github.com/maxnowack/homebridge-dht-sensor
- Owner: maxnowack
- License: gpl-3.0
- Created: 2016-09-28T22:19:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-28T03:44:56.000Z (over 2 years ago)
- Last Synced: 2025-04-14T08:50:54.119Z (about 1 year ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 14
- Watchers: 3
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## homebridge-dht-sensor
Homebridge plugin for DHT temperature and humidity sensors
## installation
``` bash
$ npm install -g homebridge-dht-sensor
```
## usage
This module depends on the [BCM2835](http://www.airspayce.com/mikem/bcm2835/) library that must be installed on your board before you can actually use this module.
You have to specify the `sensorType` (11 for DHT11; 22 for DHT22 or AM2302) and the `gpioPin` to which the data pin of the sensor is connected.
````json
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"accessories": [{
"accessory": "DhtSensor",
"name": "Sensor",
"sensorType": 22,
"gpioPin": 17
}],
"platforms": []
}
````