Sunday 15 July 2012

nest api target temperature for both thermostat modes -



nest api target temperature for both thermostat modes -

is possible fetch target temperature both thermostat mode (cool, heat) in 1 phone call ? have feeling can target temperature current thermostat mode , alter thermostat mode sec 1 , target temperature sec thermostat mode.

also same question changing target temps. possible alter both target temperature heat , cool mode in 1 request ?

assuming scheme can cool , heat, thermostat has 3 modes: heat, cool, heat-cool.

if in heat mode or cool mode can set target_temperature. if in heat-cool mode can set target_temperature_low_c & target_temperature_high_c.

you can retrieve target temperatures in 1 thermostat call:

https://developer-api.nest.com/devices/thermostats/$thermostat_id?auth=$auth

you can set heat-cool temperatures in 1 call, need in heat-cool mode:

{"target_temperature_low_c": 19, "target_temperature_high_c": 21}

you can set heat or cool temperature in 1 call, need in heat or cool mode:

{"target_temperature_c": 20}

you need create 2 calls set mode , set temperature(s) if not in appropriate mode.

target temperature nest-api

No comments:

Post a Comment