Skip to content

Commit

Permalink
decide on the sensoryData based on the controlMode
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVdb committed Oct 21, 2024
1 parent 4641035 commit ca630b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/climateControlService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class ClimateControlService {
}

async handleCurrentTemperatureGet(): Promise<CharacteristicValue> {
const temperature = this.accessory.context.device.getData(this.managementPointId, 'sensoryData', '/roomTemperature') ? this.accessory.context.device.getData(this.managementPointId, 'sensoryData', '/roomTemperature').value : this.accessory.context.device.getData(this.managementPointId, 'sensoryData', '/' + this.getCurrentControlMode()).value;
const temperature = this.accessory.context.device.getData(this.managementPointId, 'sensoryData', '/' + this.getCurrentControlMode()).value;
this.platform.log.debug(`[${this.name}] GET CurrentTemperature, temperature: ${temperature}, last update: ${this.accessory.context.device.getLastUpdated()}`);
return temperature;
}
Expand Down

0 comments on commit ca630b1

Please sign in to comment.