diff --git a/src/models/DemandControl.ts b/src/models/DemandControl.ts index f769911..c38d362 100644 --- a/src/models/DemandControl.ts +++ b/src/models/DemandControl.ts @@ -2,6 +2,7 @@ import { DaikinDataParser, ResponseDict } from '../DaikinDataParser'; import { DaikinResponseCb } from '../DaikinACRequest'; export class DemandControl { + public type?: number; public enabled?: boolean; public mode?: number; public maxPower?: number; @@ -9,6 +10,7 @@ export class DemandControl { // ret=OK,type=1,en_demand=1,mode=0,max_pow=55,scdl_per_day=4,moc=0,tuc=0,wec=0,thc=0,frc=0,sac=0,suc=0 public static parseResponse(dict: ResponseDict, cb: DaikinResponseCb): void { const result = new DemandControl(); + result.type = DaikinDataParser.resolveInteger(dict, 'type'); result.enabled = DaikinDataParser.resolveBool(dict, 'en_demand'); result.mode = DaikinDataParser.resolveInteger(dict, 'mode'); result.maxPower = DaikinDataParser.resolveInteger(dict, 'max_pow');