{"action":"created","issue":{"url":"https://api.github.com/repos/gboudreau/nest-api/issues/41","labels_url":"https://api.github.com/repos/gboudreau/nest-api/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/gboudreau/nest-api/issues/41/comments","events_url":"https://api.github.com/repos/gboudreau/nest-api/issues/41/events","html_url":"https://github.com/gboudreau/nest-api/issues/41","id":51910208,"number":41,"title":"Support for multiple thermostats","user":{"login":"bwhiteford","id":10182367,"avatar_url":"https://avatars.githubusercontent.com/u/10182367?v=3","gravatar_id":"","url":"https://api.github.com/users/bwhiteford","html_url":"https://github.com/bwhiteford","followers_url":"https://api.github.com/users/bwhiteford/followers","following_url":"https://api.github.com/users/bwhiteford/following{/other_user}","gists_url":"https://api.github.com/users/bwhiteford/gists{/gist_id}","starred_url":"https://api.github.com/users/bwhiteford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwhiteford/subscriptions","organizations_url":"https://api.github.com/users/bwhiteford/orgs","repos_url":"https://api.github.com/users/bwhiteford/repos","events_url":"https://api.github.com/users/bwhiteford/events{/privacy}","received_events_url":"https://api.github.com/users/bwhiteford/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-14T05:40:45Z","updated_at":"2015-03-27T23:40:17Z","closed_at":"2015-03-27T23:40:17Z","body":"Hello and thanks for putting together this excellent PHP interface. I am using it in my home with one of the thermostats, but can't seem to figure out how to make it talk to both thermostats on my account. Could you share how I might go about doing that?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/gboudreau/nest-api/issues/comments/87122135","html_url":"https://github.com/gboudreau/nest-api/issues/41#issuecomment-87122135","issue_url":"https://api.github.com/repos/gboudreau/nest-api/issues/41","id":87122135,"user":{"login":"gboudreau","id":370329,"avatar_url":"https://avatars.githubusercontent.com/u/370329?v=3","gravatar_id":"","url":"https://api.github.com/users/gboudreau","html_url":"https://github.com/gboudreau","followers_url":"https://api.github.com/users/gboudreau/followers","following_url":"https://api.github.com/users/gboudreau/following{/other_user}","gists_url":"https://api.github.com/users/gboudreau/gists{/gist_id}","starred_url":"https://api.github.com/users/gboudreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gboudreau/subscriptions","organizations_url":"https://api.github.com/users/gboudreau/orgs","repos_url":"https://api.github.com/users/gboudreau/repos","events_url":"https://api.github.com/users/gboudreau/events{/privacy}","received_events_url":"https://api.github.com/users/gboudreau/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T23:40:17Z","updated_at":"2015-03-27T23:40:17Z","body":"My API needs the Nest device serial to be sent in parameter of all function calls, if you don't want to use the 1st device.\r\nIn Next-Extended, those function calls are made in `resources/utils/nest-get-data.php`:\r\nhttps://github.com/MattHirschfelt/Nest-Extended/blob/master/resources/utils/nest-get-data.php#L38\r\nand\r\nhttps://github.com/MattHirschfelt/Nest-Extended/blob/master/resources/utils/nest-get-data.php#L74\r\n\r\nSo at the top of that script (at line 21 for example), you could add: `$devices_serials = $nest->getDevices();`\r\nAnd then change the two lines above (L38 and L74) to use the serial number you want:\r\n`$infos = $nest->getDeviceInfo($devices_serials[1]);`\r\n`$energy = $nest->getEnergyLatest($devices_serials[1]);`"}}