Skip to content

Commit

Permalink
stemp to dt4 to have a value in case of fan mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Mich-b committed Aug 6, 2022
1 parent 62c182b commit b0e8fb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,15 +397,15 @@ Daikin.prototype = {
this.log.warn('Auto');
query = query
.replace(/mode=[01234567]/, `mode=${this.defaultMode}`)
.replace(/stemp=--/, `stemp=${responseValues.stemp}`)
.replace(/dt3=--/, `dt3=${responseValues.stemp}`)
.replace(/stemp=--/, `stemp=${responseValues.dt4}`)
.replace(/dt3=--/, `dt3=${responseValues.dt4}`)
.replace(/shum=--/, `shum=${'0'}`);
break;
case '3': // COOL
query = query
.replace(/mode=[01234567]/, `mode=${this.defaultMode}`)
.replace(/stemp=--/, `stemp=${responseValues.stemp}`)
.replace(/dt3=--/, `dt3=${responseValues.stemp}`)
.replace(/stemp=--/, `stemp=${responseValues.dt4}`)
.replace(/dt3=--/, `dt3=${responseValues.dt4}`)
.replace(/shum=--/, `shum=${'0'}`);
break;
case '4': // HEAT
Expand Down

0 comments on commit b0e8fb0

Please sign in to comment.