How can I get the occupancy values on the main ecobee3 thermostat?

How can I get the occupancy values on the ecobee3 main thermostat? Is is through the same APIs as the remote sensors, but with a different type (i.e., monitor_sensor, control_sensor)?
2 people have
this question
+1
Reply
  • ScottF (Official Rep) April 29, 2015 15:07
    Hi Yves,
    Yes, this data is obtained through the same method as the remote sensors, i.e. GET Thermostat call with includeSensors=true in the selection object.

    Take a look here for more info: https://www.ecobee.com/home/developer...
    and here: https://www.ecobee.com/home/developer...

    The remoteSensors element of that reply will list all the remote sensors attached to the thermostat, including the thermostat itself which can be identified by it's "type" which will be "thermostat" and also by the id. The capability of that remote sensor will tell you what you need in this case, i.e. whether it is a temperature or occupancy sensor for example. The value provided in that capability is the computed value that sensor is reading.

    For example, here's a snippet from a GET Thermostat includeSensors JSON response for an ecobee 3, where occupancy as read by the thermostat is true:

    ....
    {
    "id": "ei:0",
    "name": "e3 test",
    "type": "thermostat",
    "inUse": true,
    "capability": [
    {
    "id": "1",
    "type": "temperature",
    "value": "774"
    },
    {
    "id": "2",
    "type": "humidity",
    "value": "25"
    },
    {
    "id": "3",
    "type": "occupancy",
    "value": "true"
    }
    ]
    }
    .....


    Hope this helps,
    Scott
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

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

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

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