dunzy123
dunzy123

Reputation: 23

Does the NEST API have an indication for the current heating/cooling/standby state

Is there any way to see whether the system is currently heating/cooling/standby? In other words: what is the color of the display of the thermostat? (red/blue/black)?

I could not see a value for that in the documented API. Can I derive it from a combination of factors? for example, if hvac-mode=heat and target-temp > ambient then it must be heating...

Upvotes: 1

Views: 239

Answers (2)

rdougan
rdougan

Reputation: 7225

Unfortunately Nest do not give this information.

Update

Nest Thermostats now has a hvac_state that returns if the device is off, heating, or cooling.

Upvotes: 1

Ryan
Ryan

Reputation: 1

You need to track the status of Heat On/off in order to calculate properly. I monitor the NEST at 1 hz and store the last state (On or Off) as a variable. once you have this info you can use the following logic and it will be accurate:

        lastStatus.Contains("Off"))
        {
            if (temp_current < temp_setpoint)
                status = "Heat On";
            else
                status = "Heat Off";
        }
        else if (lastStatus.Contains("On"))
        {
            if (temp_current > temp_setpoint)
                status = "Heat Off";
            else
                status = "Heat On";
        }
        // Do the work....
        lastStatus=status;

Note: temp_current and temp_setpoint are returned from the REST http post. Good Luck!

Upvotes: 0

Related Questions