-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added multiple thermostat support, and 'name' method #5
base: master
Are you sure you want to change the base?
Conversation
Could you add tests for this? I kind of need to add VCR or something to the test suite as I can't test this with my nest account as I only have one nest. |
👍 on that PR |
I would, instead of using thermostat index add a few methods to pick the thermostat, either by the index, name or its ID. @jrpayne - would you mind if I fork your fork and fiddle about with it? you've done an awesome job, I want to make it a tad better (and add tests as per @ericboehs's request) |
I haven't had a chance to double back and look at this again for a few weeks; it's on my list though. Thanks. Jeremy Payne On May 23, 2013, at 5:49 AM, Tom Caspy [email protected] wrote:
|
bumping this thread. I'd love to use this library, but being able to select the thermostat is s requirement for me. |
It would be nice if someone added tests for this. Or at least tested it. I don't have multiple devices so I can't try it out. Does this work for anyone else? |
I would have done it, but it's not really worth the trouble, IMHO, as nest are going to release their official API in a couple of months. |
I just submitted an alternative pull request which handles multiple device support. The syntax is a bit more elegant IMO. I've tested it and it works. |
I think what probably needs to happen ultimately is that the Nest API connection be pulled up into its own class and have it return an array( or hash if you want to use the device id or name as a key) of devices. These could be either Thermostats or SmokeDetectors. This would make it easier to extend as new Nest devices are made available. |
I have 2 devices. I am new on Ruby but I finally managed to get it work. I would like to help. Eric I updated my nest.rb anf version.rb with jrpayne relase but I got this output: C:\RubyProgs>MyNest |
I added support for multiple thermostats using an optional thermostat_idx: parameter to initialize, and a "name" method to pull that thermostat's name.
Great work BTW -- cheers.