Nápověda

Get one sensor by id.

Get one sensor by id.

GET
/sensors/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Access token from POST /directory/connect/token. Scope olifyapi.

In: header

Path Parameters

id*string
Formatuuid

Header Parameters

Olify-Tenant-Id*string

Tenant GUID the caller is allowed to access.

Formatuuid

Response Body

SensorEx

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/sensors/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Olify-Tenant-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "locality": {    "code": "string",    "name": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "building": {    "code": "string",    "name": "string",    "floorArea": "string",    "localityId": "9b71895f-8a69-4102-a04b-0d26c0eb6f9d",    "levelsCount": "string",    "levelEntityCategoryId": "32f29979-b26a-4b9a-aa34-af49e6995ee1",    "extensionValues": {},    "classId": "f0846d40-4884-40d5-8fc5-9f2c5ef371c4",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "level": {    "name": "string",    "abbreviation": "string",    "order": "string",    "levelEntityId": "61a942e1-60ef-4aab-ac7c-da59bfb99a0c",    "levelEntityName": "string",    "levelEntityCode": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "space": {    "code": "string",    "name": "string",    "area": "string",    "localityId": "9b71895f-8a69-4102-a04b-0d26c0eb6f9d",    "levelEntityId": "61a942e1-60ef-4aab-ac7c-da59bfb99a0c",    "levelId": "a70368c7-b12e-43a9-9830-ab2485710b95",    "levelOrder": "string",    "spaceCategoryId": "809d6029-69b4-43c2-a738-11abe5eaf804",    "spaceUsageId": "d6520f10-7407-4215-bcb1-1c0a4f626f2a",    "locationType": "BuildingSpace",    "spaceOccupancyType": "Common",    "commonCostAllocationBasis": "Building",    "doorNumber": "string",    "extensionValues": {},    "classId": "f0846d40-4884-40d5-8fc5-9f2c5ef371c4",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "modbusSensorMapping": {    "sensorId": "8b1a1a59-9b5d-42b4-b470-9c3c98f43cb6",    "address": "string",    "entityType": "InputRegister",    "registerFormat": "Int16",    "wordEndianness": "LittleEndian",    "samplingRateSeconds": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "modbusDevice": {    "controllerId": "5a6d4d99-405d-4cf2-9840-bd718bfab2cb",    "slaveId": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "modbusController": {    "type": "Tcp",    "gatewayId": "e879bcad-7af1-4452-b028-abad8ba3a17c",    "name": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "loraDevice": {    "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",    "gatewayId": "e879bcad-7af1-4452-b028-abad8ba3a17c",    "localityId": "9b71895f-8a69-4102-a04b-0d26c0eb6f9d",    "name": "string",    "devEui": "string",    "deviceType": "string",    "sensorMappings": {      "property1": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "property2": "497f6eca-6276-4993-bfeb-53cbbbba6f08"    },    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "gateway": {    "name": "string",    "localityId": "9b71895f-8a69-4102-a04b-0d26c0eb6f9d",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "monitoringUnitFields": [    {      "sensorType": "Quantity",      "category": "UserDefined",      "sensorId": "8b1a1a59-9b5d-42b4-b470-9c3c98f43cb6",      "sensor": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",        "type": "Quantity",        "code": "string",        "name": "string",        "description": "string",        "model": {          "root": {},          "parameters": {            "property1": {              "value": [                [                  [                    null                  ]                ]              ],              "type": "Number"            },            "property2": {              "value": [                [                  [                    null                  ]                ]              ],              "type": "Number"            }          },          "options": {            "trigger": "Reading",            "period": "string",            "origin": "2019-08-24T14:15:22Z",            "throttle": "string"          }        },        "localityId": "9b71895f-8a69-4102-a04b-0d26c0eb6f9d",        "buildingId": "fee3295a-6e55-45b0-a091-7b4de7e39de7",        "levelId": "a70368c7-b12e-43a9-9830-ab2485710b95",        "spaceId": "a330a273-e64a-4183-aedb-f3152797a9a5",        "isAncillary": true,        "isEnabled": true,        "isVirtual": true      },      "quantity": "Area",      "displayUnit": "Ampere",      "displayCurrency": "AED",      "decimalPrecision": "string",      "type": "Number",      "code": "string",      "name": "string",      "isSystem": true,      "monitoringUnitId": "6e84f8a7-1225-44ed-8949-f10030cf4d9b",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"    }  ],  "monitoringUnits": [    {      "code": "string",      "name": "string",      "unitType": {        "domain": "Hvac",        "iconName": "string",        "colorName": "string",        "code": "string",        "name": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "classId": "f0846d40-4884-40d5-8fc5-9f2c5ef371c4",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"    }  ],  "parameters": [    {      "name": "string",      "type": "Number",      "value": [        [          [            null          ]        ]      ],      "isField": true    }  ],  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",  "type": "Quantity",  "code": "string",  "name": "string",  "description": "string",  "model": {    "root": {},    "parameters": {      "property1": {        "value": [          [            [              null            ]          ]        ],        "type": "Number"      },      "property2": {        "value": [          [            [              null            ]          ]        ],        "type": "Number"      }    },    "options": {      "trigger": "Reading",      "period": "string",      "origin": "2019-08-24T14:15:22Z",      "throttle": "string"    }  },  "localityId": "9b71895f-8a69-4102-a04b-0d26c0eb6f9d",  "buildingId": "fee3295a-6e55-45b0-a091-7b4de7e39de7",  "levelId": "a70368c7-b12e-43a9-9830-ab2485710b95",  "spaceId": "a330a273-e64a-4183-aedb-f3152797a9a5",  "isAncillary": true,  "isEnabled": true,  "isVirtual": true}