Saturday 15 January 2011

Nest API: when is Thermostat 'heating' or 'cooling'? -



Nest API: when is Thermostat 'heating' or 'cooling'? -

the nest thermostat device display on-screen if it's 'cooling' or 'heating'. how state through nest api?

the hvac_mode property seems show user's thermostat capable of controlling , doesn't alter when either cooling or heating occurs.

for now, i'm using simple not flawless logic:

if (can_cool && target_temperature < ambient_temperature) --> iscooling if (can_heat && target_temperature > ambient_temperature) --> isheating else --> isdoingnothing

by not flawless, mean i've encountered situations logic incorrect. example, in given situation ambient_temperature 20 celsius , target_temperature 21 celsius can_heat set true, ui thermostat heating, while isn't.

this because target , ambient temperatures close, don't know threshold is.

is there or improve way figure out heating , cooling states?

as of may 2015, nest api officially reports hvac_state property. value 1 of either 'heating','cooling' or 'off'.

new fields in info model: hvac_state. you'll utilize hvac_state larn if home hvac scheme actively heating, cooling or off.

nest-api

No comments:

Post a Comment