Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Get desired set temperature when in auto mode

How can I determine the desired set temperature value when the thermostat is in auto mode? I see there is desiredHeat and desiredCool under runtime. However I need one value that the thermostat is targeting. Is this possible to determine when the thermostat is in auto mode?
2 people have
this question
+1
Reply
  • 2
    In Example 5 (https://www.ecobee.com/home/developer...), there is a discussion which includes

    "It is good practice to set the heat and cool hold temperatures to be the same, if the thermostat is in either heat, cool, auxHeatOnly, or off mode. If the thermostat is in auto mode, an additional rule is required. The cool hold temperature must be greater than the heat hold temperature by at least the amount in the heatCoolMinDelta property, which can be found in Settings ."

    So you could determine which temperature is being targeted on the client with


    if mode is 'auto' then
    if actualTemperature > desiredCool then
    desiredTemperature = desiredCool
    else if actualTemperature < desiredHeat then
    desiredTemperature = desiredHeat
    else
    # there is no desiredTemperature because actualTemperature is between setpoints
    else if mode is 'heat' or mode is 'auxHeatOnly' then
    desiredTemperature = desiredHeat
    else if mode is 'cool' then
    desiredTemperature = desiredCool
    else
    # there is no desiredTemperature because the thermostat is off
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated