Add "group_by.raw=true" to get the list of sensors in a room.
{
"group_by": {
"order": ["space_id"],
"raw": true
},
"window": {
"every": "5m",
"function": "max"
},
"filter": {
"start": "-1d"
}
}
{
"data": {
"space_xxx": [
{
"building_id": "",
"building_name": "",
"field": "out",
"hive_id": "hive_xx",
"hive_serial": "1xxx",
"mac_address": "00-xxx",
"measurement": "traffic",
"room_id": "",
"room_name": "",
"sensor_id": "sensor_xx",
"space_id": "space_xx",
"space_name": "space xxx",
"start": "2022-08-24T17:20:39Z",
"stop": "2022-08-25T17:20:39Z",
"time": "2022-08-25T12:50:00Z",
"timezone_offset": "0h",
"value": 1,
"zone_id": ""
}
]
}
}