The Sensor (com.prosyst.mbs.services.da.items.Sensor) device item represents a sensor that measures a physical property. All valid values lie within the range. To present the type of the value you should use the generic parameter Q which extends Quantity<Q>.
Property |
Access |
Property Class |
Description |
|---|---|---|---|
range |
RE |
|
Property for the value range. All valid values lie within this range. |
value |
RE |
|
Property for the measured value. |
To specify what the Sensor measures it is necessary to add a specific attribute. The key of this attribute is SensorAttributes.ATTRIBUTE_MEDIUM and the value can be one of the following constants:
SensorAttributes.MEDIUM_AIR – used to indicate that a property of air is measured.SensorAttributes.MEDIUM_WATER – used to indicate that a property of water is measured.SensorAttributes.MEDIUM_SOIL – used to indicate that a property of soil is measured.SensorAttributes.MEDIUM_BLOOD – used to indicate that a property of the patient blood is measured. For example blood pressure.SensorAttributes.MEDIUM_TILT – used to indicate that the value represented by the FunctionalItem is tilt of something (in most cases the device it self) is measured.SensorAttributes.MEDIUM_TANK – used to indicate that the value represented by the FunctionalItem is the level to which a tank is filled.SensorAttributes.MEDIUM_TIDE – used to indicate that the value represented by the FunctionalItem is the level of the tide.SensorAttributes.MEDIUM_ELECTRICITY – used to indicate that the value represented by the FunctionalItem is related to electricity.SensorAttributes.MEDIUM_GAS – used to indicate that a property of any gas substance (if there is no already concrete attribute defined like) is measured.SensorAttributes.MEDIUM_PROGRESS – used to indicate that the sensor measures progress. Useful for white good appliances to show the program process.SensorAttributes.MEDIUM_BONE – used in medical sensors for example bone density.SensorAttributes.MEDIUM_EXHAUST – used to indicate that the sensor measures some property of an exhaust. Exhaust can be defined as a waist product of the normal operation of a device.SensorAttributes.MEDIUM_FAT – used in medical sensors for example body fat index or total body fat.SensorAttributes.MEDIUM_HEART – used in medical sensors for example heart rate.SensorAttributes.MEDIUM_MUSCLE – used in medical sensors for example muscle mass.SensorAttributes.MEDIUM_OUTSIDE – used to indicate that the sensor measures outside (outside may mean outside of a building or outside of the system).SensorAttributes.MEDIUM_INSIDE – used to indicate that the sensor measures inside (inside may mean inside of a building or inside of the system).SensorAttributes.MEDIUM_RAIN – used to indicate that the sensor measures some property of the rain. For example the quantity of the fallen rain.SensorAttributes.MEDIUM_SMOKE – used to indicate that the sensor measures some property of smoke. For example how much particulate matter does the smoke contain.SensorAttributes.MEDIUM_SOUND – used to indicate that the sensor measures some property of sound.SensorAttributes.MEDIUM_BATTERY –used to indicate that the sensor measures some property of battery. For example remaining charge, or voltage, or percentage charge left.To specify the Sensor type it is necessary to add a specific attribute with key SensorAttributes.ATTRIBUTE_TYPE. The value of this attribute can be one of the following constants:
SensorAttributes.TYPE_ACCELERATION – a sensor that measures acceleration.SensorAttributes.TYPE_ACIDITY – a sensor that measures acidity.SensorAttributes.TYPE_ANGLE_POSITION – a sensor that measures acceleration.SensorAttributes.TYPE_BASAL_METABOLIC_RATE – a sensor that measures metabolic rate.SensorAttributes.TYPE_BODY_MASS_INDEX – a sensor that measures body mass index.SensorAttributes.TYPE_CAPACITY – a sensor that measures capacity.SensorAttributes.TYPE_CARBON_MONOXIDE – a sensor that measures carbon monoxide.SensorAttributes.TYPE_CARBON_DIOXIDE – a sensor that measures carbon dioxide.SensorAttributes.TYPE_CHLORINE – a sensor that measures chlorine.SensorAttributes.TYPE_DENSITY – a sensor that measures density.SensorAttributes.TYPE_DEW_POINT – a sensor that measures dew point.SensorAttributes.TYPE_DISTANCE – a sensor that measures distance.SensorAttributes.TYPE_ELECTRIC_CONDUCTIVITY – a sensor that measures conductivity.SensorAttributes.TYPE_ELECTRIC_CURRENT – a sensor that measures electric current.SensorAttributes.TYPE_ELECTRIC_POTENTIAL – a sensor that measures electric potential.SensorAttributes.TYPE_ELECTRIC_RESISTIVITY – a sensor that measures electric resistivity.SensorAttributes.TYPE_ELECTRIC_POWER – a sensor that measures electric power.SensorAttributes.TYPE_FLOW – a sensor that measures flow.SensorAttributes.TYPE_FORMALDEHYDE – a sensor that measures formaldehyde.SensorAttributes.TYPE_FREQUENCY – a sensor that measures frequency.SensorAttributes.TYPE_HUMIDITY – a sensor that measures humidity.SensorAttributes.TYPE_LEVEL – a sensor that measures level.SensorAttributes.TYPE_LUMINANCE – a sensor that measures luminance.SensorAttributes.TYPE_MASS – a sensor that measures mass.SensorAttributes.TYPE_METHANE – a sensor that measures methane.SensorAttributes.TYPE_MOISTURE – a sensor that measures moisture.SensorAttributes.TYPE_PARTICULATE_MATTER_10 – a sensor that measures 10 micrometers particulate matter.SensorAttributes.TYPE_PARTICULATE_MATTER_2_5 – a sensor that measures 2.5 micrometers particulate matter.SensorAttributes.TYPE_POWER – a sensor that measures non electrical power.SensorAttributes.TYPE_PRESSURE – a sensor that measures pressure.SensorAttributes.TYPE_RADIATION – a sensor that measures radiation.SensorAttributes.TYPE_RADON – a sensor that measures radon.SensorAttributes.TYPE_RATE – a sensor that measures rate.SensorAttributes.TYPE_ROTATION – a sensor that measures rotation.SensorAttributes.TYPE_SALINITY – a sensor that measures salinity.SensorAttributes.TYPE_SIGNAL_STRENGTH – a sensor that measures signal strength.SensorAttributes.TYPE_TEMPERATURE – a sensor that measures temperature.SensorAttributes.TYPE_UV_INDEX – a sensor that measures ultraviolet index.SensorAttributes.TYPE_VELOCITY – a sensor that measures velocity.SensorAttributes.TYPE_VOLATILE_ORGANIC_COMPOUNDS – a sensor that measures volatile organic compounds.SensorAttributes.TYPE_WEIGHT – a sensor that measures weight.SensorAttributes.TYPE_HEATING – a sensor that measures heating.SensorAttributes.TYPE_COOLING – a sensor that measures cooling.SensorAttributes.TYPE_TIME – a sensor that measures time.