Query Device Telemetry Data

In this step, users will retrieve telemetry data for each asset assigned to their buildings using getNodeById. You can query for up to 2 weeks of data. Note that getNodeById can also be used to query WELL score attributes given a building, floor, or space ID.

Query Request

From your app or API client, use the below URL:

URL: https://api.abound.carrier.io/prod-ahs-api/graphql/

Argument: The argument for getNodeById is ID. Device IDs can be retrieved using the getAssetsForAllBuildingByAboundId query.

Query Response

As a response, the above query will fetch telemetry data for the specified device ID in the date range selected.

QUERY
                    
                      query getNodeById {
getNodeById(id: "7de4daf7-4612-492b-97gg-6278798a36s6") {
id
name
history(criteria: { fromDateTime: "2024-04-21", endDateTime: "2024-04-22" }) {
points {
type
value
timestamp
}
}
}
}
RESPONSE
                    
                      {
"data": {
"getNodeById": {
"id": "c2e3d4f5-7a6b-1c0d-8e9f-4b5a6c7d8e9f",
"name": "2969996970",
"history": {
"points": [
{
"type": "Occupancy Derived Sensor",
"value": "0.0",
"timestamp": 1722902400000
},
{
"type": "Zone Air Temperature Sensor",
"value": "73.9",
"timestamp": 1722902054400
},
{
"type": "Occupancy Derived Sensor",
"value": "0.0",
"timestamp": 1722902054400
},
{
"type": "Zone Air Humidity Sensor",
"value": "47.0",
"timestamp": 1722902054400
},
{
"type": "Zone Air CO2 Sensor",
"value": "443.0",
"timestamp": 1722902054400
},
{
"type": "Zone Air TVOC Sensor",
"value": "65.0",
"timestamp": 1722902054400
},
{
"type": "Battery",
"value": "100.0",
"timestamp": 1722902054400
},
{
"type": "Zone Air CO2 Sensor",
"value": "444.0",
"timestamp": 1722901708800
},
{
"type": "Zone Air Temperature Sensor",
"value": "74.4",
"timestamp": 1722901708800
},
{
"type": "Zone Air TVOC Sensor",
"value": "54.0",
"timestamp": 1722901708800
},
{
"type": "Zone Air Humidity Sensor",
"value": "47.0",
"timestamp": 1722901708800
},
{
"type": "Battery",
"value": "100.0",
"timestamp": 1722901708800
},
{
"type": "Zone Air PM2.5 Sensor",
"value": "0.0",
"timestamp": 1722901708800
},
{
"type": "Occupancy Derived Sensor",
"value": "0.0",
"timestamp": 1722901708800
},
{
"type": "Zone Air CO2 Sensor",
"value": "438.0",
"timestamp": 1722901363200
},
{
"type": "Zone Air Humidity Sensor",
"value": "47.0",
"timestamp": 1722901363200
},
{
"type": "Battery",
"value": "100.0",
"timestamp": 1722901363200
},
{
"type": "Zone Air Temperature Sensor",
"value": "73.9",
"timestamp": 1722901363200
},
{
"type": "Zone Air TVOC Sensor",
"value": "69.0",
"timestamp": 1722901363200
}
]
}
}
}
}