curl --data 'code=AUTH_CODE&client_id=CLIENT_ID&client_secret=CLIENT_SECRET&grant_type=authorization_code' https://api.home.nest.com/oauth2/access_token
{"access_token":"[big long random string]","expires_in":315360000}
Number curNestTemp "Nest [%.1f F]" <temperature> (Weather_Chart,gFF) { http="<[nest:60000:JS(GetNestValue.js)]"}
Number curNestTargetTemp "Nest Target [%.1f F]" <temperature> (Weather_Chart,gFF) { http="<[nest:60000:JS(GetNestTargetValue.js)]"}
openhab.cfg:
############################### HTTP Binding ##########################################
http:nest.url=https://developer-api.nest.com/devices/thermostats/[DEVICE_ID from step 8]?auth=[big long random string from step 5]
http:nest.updateInterval=60000
GetNestValue.js:
JSON.parse(input).ambient_temperature_f;
GetNestTargetValue.js:
JSON.parse(input).target_temperature_f;
Simple! Now, every minute the current thermostat and target temperatures are refreshed. You can easily read any of the other properties of the thermostat as described here: https://developer.nest.com/documentation/api-reference.
For active control over the thermostat, you are on your own!
-Fred
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
I'm happy to help out with binding development.
Neil
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
My month of November went sideways pretty badly, but at least I've got proper broadband Internet again. It's the little things.... So sorry for the delay. I've got the w.i.p. Ecobee binding checked into my fork, but I don't have the Nest ready for that yet. I hope to have something before the end of the month, but my estimates have been pretty unreliable, so I will forgive you for being skeptical. :) It will be solid when ready, I can confidently claim that much.
watou
On Friday, 19 December 2014 03:03:55 UTC, . wrote:
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/0u1t3xyZlqk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.