You can retrieve data from the API by pasting the queries below into the GraphiQL interface.
First, retrieve the metadata. This will tell you which devices are in which room and which rooms are in which unit. It will also give you the unit name, room name, device type and device name that belongs to each ID.
Next, retreive the timeseries data. These data contain the measurements from thermostats and sensors, as well as the temperature setpoint data on room level.
This query will give you all units, rooms and devices that you can access with your API key.
To query room timeseries you can provide a unit_id, a room_id and a time range in the from and to parameters.
You do not have to specify parameter values. If you don't specify a value for any parameter, the following defaults will be used:
unitIdP : all units accessible to the user
roomIdP: all rooms accessible to the user
from: one hour ago
to: now
To query thermostat timeseries you can provide a list of device_id and a time range in the from and to parameters.
You do not have to specify parameter values. If you don't specify a value for any parameter, the following defaults will be used:
deviceIds: all devices accessible to the user
from: one hour ago
to: now
To query thermostat timeseries you can provide a list of device_id and a time range in the from and to parameters.
You do not have to specify parameter values. If you don't specify a value for any parameter, the following defaults will be used:
deviceIds: all devices accessible to the user
from: one hour ago
to: now
Paste the query into the query area in GraphiQL and press "Run". Your data will appear on the right.
Loading the data into Microsoft Excel
The video below shows how to load your metadata into Excel. For the timeseries data, the process is the same.
Data model
If you want more info, here is an overview of our data model: