Closed nlrb closed 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
}
Add a function to the API that gives JSON output with all OTG variable values or a specific one.