GetThermostat API returns successful response code '0' but the Thermostat list is completely empty. What would cause this?

I have a valid ecobee access token which was associated with a device. However, when I use it to hit the GetThermostat endpoint I get the successful response below which is empty of thermostat(s).

{
"page": {
"page": 1,
"totalPages": 1,
"pageSize": 0,
"total": 0
},
"thermostatList": [],
"status": {
"code": 0,
"message": ""
}
}
1 person has
this question
+1
Reply
  • MarkK (API Architect) August 03, 2017 15:05
    You would need to provide the entire HTTP request (obfuscate any device identifiers) that you are sending before we can answer that question.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Hi Mark. Here is the HTTP request.

    GET /1/thermostat/?format=json&body={"selection":{"includeLocation":"true", "includeDevice":"true", "includeProgram":"true", "includeElectricity":"true", "includeAlerts":"true","selectionType":"registered","selectionMatch":"","includeEvents":"true","includeExtendedRuntime":"true","includeSettings":"true","includeRuntime":"true","includeEquipmentStatus":"true","includeSensors":"true"}} HTTP/1.1
    Host: api.ecobee.com
    Content-Type: application/json
    Authorization: Bearer
    Cache-Control: no-cache
    Postman-Token:

    Thanks for your help!
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • MarkK (API Architect) August 08, 2017 15:17
    Hi Gavin,

    Looks like you are using a selectionMatch=registered selector. Is your account a user account that you registered a personal thermostat with? If your account is an EMS Management or Utility, you will not have any thermostats returned unless you registered a personal one on the same account. The fact that you can make requests leads me to believe your account is either EMS or Utility in this instance. For EMS/Utility you must use "thermostats" explicitly stating the devices you want, or "managementSet" to select a set of thermostats.

    Thanks,
    Mark.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated