smbaker / pynest

python API for talking to nest thermostat
165 stars 81 forks source link

Multiple Nests on 1 account #1

Open ryanbuckner opened 12 years ago

ryanbuckner commented 12 years ago

First of all, awesome! Thank you. I tried your script and I have 2 Nests on my account. Your commands only communicate with the first Nest it sees on the account. Can you add a parameter for the "name"?

smbaker commented 12 years ago

Hello Ryan,

I just pushed an update to github that should have support for multiple nests. I’ve provided two ways to do it. One is to use the “–index” argument. For example, “–index 1″ to use the second nest.

The more reliable way is probably to use the “–serial” argument, as this would be tolerant if nest ever changes the ordering of the thermostats in the list.

Both options are untested, as I only have one nest.

Scott

On Sat, May 26, 2012 at 6:11 PM, ryanbuckner reply@reply.github.com wrote:

First of all, awesome! Thank you. I tried your script and I have 2 Nests on my account. Your commands only communicate with the first Nest it sees on the account. Can you add a parameter for the "name"?


Reply to this email directly or view it on GitHub: https://github.com/smbaker/pynest/issues/1

ryanbuckner commented 12 years ago

Thank worked, thanks!!

Now I wish I could figure out how to install the json module on my python 2.5 implementation for Indigo

On Sun, May 27, 2012 at 2:30 PM, smbaker < reply@reply.github.com

wrote:

Hello Ryan,

I just pushed an update to github that should have support for multiple nests. I’ve provided two ways to do it. One is to use the “–index” argument. For example, “–index 1″ to use the second nest.

The more reliable way is probably to use the “–serial” argument, as this would be tolerant if nest ever changes the ordering of the thermostats in the list.

Both options are untested, as I only have one nest.

Scott

On Sat, May 26, 2012 at 6:11 PM, ryanbuckner reply@reply.github.com wrote:

First of all, awesome! Thank you. I tried your script and I have 2 Nests on my account. Your commands only communicate with the first Nest it sees on the account. Can you add a parameter for the "name"?


Reply to this email directly or view it on GitHub: https://github.com/smbaker/pynest/issues/1


Reply to this email directly or view it on GitHub: https://github.com/smbaker/pynest/issues/1#issuecomment-5955384

ryanbuckner commented 12 years ago

The simplejson import worked too. Thanks!!

AshuJoshi commented 11 years ago

Many Thanks - Code works great - tried it with two Nests. My Python skills are rusty. I am hoping to figure out a way to encrypt the Username/Password so that if I were to run this on something like AWS - my account info is NOT in the bash (command) history of the shell!