NEST Thermostat Object Model

User avatar
marketability
Posts: 204
Joined: Tue Dec 08, 2015 11:41 am
Location: UK

NEST Thermostat Object Model

Post by marketability »

Hi does anyone have a link to details of the NEST object model?
I'm trying (in a python script) to read the nest home/eco/away state and can't seem to find the right attribute name
thanks
User avatar
marketability
Posts: 204
Joined: Tue Dec 08, 2015 11:41 am
Location: UK

Re: NEST Thermostat Object Model

Post by marketability »

I've got this sort of working to toggle between home / away
no idea why though

Code: Select all

xdev = indigo.devices[1708595453] # "Dining Room Thermostat"
xvar = indigo.variables[1425688819] # "NEST_Mode"
xval = indigo.kHvacMode

if xdev.hvacMode == True:
	indigo.actionGroup.execute(270353184)
elif xdev.hvacMode == "Away":
	indigo.actionGroup.execute(286235087)
elif xdev.hvacMode == "Auto-Away":
	indigo.actionGroup.execute(286235087)
elif xdev.hvacMode == "eco":
	indigo.actionGroup.execute(286235087)
else:
	indigo.actionGroup.execute(286235087)

indigo.variable.updateValue(xvar, str(xdev.hvacMode))
indigo.server.log("Heat Mode: " + str(xdev.hvacMode))
Post Reply

Return to “NEST Home”