Homebridge plugin for plantower sensors
Uses go-plantower CLI tool
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-plantower
binary is accessible and permitted to be run by Homebridge. Note for Raspbian: Ensure your Homebridge user is part of thedialout
group. -
Update your configuration file. See sample config.json snippet below.
"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
.