0.1.3 • Published 7 years ago
homebridge-go-plantower v0.1.3
homebridge-go-plantower
Homebridge plugin for plantower sensors
Uses go-plantower CLI tool
Screenshots
Installation
Homebridge Installation
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-go-plantower Ensure that the
go-plantowerbinary is accessible and permitted to be run by Homebridge. Note for Raspbian: Ensure your Homebridge user is part of thedialoutgroup.Update your configuration file. See sample config.json snippet below.
Config.json example
"accessories": [
{
"accessory": "go-plantower",
"name": "Plantower",
"device": "/dev/ttyAMA0",
"model": "pms5003",
"binary": "/usr/local/bin/go-plantower",
"interval": 120,
"timeout": 10
}
]Only accessory and name are required, the rest have defaults. interval and timeout are in seconds. However, see go-plantower on possible values for model and device.