0.0.28 • Published 6 years ago
homebridge-espurna v0.0.28
homebridge-espurna
A Espurna firmware temperature, humidity and pressure accessory for Homebridge.
Installation
- Install homebridge using:
npm install -g homebridge
- Install this plugin using:
npm install -g homebridge-espurna
- Update your configuration file. See
sample-config.json
in this repository for a sample.
Configuration
Sample configuration:
"accessories": [
{
"accessory": "Espurna",
"name": "Living Room Weather",
"temperatureUrl": "http://192.168.12.5/api/temperature?apikey=ABCDEFGH",
"pressureUrl": "http://192.168.12.5/api/pressure?apikey=ABCDEFGH",
"humidityUrl": "http://192.168.12.5/api/humidity?apikey=ABCDEFGH",
"httpMethod": "GET",
"usesHumidity": true,
"usePressure": true,
"cacheExpiration": 60
}
]
Set useHumidity
to false if your HTTP endpoint doesn't include a humidity reading.
Set usePressure
to false if your HTTP endpoint doesn't include a pressure reading.
The cacheExpiration
option specifies, in seconds, how long HTTP responses will be stored in the in-memory cache.
This plugin only acts as an interface between a web endpoint and Homebridge. You will still need some dedicated hardware to expose the web endpoints with the temperature and humidity information. In my case, I used a simple NodeMCU board and a BME280 (or BMP280).