-
Notifications
You must be signed in to change notification settings - Fork 92
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
Two thermostats #111
Comments
You can use the |
I have been running multiple thermostats for 3+ years....and yesterday at 7pm the sort order of returned devices ($nest->getDevices()) changed???? So I had to go back into my code and explicitly set the serial_numbers.....instead of using $devices_serials[0] / $devices_serials[1]. not a big deal.....but a very odd random change |
@cagivacode - there is no sorting applied to the getDevices method. Not sure what your code looks like but if you can provide it I could give you some code that might be a bit more versatile. Alternatively, I could probably write a function that sorts it by their "where" location.
|
I have it sorted just fine now.....but my original code just used $devices_serials[0] / $devices_serials[1] / $devices_serials[3]. I have 3 zones in one structure. and they always came back in the same order (for 3+ years).....then last night they came back in a completely different order. I was just pointing out that not explicitly managing the serials (one way or another) is no longer dependable in a multi thermostat setup. |
Hey all, Any Idea? hmmm |
Sounds like this is an error in your implementation rather than the library. Assuming they are at the same structure you can use the below to confirm both are being returned.
|
Okay, with this command I get a list of my two devices. So they exist! Great, thanks! But thanks already, this helped! |
When you have more than one device, include |
I have two thermostats attached to my account. How can I select which one I want to read from?
Thank you
The text was updated successfully, but these errors were encountered: