Supports thermostat devices on HomeBridge Platform
- Install homebridge using: npm install -g homebridge
- Install this plugin using: npm install -g homebridge-thermostat
- Update your configuration file. See sample-config.json in this repository for a sample.
Configuration sample:
{
"bridge": {
...
},
"description": "...",
"accessories": [
{
"accessory": "Thermostat",
"name": "Thermostat Demo",
"apiroute": "http://myurl.com"
}
],
"platforms":[]
}
The apiroute
is used for two main calls: Get from the thermostat and set the target temperature. Your API should provide
- GET
/status
{
"targetTemperature":18,
"temperature":"21.40",
"humidity":"69.20"
}
- GET
/targettemperature/{FLOAT_VALUE}