document generated automatically
Global description: An apparatus (hardware + software + firmware) intended to accomplish a particular task (sensing the environment, actuating, etc.).
version: 0.0.9
[*] If there is not a type in an attribute is because it could have several types or different formats/patterns
address[object]
: The mailing address . Model: https://schema.org/addressaddressCountry[string]
: The country. For example, Spain . Model: https://schema.org/addressCountryaddressLocality[string]
: The locality in which the street address is, and which is in the region . Model: https://schema.org/addressLocalityaddressRegion[string]
: The region in which the locality is, and which is in the country . Model: https://schema.org/addressRegiondistrict[string]
: A district is a type of administrative division that, in some countries, is managed by the local governmentpostOfficeBoxNumber[string]
: The post office box number for PO box addresses. For example, 03578 . Model: https://schema.org/postOfficeBoxNumberpostalCode[string]
: The postal code. For example, 24004 . Model: https://schema.org/https://schema.org/postalCodestreetAddress[string]
: The street address . Model: https://schema.org/streetAddressstreetNr[string]
: Number identifying a specific property on a public street
alternateName[string]
: An alternative name for this itemareaServed[string]
: The geographic area where a service or offered item is provided . Model: https://schema.org/TextbatteryLevel[*]
: Device battery level. It must be equal to 1.0 when battery is full. 0.0 when battery is empty. -1 when transiently cannot be determined . Model: https://schema.org/Numbercategory[array]
: Sensor: A device that detects and responds to events or changes in the physical environment such as light, motion, or temperature changes. https://w3id.org/saref#Sensor. actuator : A device responsible for moving or controlling a mechanism or system. https://w3id.org/saref#Actuator. Meter : A device built to accurately detect and display a quantity in a form readable by a human being. Partially defined by SAREF. HVAC : Heating, Ventilation and Air Conditioning (HVAC) device that provides indoor environmental comfort. https://w3id.org/saref#HVAC. Network : A device used to connect other devices in a network, such as hub, switch or router in a LAN or Sensor network. (https://w3id.org/saref#Network. Multimedia : A device designed to display, store, record or play multimedia content such as audio, images, animation, video. Enum:'actuator, beacon, endgun, HVAC, implement, irrSection, irrSystem, meter, multimedia, network, sensor'. Raw category will be deprecated use deviceCategory instead to avoid conflict with other aqttributes named category . Model: https://schema.org/Textconfiguration[array]
: Device's technical configuration. This attribute is intended to be a array properties and their values which capture parameters which have to do with the configuration of a device (timeouts, reporting periods, etc.) and which are not currently covered by the standard attributes defined by this model . Model: https://schema.org/StructuredValuecontrolledAsset[array]
: List of the asset(s) (building, object, etc.) controlled by the device . Model: https://schema.org/TextcontrolledProperty[array]
: Anything that can be sensed, measured or controlled by. Enum:'airPollution, atmosphericPressure, averageVelocity, batteryLife, batterySupply, cdom, conductance, conductivity, depth, eatingActivity, electricityConsumption, energy, fillingLevel, freeChlorine, gasConsumption, gateOpening, heading, humidity, light, location, milking, motion, movementActivity, noiseLevel, occupancy, orp, pH, power, precipitation, pressure, refractiveIndex, salinity, smoke, soilMoisture, solarRadiation, speed, tds, temperature, trafficFlow, tss, turbidity, waterConsumption, waterFlow, waterLevel, waterPollution, weatherConditions, weight, windDirection, windSpeed' . Model: https://schema.org/TextdataProvider[string]
: A sequence of characters identifying the provider of the harmonised data entitydateCreated[date-time]
: Entity creation timestamp. This will usually be allocated by the storage platformdateFirstUsed[date-time]
: A timestamp which denotes when the device was first used . Model: https://schema.org/DateTimedateInstalled[date-time]
: A timestamp which denotes when the device was installed (if it requires installation) . Model: https://schema.org/DateTimedateLastCalibration[date-time]
: A timestamp which denotes when the last calibration of the device happened . Model: https://schema.org/DateTimedateLastValueReported[date-time]
: A timestamp which denotes the last time when the device successfully reported data to the cloud . Model: https://schema.org/DateTimedateManufactured[date-time]
: A timestamp which denotes when the device was manufactured . Model: https://schema.org/DateTimedateModified[date-time]
: Timestamp of the last modification of the entity. This will usually be allocated by the storage platformdateObserved[date-time]
: Date of the observed entity defined by the userdepth[number]
: Location of this device represented by a depth from a starting point. All units are accepted in CEFACT code . Model: https://schema.org/depthdescription[string]
: A description of this itemdeviceCategory[array]
: Sensor: A device that detects and responds to events or changes in the physical environment such as light, motion, or temperature changes. https://w3id.org/saref#Sensor. actuator : A device responsible for moving or controlling a mechanism or system. https://w3id.org/saref#Actuator. Meter : A device built to accurately detect and display a quantity in a form readable by a human being. Partially defined by SAREF. HVAC : Heating, Ventilation and Air Conditioning (HVAC) device that provides indoor environmental comfort. https://w3id.org/saref#HVAC. Network : A device used to connect other devices in a network, such as hub, switch or router in a LAN or Sensor network. (https://w3id.org/saref#Network. Multimedia : A device designed to display, store, record or play multimedia content such as audio, images, animation, video. Enum:'actuator, beacon, endgun, HVAC, implement, irrSection, irrSystem, meter, multimedia, network, sensor'. Raw category will be deprecated use deviceCategory instead to avoid conflict with other aqttributes named category . Model: https://schema.org/TextdeviceState[string]
: State of this device from an operational point of view. Its value can be vendor dependent . Model: https://schema.org/Textdirection[string]
: Enum:'Inlet, Outlet, Entry, Exit'. A timestamp which denotes when the device was installed (if it requires installation) . Model: https://schema.org/DateTimedistance[number]
: Location of this device represented by a distance from a starting point. All units are accepted in CEFACT code . Model: https://schema.org/DistancedstAware[boolean]
: Indicates a device which is Daylight Savings Time Aware (True). In case it is then the Timestamp is automatically adjusted by the device to reflect DST changes. If not (False) the time adjustments must be taken care of by the userfirmwareVersion[string]
: The firmware version of this device . Model: https://schema.org/TexthardwareVersion[string]
: The hardware version of this device . Model: https://schema.org/Textid[*]
: Unique identifier of the entityipAddress[array]
: List of IP address of the device. It can be a comma separated list of values if the device has more than one IP address . Model: https://schema.org/Textlocation[*]
: Geojson reference to the item. It can be Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygonmacAddress[string]
: The MAC address of the device . Model: https://schema.org/Textmcc[string]
: This property identifies the Mobile Country Code . Model: https://schema.org/Textmnc[string]
: This property identifies the Mobile Network Code (MNC) of the network the device is attached to. The MNC is used in combination with a Mobile Country Code (MCC) (also known as a 'MCC / MNC tuple') to uniquely identify a mobile phone operator/carrier using the GSM, CDMA, iDEN, TETRA and 3G / 4G public land mobile networks and some satellite mobile networks . Model: https://schema.org/Textname[string]
: The name of this itemosVersion[string]
: The version of the host operating system device . Model: https://schema.org/Textowner[array]
: A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s)provider[string]
: The provider of the device . Model: https://schema.org/providerrefDeviceModel[*]
: Model of the devicerelativePosition[string]
: Location of this device in a coordinate system according to its local emplacementrssi[number]
: Received signal strength indicator for a wireless enabled device. It must be expressed in dBm or mW, use unitcode to set it out. . Model: https://schema.org/NumberseeAlso[*]
: list of uri pointing to additional resources about the itemserialNumber[string]
: The serial number assigned by the manufacturer . Model: https://schema.org/serialNumbersoftwareVersion[string]
: The software version of this device . Model: https://schema.org/Textsource[string]
: A sequence of characters giving the original source of the entity data as a URL. Recommended to be the fully qualified domain name of the source provider, or the URL to the source objectsupportedProtocol[array]
: Supported protocol(s) or networks . Model: [3g, bluetooth, bluetooth LE, cat-m, coap, ec-gsm-iot, gprs, http, lwm2m, lora, lte-m, mqtt, nb-iot, onem2m, sigfox, ul20, websocket](3g, bluetooth, bluetooth LE, cat-m, coap, ec-gsm-iot, gprs, http, lwm2m, lora, lte-m, mqtt, nb-iot, onem2m, sigfox, ul20, websocket)type[string]
: NGSI Entity type. It has to be Devicevalue[string]
: A observed or reported value. For actuator devices, it is an attribute that allows a controlling application to change the actuation setting. For instance, a switch device which is currently on can report a value 'on' of type 'Text'. Obviously, in order to toggle the referred switch, this attribute value will have to be changed to 'off' . Model: https://schema.org/QuantitativeValue
Required properties
controlledProperty
id
type
A Device is a tangible object which contains some logic and is producer and/or consumer of data. A Device is always assumed to be capable of communicating electronically via a network. This data model has been partially developed in cooperation with mobile operators and the GSMA. This data model reuses concepts coming from the SAREF Ontology part of ETSI standards.
Sorted alphabetically (click for details)
full yaml details
Device:
description: 'An apparatus (hardware + software + firmware) intended to accomplish a particular task (sensing the environment, actuating, etc.).'
properties:
address:
description: The mailing address
properties:
addressCountry:
description: 'The country. For example, Spain'
type: string
x-ngsi:
model: https://schema.org/addressCountry
type: Property
addressLocality:
description: 'The locality in which the street address is, and which is in the region'
type: string
x-ngsi:
model: https://schema.org/addressLocality
type: Property
addressRegion:
description: 'The region in which the locality is, and which is in the country'
type: string
x-ngsi:
model: https://schema.org/addressRegion
type: Property
district:
description: 'A district is a type of administrative division that, in some countries, is managed by the local government'
type: string
x-ngsi:
type: Property
postOfficeBoxNumber:
description: 'The post office box number for PO box addresses. For example, 03578'
type: string
x-ngsi:
model: https://schema.org/postOfficeBoxNumber
type: Property
postalCode:
description: 'The postal code. For example, 24004'
type: string
x-ngsi:
model: https://schema.org/https://schema.org/postalCode
type: Property
streetAddress:
description: The street address
type: string
x-ngsi:
model: https://schema.org/streetAddress
type: Property
streetNr:
description: Number identifying a specific property on a public street
type: string
x-ngsi:
type: Property
type: object
x-ngsi:
model: https://schema.org/address
type: Property
alternateName:
description: An alternative name for this item
type: string
x-ngsi:
type: Property
areaServed:
description: The geographic area where a service or offered item is provided
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
batteryLevel:
description: Device battery level. It must be equal to 1.0 when battery is full. 0.0 when battery is empty. -1 when transiently cannot be determined
oneOf:
- maximum: 1
minimum: 0
type: number
- maximum: -1
minimum: -1
type: number
x-ngsi:
model: https://schema.org/Number
type: Property
category:
description: "Sensor: A device that detects and responds to events or changes in the physical environment such as light, motion, or temperature changes. https://w3id.org/saref#Sensor. actuator : A device responsible for moving or controlling a mechanism or system. https://w3id.org/saref#Actuator. Meter : A device built to accurately detect and display a quantity in a form readable by a human being. Partially defined by SAREF. HVAC : Heating, Ventilation and Air Conditioning (HVAC) device that provides indoor environmental comfort. https://w3id.org/saref#HVAC. Network : A device used to connect other devices in a network, such as hub, switch or router in a LAN or Sensor network. (https://w3id.org/saref#Network. Multimedia : A device designed to display, store, record or play multimedia content such as audio, images, animation, video. Enum:'actuator, beacon, endgun, HVAC, implement, irrSection, irrSystem, meter, multimedia, network, sensor'. Raw category will be deprecated use deviceCategory instead to avoid conflict with other aqttributes named category"
items:
description: Every type of device that can be included in the array
enum:
- actuator
- beacon
- endgun
- HVAC
- implement
- irrSection
- irrSystem
- meter
- multimedia
- network
- sensor
type: string
x-ngsi:
type: Property
type: array
x-ngsi:
model: https://schema.org/Text
type: Property
configuration:
description: 'Device''s technical configuration. This attribute is intended to be a array properties and their values which capture parameters which have to do with the configuration of a device (timeouts, reporting periods, etc.) and which are not currently covered by the standard attributes defined by this model'
items:
properties:
parameter:
description: Name of the parameter in the configuration of the device
type: string
x-ngsi:
type: Property
value:
description: Value of the parameter in the configuration of the device
type: string
x-ngsi:
type: Property
type: object
type: array
x-ngsi:
model: https://schema.org/StructuredValue
type: Property
controlledAsset:
description: 'List of the asset(s) (building, object, etc.) controlled by the device'
items:
anyOf:
- description: Identifier format of any NGSI entity
maxLength: 256
minLength: 1
pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
type: string
x-ngsi:
type: Property
- description: Identifier format of any NGSI entity
format: uri
type: string
x-ngsi:
type: Property
description: Unique identifier of the entity
x-ngsi:
type: Property
type: array
x-ngsi:
model: https://schema.org/Text
type: Property
controlledProperty:
description: 'Anything that can be sensed, measured or controlled by. Enum:''airPollution, atmosphericPressure, averageVelocity, batteryLife, batterySupply, cdom, conductance, conductivity, depth, eatingActivity, electricityConsumption, energy, fillingLevel, freeChlorine, gasConsumption, gateOpening, heading, humidity, light, location, milking, motion, movementActivity, noiseLevel, occupancy, orp, pH, power, precipitation, pressure, refractiveIndex, salinity, smoke, soilMoisture, solarRadiation, speed, tds, temperature, trafficFlow, tss, turbidity, waterConsumption, waterFlow, waterLevel, waterPollution, weatherConditions, weight, windDirection, windSpeed'''
items:
description: Every possible property controlled by the device
enum:
- airPollution
- atmosphericPressure
- averageVelocity
- batteryLife
- batterySupply
- cdom
- conductance
- conductivity
- depth
- eatingActivity
- electricityConsumption
- energy
- fillingLevel
- freeChlorine
- gasConsumption
- gateOpening
- heading
- humidity
- light
- location
- milking
- motion
- movementActivity
- noiseLevel
- occupancy
- orp
- pH
- power
- precipitation
- pressure
- refractiveIndex
- salinity
- smoke
- soilMoisture
- solarRadiation
- speed
- tds
- temperature
- trafficFlow
- tss
- turbidity
- uvLampIntensity
- uvOrganicLoad
- waterConsumption
- waterFlow
- waterLevel
- waterPollution
- weatherConditions
- weight
- windDirection
- windSpeed
type: string
x-ngsi:
type: Property
type: array
x-ngsi:
model: https://schema.org/Text
type: Property
dataProvider:
description: A sequence of characters identifying the provider of the harmonised data entity
type: string
x-ngsi:
type: Property
dateCreated:
description: Entity creation timestamp. This will usually be allocated by the storage platform
format: date-time
type: string
x-ngsi:
type: Property
dateFirstUsed:
description: A timestamp which denotes when the device was first used
format: date-time
type: string
x-ngsi:
model: https://schema.org/DateTime
type: Property
dateInstalled:
description: A timestamp which denotes when the device was installed (if it requires installation)
format: date-time
type: string
x-ngsi:
model: https://schema.org/DateTime
type: Property
dateLastCalibration:
description: A timestamp which denotes when the last calibration of the device happened
format: date-time
type: string
x-ngsi:
model: https://schema.org/DateTime
type: Property
dateLastValueReported:
description: A timestamp which denotes the last time when the device successfully reported data to the cloud
format: date-time
type: string
x-ngsi:
model: https://schema.org/DateTime
type: Property
dateManufactured:
description: A timestamp which denotes when the device was manufactured
format: date-time
type: string
x-ngsi:
model: https://schema.org/DateTime
type: Property
dateModified:
description: Timestamp of the last modification of the entity. This will usually be allocated by the storage platform
format: date-time
type: string
x-ngsi:
type: Property
dateObserved:
description: Date of the observed entity defined by the user
format: date-time
type: string
x-ngsi:
type: Property
depth:
description: 'Location of this device represented by a depth from a starting point. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code'
type: number
x-ngsi:
model: https://schema.org/depth
type: Property
description:
description: A description of this item
type: string
x-ngsi:
type: Property
deviceCategory:
description: "Sensor: A device that detects and responds to events or changes in the physical environment such as light, motion, or temperature changes. https://w3id.org/saref#Sensor. actuator : A device responsible for moving or controlling a mechanism or system. https://w3id.org/saref#Actuator. Meter : A device built to accurately detect and display a quantity in a form readable by a human being. Partially defined by SAREF. HVAC : Heating, Ventilation and Air Conditioning (HVAC) device that provides indoor environmental comfort. https://w3id.org/saref#HVAC. Network : A device used to connect other devices in a network, such as hub, switch or router in a LAN or Sensor network. (https://w3id.org/saref#Network. Multimedia : A device designed to display, store, record or play multimedia content such as audio, images, animation, video. Enum:'actuator, beacon, endgun, HVAC, implement, irrSection, irrSystem, meter, multimedia, network, sensor'. Raw category will be deprecated use deviceCategory instead to avoid conflict with other aqttributes named category"
items:
description: Every type of device that can be included in the array
enum:
- actuator
- beacon
- endgun
- HVAC
- implement
- irrSection
- irrSystem
- meter
- multimedia
- network
- sensor
type: string
x-ngsi:
type: Property
type: array
x-ngsi:
model: https://schema.org/Text
type: Property
deviceState:
description: State of this device from an operational point of view. Its value can be vendor dependent
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
direction:
description: 'Enum:''Inlet, Outlet, Entry, Exit''. A timestamp which denotes when the device was installed (if it requires installation)'
enum:
- Inlet
- Outlet
- Entry
- Exit
type: string
x-ngsi:
model: ' https://schema.org/DateTime'
type: Property
distance:
description: 'Location of this device represented by a distance from a starting point. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code'
type: number
x-ngsi:
model: https://schema.org/Distance
type: Property
dstAware:
description: Indicates a device which is Daylight Savings Time Aware (True). In case it is then the Timestamp is automatically adjusted by the device to reflect DST changes. If not (False) the time adjustments must be taken care of by the user
type: boolean
x-ngsi:
type: Property
firmwareVersion:
description: The firmware version of this device
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
hardwareVersion:
description: The hardware version of this device
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
id:
anyOf:
- description: Identifier format of any NGSI entity
maxLength: 256
minLength: 1
pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
type: string
x-ngsi:
type: Property
- description: Identifier format of any NGSI entity
format: uri
type: string
x-ngsi:
type: Property
description: Unique identifier of the entity
x-ngsi:
type: Property
ipAddress:
description: List of IP address of the device. It can be a comma separated list of values if the device has more than one IP address
items:
oneOf:
- format: ipv4
- format: ipv6
type: string
type: array
x-ngsi:
model: https://schema.org/Text
type: Property
location:
description: 'Geojson reference to the item. It can be Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygon'
oneOf:
- description: Geojson reference to the item. Point
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
type: number
minItems: 2
type: array
type:
enum:
- Point
type: string
required:
- type
- coordinates
title: GeoJSON Point
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. LineString
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
type: number
minItems: 2
type: array
minItems: 2
type: array
type:
enum:
- LineString
type: string
required:
- type
- coordinates
title: GeoJSON LineString
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. Polygon
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
items:
type: number
minItems: 2
type: array
minItems: 4
type: array
type: array
type:
enum:
- Polygon
type: string
required:
- type
- coordinates
title: GeoJSON Polygon
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. MultiPoint
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
type: number
minItems: 2
type: array
type: array
type:
enum:
- MultiPoint
type: string
required:
- type
- coordinates
title: GeoJSON MultiPoint
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. MultiLineString
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
items:
type: number
minItems: 2
type: array
minItems: 2
type: array
type: array
type:
enum:
- MultiLineString
type: string
required:
- type
- coordinates
title: GeoJSON MultiLineString
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. MultiLineString
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
items:
items:
type: number
minItems: 2
type: array
minItems: 4
type: array
type: array
type: array
type:
enum:
- MultiPolygon
type: string
required:
- type
- coordinates
title: GeoJSON MultiPolygon
type: object
x-ngsi:
type: GeoProperty
x-ngsi:
type: GeoProperty
macAddress:
description: The MAC address of the device
pattern: ^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
mcc:
description: This property identifies the Mobile Country Code
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
mnc:
description: 'This property identifies the Mobile Network Code (MNC) of the network the device is attached to. The MNC is used in combination with a Mobile Country Code (MCC) (also known as a ''MCC / MNC tuple'') to uniquely identify a mobile phone operator/carrier using the GSM, CDMA, iDEN, TETRA and 3G / 4G public land mobile networks and some satellite mobile networks'
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
name:
description: The name of this item
type: string
x-ngsi:
type: Property
osVersion:
description: The version of the host operating system device
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
owner:
description: A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s)
items:
anyOf:
- description: Identifier format of any NGSI entity
maxLength: 256
minLength: 1
pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
type: string
x-ngsi:
type: Property
- description: Identifier format of any NGSI entity
format: uri
type: string
x-ngsi:
type: Property
description: Unique identifier of the entity
x-ngsi:
type: Property
type: array
x-ngsi:
type: Property
provider:
description: The provider of the device
type: string
x-ngsi:
model: https://schema.org/provider
type: Property
refDeviceModel:
anyOf:
- description: Identifier format of any NGSI entity
maxLength: 256
minLength: 1
pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
type: string
x-ngsi:
type: Property
- description: Identifier format of any NGSI entity
format: uri
type: string
x-ngsi:
type: Property
description: Model of the device
x-ngsi:
type: Relationship
relativePosition:
description: Location of this device in a coordinate system according to its local emplacement
type: string
x-ngsi:
type: Property
rssi:
description: 'Received signal strength indicator for a wireless enabled device. It must be expressed in dBm or mW, use unitcode to set it out. '
type: number
x-ngsi:
model: https://schema.org/Number
type: Property
seeAlso:
description: list of uri pointing to additional resources about the item
oneOf:
- items:
format: uri
type: string
minItems: 1
type: array
- format: uri
type: string
x-ngsi:
type: Property
serialNumber:
description: The serial number assigned by the manufacturer
type: string
x-ngsi:
model: https://schema.org/serialNumber
type: Property
softwareVersion:
description: The software version of this device
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
source:
description: 'A sequence of characters giving the original source of the entity data as a URL. Recommended to be the fully qualified domain name of the source provider, or the URL to the source object'
type: string
x-ngsi:
type: Property
supportedProtocol:
description: Supported protocol(s) or networks
items:
description: Every type of protocols that can be used by the device
enum:
- 3g
- bluetooth
- bluetooth LE
- cat-m
- coap
- ec-gsm-iot
- gprs
- http
- lwm2m
- lora
- lte-m
- mqtt
- nb-iot
- onem2m
- sigfox
- ul20
- websocket
type: string
x-ngsi:
type: Property
type: array
x-ngsi:
model: '3g, bluetooth, bluetooth LE, cat-m, coap, ec-gsm-iot, gprs, http, lwm2m, lora, lte-m, mqtt, nb-iot, onem2m, sigfox, ul20, websocket'
type: Property
type:
description: NGSI Entity type. It has to be Device
enum:
- Device
type: string
x-ngsi:
type: Property
value:
description: 'A observed or reported value. For actuator devices, it is an attribute that allows a controlling application to change the actuation setting. For instance, a switch device which is currently _on_ can report a value ''on'' of type ''Text''. Obviously, in order to toggle the referred switch, this attribute value will have to be changed to ''off'''
type: string
x-ngsi:
model: https://schema.org/QuantitativeValue
type: Property
required:
- id
- type
- controlledProperty
type: object
x-derived-from: ""
x-disclaimer: 'Redistribution and use in source and binary forms, with or without modification, are permitted provided that the license conditions are met. Copyleft (c) 2024 Contributors to Smart Data Models Program'
x-license-url: https://github.com/smart-data-models/dataModel.Device/blob/master/Device/LICENSE.md
x-model-schema: https://smart-data-models.github.io/dataModel.Device/Device/schema.json
x-model-tags: ""
x-version: 0.0.9
Here is an example of a Device in JSON-LD format as key-values. This is compatible with NGSI-v2 when using options=keyValues
and returns the context data of an individual entity.
show/hide example
{
"id": "device-9845A",
"type": "Device",
"deviceCategory": [
"sensor"
],
"controlledProperty": [
"fillingLevel",
"temperature"
],
"controlledAsset": [
"wastecontainer-Osuna-100"
],
"ipAddress": [
"192.14.56.78"
],
"mcc": "214",
"mnc": "07",
"batteryLevel": 0.75,
"serialNumber": "9845A",
"refDeviceModel": "myDevice-wastecontainer-sensor-345",
"rssi": 0.86,
"value": "l%3D0.22%3Bt%3D21.2",
"deviceState": "ok",
"dateFirstUsed": "2014-09-11T11:00:00Z",
"owner": [
"http://person.org/leon"
]
}
Here is an example of a Device in JSON-LD format as normalized. This is compatible with NGSI-v2 when not using options and returns the context data of an individual entity.
show/hide example
{
"id": "device-9845A",
"type": "Device",
"deviceCategory": {
"type": "StructuredValue",
"value": [
"sensor"
]
},
"batteryLevel": {
"type": "Number",
"value": 0.75
},
"dateFirstUsed": {
"type": "DateTime",
"value": "2014-09-11T11:00:00Z"
},
"controlledAsset": {
"type": "StructuredValue",
"value": [
"wastecontainer-Osuna-100"
]
},
"serialNumber": {
"type": "Text",
"value": "9845A"
},
"mcc": {
"type": "Text",
"value": "214"
},
"value": {
"type": "Text",
"value": "l%3D0.22%3Bt%3D21.2"
},
"refDeviceModel": {
"type": "Text",
"value": "myDevice-wastecontainer-sensor-345"
},
"rssi": {
"type": "Number",
"value": 0.86
},
"controlledProperty": {
"type": "StructuredValue",
"value": [
"fillingLevel",
"temperature"
]
},
"owner": {
"type": "StructuredValue",
"value": [
"http://person.org/leon"
]
},
"mnc": {
"type": "Text",
"value": "07"
},
"ipAddress": {
"type": "StructuredValue",
"value": [
"192.14.56.78"
]
},
"deviceState": {
"type": "Text",
"value": "ok"
}
}
Here is an example of a Device in JSON-LD format as key-values. This is compatible with NGSI-LD when using options=keyValues
and returns the context data of an individual entity.
show/hide example
{
"id": "urn:ngsi-ld:Device:device-9845A",
"type": "Device",
"batteryLevel": 0.75,
"deviceCategory": [
"sensor"
],
"controlledAsset": [
"urn:ngsi-ld::wastecontainer-Osuna-100"
],
"controlledProperty": [
"fillingLevel",
"temperature"
],
"dateFirstUsed": "2014-09-11T11:00:00Z",
"depth": 3,
"deviceState": "ok",
"direction": "Outlet",
"distance": 20,
"ipAddress": [
"192.14.56.78"
],
"mcc": "214",
"mnc": "07",
"owner": [
"http://person.org/leon"
],
"refDeviceModel": "urn:ngsi-ld:DeviceModel:myDevice-wastecontainer-sensor-345",
"rssi": 0.86,
"serialNumber": "9845A",
"value": "l%3D0.22%3Bt%3D21.2",
"@context": [
"https://raw.githubusercontent.com/smart-data-models/dataModel.Device/master/context.jsonld"
]
}
Here is an example of a Device in JSON-LD format as normalized. This is compatible with NGSI-LD when not using options and returns the context data of an individual entity.
show/hide example
{
"id": "urn:ngsi-ld:Device:device-9845A",
"type": "Device",
"batteryLevel": {
"type": "Property",
"value": 0.75
},
"deviceCategory": {
"type": "Property",
"value": [
"sensor"
]
},
"controlledAsset": {
"type": "Relationship",
"object": [
"urn:ngsi-ld::wastecontainer-Osuna-100"
]
},
"controlledProperty": {
"type": "Property",
"value": [
"fillingLevel",
"temperature"
]
},
"dateFirstUsed": {
"type": "Property",
"value": {
"@type": "DateTime",
"@value": "2014-09-11T11:00:00Z"
}
},
"deviceState": {
"type": "Property",
"value": "ok"
},
"ipAddress": {
"type": "Property",
"value": [
"192.14.56.78"
]
},
"mcc": {
"type": "Property",
"value": "214"
},
"mnc": {
"type": "Property",
"value": "07"
},
"owner": {
"type": "Property",
"value": [
"http://person.org/leon"
]
},
"refDeviceModel": {
"type": "Relationship",
"object": "urn:ngsi-ld:DeviceModel:myDevice-wastecontainer-sensor-345"
},
"rssi": {
"type": "Property",
"value": 0.86
},
"serialNumber": {
"type": "Property",
"value": "9845A"
},
"value": {
"type": "Property",
"value": "l%3D0.22%3Bt%3D21.2"
},
"@context": [
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
"https://raw.githubusercontent.com/smart-data-models/dataModel.Device/master/context.jsonld"
]
}
See FAQ 10 to get an answer on how to deal with magnitude units