Search code examples
iosrestnest-api

Nest-API Thermostat device not showing in REST request


I'm using Chrome's Postman extension to determine why the NestDK iOS app isn't showing the thermostat after we sign in and decided to try a REST request to see what was returned. I input https://developer-api.nest.com?auth= into the Postman interface and do a GET.
I get back the response below, with a thermostat defined in the structures data element, but there is no devices data element. I know the device is connected because when I change from home to away, the 'away' setting is modified. Why are there no devices?

{
    "structures": {
        "<structure_id>": {
            "name": "Home",
            "country_code": "US",
            "time_zone": "America/New_York",
            "away": "away",
            "thermostats": [
                "<thermometer_id>"
            ],
            "structure_id": "<structure_id>"
        }
    },
    "metadata": {
        "access_token": "<accessToken>",
        "client_version": 1
    }
}

Solution

  • Check your client permissions. Make sure that you have either Thermostat read or Thermostat read/write selected.

    Available Permissions