0.0.8 • Published 7 years ago
homebridge-pitherm v0.0.8
Homebridge PiTherm
Homebridge plugin for the PiTherm Thermostat. This plugin is based on the start that PJCzx started with the homebridge-thermostat plugin. That plugin had some bugs, issues, and inconsistencies. This plugin corrects those, and specifically adapts the plugin for PiTherm.
Config
Homebridge config should contain an accessory that looks something like this:
{
"accessory": "Thermostat",
"name": "Thermostat Demo",
"apiroute": "http://myurl.com",
//optional
"maxTemp": "90",
"minTemp": "50",
"username": "user",
"password": "pass"
}
Your API should provide the following:
Get status of system:
- Request:
GET /status
- Response:
{ currentTemperature: FLOAT_VALUE, targetTemperature: FLOAT_VALUE, currentHeatingCoolingState: INT_VALUE_0_TO_2, targetHeatingCoolingState: INT_VALUE_0_TO_3 }
- Request:
Set Target HeatingCoolingState:
- Request:
GET /targetHeatingCoolingState/{INT_VALUE_0_TO_3}
- Response:
OK (200)
- Request:
Set Target Temperature:
- Request:
GET /targetTemperature/{FLOAT_VALUE}
- Response:
OK (200)
- Request:
Acknowledgments
- nfarina homebridge
- PJCzx - homebridge-thermostat