Homebridge plugin for plantower sensors
Based on node-plantower
You may need to use the --unsafe-perm flag if you receive an error similar to this: gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.5.0"
- Install homebridge using: npm install -g homebridge
- Install this plugin using: npm install -g homebridge-plantower
path->node_modules/plantower/plantower.js
//line:43
ret.error ==> ret.error.value !== 0
- Update your configuration file. See sample config.json snippet below.
"accessories": [
{
"accessory": "plantower",
"name": "PM2.5",
"model":"PMS5003ST",
"device":"/dev/ttyAMA0"
}
]
- model: device model eg: PMS5003/PMS3003
- device: serial port eg: '/dev/ttyAMAO'