how to setHold using the values of a climate?

let's say that i want to do a setHold using the values of a particular climate, e.g., 'home'. yes, sort of odd, but humor me.

if this is possible, then here's what i'm thinking:

setHold = new ecobee.SetHoldFunction(climate.coolTemp, climate.heatTemp, 'indefinite', null);
setHold.event = { isOccupied : climate.isOccupied
, isCoolOff : false
, isHeatOff : false
, fan : ((climate.coolFan === 'auto') || (climate.heatFan === 'auto')) ? 'auto' : 'on'
, vent : climate.vent
, ventilatorMinOnTime : climate.ventiltatorMinOnTime
, isTemperatureRelative : false
, isTemperatureAbsolute : true
};

does it look like i'm missing/misusing any parameters?

thanks!

/mtr
1 person has
this question
+1
Reply