nlrb / com.tclcode.otgw

OpenTherm Gateway application for Homey
https://apps.athom.com/app/com.tclcode.otgw
10 stars 3 forks source link

Add API call to get all OTG variables & values #10

Closed nlrb closed 8 years ago

nlrb commented 8 years ago

Add a function to the API that gives JSON output with all OTG variable values or a specific one.

nlrb commented 8 years ago

Added getOtgwVars API call. api('GET', '/app/com.tclcode.otgw/getOtgwVars', function(err, x) { console.log(x) }) or <homey_ip>/api/app/com.tclcode.otgw/getOtgwVars Returns JSON output like:

{
   "StatusCHEnabled": false,
   "StatusDHWEnabled": true,
   "StatusCoolEnabled": false,
   "StatusOTCActive": false,
   "StatusCH2Enabled": false,
   "StatusSummerWinter": false,
   "StatusDHWBlocked": false,
   "StatusFault": false,
   "StatusCHMode": false,
   "StatusDHWMode": false,
   "StatusFlame": false,
   "StatusCooling": false,
   "StatusCH2Mode": false,
   "StatusDiagnostic": false,
   "ControlSetpoint": 10,
   "MaxRelativeModulationLevel": 100,
   "BoilerWaterTemperature": 64,
   "FaultServiceRequest": false
}