6#ifndef __TFW_SENSOR_IDL__
7#define __TFW_SENSOR_IDL__
constant int FAULT_STATE
Fault state [uses NormalAlarmedState mapping if of DISCRETE_ON_OFF type].
constant int AIR_FLOW
Air flow.
constant int MOTION
Motion detection.
constant int UNSPECIFIED
Sensor type
constant int DOOR_HANDLE_LOCK
Door handle switch [uses OpenClosedState mapping].
constant int METER_PER_SEC
Speed, Meters per second (m/s)
constant int LUMINOUS_INTENSITY
Luminous intensity.
constant int HUMIDITY
Relative humidity.
constant int POWER_FACTOR
Power factor.
constant int NONE
Sensor unit
constant int UG_PER_CUBIC_METER
Density, Micrograms per cubic meter (µg/m^3)
@ NORMAL
normal (not alarmed)
constant int ROTATIONAL_SPEED
Rotational speed (e.g. fan speed)
constant int LENGTH
Length.
constant int CURRENT
Current.
constant int ACCELERATION
Acceleration.
constant int LUMEN_SECOND
Luminous Energy, Lumen second (lm s)
constant int WATER_LEAK
Water leak [uses NormalAlarmedState mapping].
constant int MINUTE
Time, Minutes (min)
constant int WATT_HOUR
Active Energy, Watt hours (Wh)
constant int VOLT_AMP
Electric Capacity, Volt Amperes (VA)
constant int VOLTAGE
Voltage.
constant int TOTAL_HARMONIC_DISTORTION
Total harmonic distortion.
constant int DISCRETE_ON_OFF
Sensor has two discrete readings: 0 (off) and 1 (on), see OnOffState
constant int AIR_PRESSURE
Air pressure.
constant int DOOR_STATE
Door state [uses OpenClosedState mapping].
constant int METER
Distance, Meters (m)
constant int FLUX
Flux (mass per time, e.g. water flow)
constant int VOLT_PER_AMPERE
Resistance, Volt per ampere (V/A)
constant int JOULE
Energy, Joules (J)
constant int HENRY
Inductance, Henries (H, Vs/A, Ohm s)
constant int RADIANT
Angle, Radians (rad)
constant int GRAY
Radiation, Grays (Gy, J/kg)
constant int KELVIN
Temperature, Kelvin (K)
constant int RPM
Rotation, Revolutions per minute (rpm)
constant int VOLT_AMP_REACTIVE_HOUR
Reactive Energy, Volt Ampere reactive hours (varh)
constant int TESLA
Magnetic Flux Density, Tesla (T)
constant int BECQUEREL
Radiation, Becquerels (Bq)
constant int DISCRETE_MULTI
Sensor has multiple discrete readings
constant int NEWTON
Force, Newtons (N, J/m)
constant int VOLT_PER_METER
Electric Field, Volt per meter (V/m)
constant int ERR_NOT_SUPPORTED
The operation is not supported.
constant int CANDELA
Luminous Intensity, Candela (cd)
constant int LITERS_PER_HOUR
Flow, Liters per hour (l/h)
constant int SMOKE_DETECTOR
Smoke detector [uses NormalAlarmedState mapping].
constant int FARAD
Capacitance, Farads (F)
constant int TS_BYPASS_STATE
Transfer switch bypass state.
constant int METER_PER_SQUARE_SEC
Acceleration, Meter per square second (m/s^2)
constant int SECOND
Time, Seconds (s)
constant int PARTICLE_DENSITY
Particle Density.
constant int GRAM
Mass, Gram (g)
constant int OCCUPANCY
Occupancy detection [uses NormalAlarmedState mapping].
constant int VIBRATION
Vibration [uses NormalAlarmedState mapping].
constant int ILLUMINANCE
Illuminance used for light incident on a surface.
constant int HZ
Frequency, Hertz (Hz)
constant int TRIP_SENSOR
Circuit breaker tripped [uses OpenClosedState mapping].
constant int LUMINOUS_EMITTANCE
Luminous emittance used for light emitted from a surface.
constant int ANGLE
Angle (e.g. phase angle)
constant int SIEVERT
Radiation, Sieverts (Sv = J/kg)
constant int SELECTION
Selected index (one of n)
constant int LUMINOUS_ENERGY
Luminous energy.
constant int FOOT_PER_SEC
Speed, Feet per second (ft/s)
constant int DEGREE_CELSIUS
Temperature, Celsius (deg C)
constant int ENERGY
Energy.
boolean isTypeChangeAllowed()
Check whether the sensor type can be changed using setType().
OnOffState
Sensor states for DISCRETE_ON_OFF sensors.
constant int FOOT
Distance, Feet (ft)
constant int COULOMB
Electric Charge, Coulombs (C)
constant int NUMERIC
Sensor reading type
constant int LUMINOUS_FLUX
Luminous flux.
constant int TEMPERATURE
Temperature.
constant int MAGNETIC_FIELD_STRENGTH
Magnetic field strength [uses NormelAlarmedState mapping if of DISCRETE_ON_OFF type].
constant int ON_OFF_SENSOR
Switch state [uses OnOffState mapping].
constant int METER_PER_SQARE_SEC
Typo, preserved for backward compatibility.
constant int CONTACT_CLOSURE
Contact Closure [uses NormalAlarmedState mapping].
constant int LUX
Luminous Flux, Lux (lx)
constant int VOLT
Electric Potential, Volts (V)
constant int VOLT_AMP_REACTIVE
Reactive Power, Volt Amperes reactive (var)
constant int DRY_CONTACT
Dry contact (actuator) [uses OnOffState mapping].
constant int PASCAL
Pressure, Pascal (Pa)
constant int ABSOLUTE_HUMIDITY
Absolute humidity.
constant int OHM
Resistance, Ohm (omega, R)
constant int TAMPER
Tamper detection [uses NormalAlarmedState mapping].
constant int DEGREE_FAHRENHEIT
Temperature, Fahrenheit (deg F)
constant int DEGREE
Angle, Degrees (deg)
constant int G_PER_CUBIC_METER
Density, Grams per cubic meter (g/m^3)
constant int VOLT_AMP_HOUR
Apparent Energy, Volt-Ampere hours (VAh)
TypeSpec getTypeSpec()
Retrieve the sensor type specification.
constant int UNBALANCE_VOLTAGE
Voltage unbalance.
constant int NIT
Luminance, Nits (cd/m^2)
constant int G
Acceleration, G-force (g)
constant int HOUR
Time, Hours (h)
int setType(in int type, in int unit)
Set sensor type and unit.
constant int DEW_POINT
Dew Point.
constant int BATTERY_LEVEL
Battery level.
constant int AMPERE
Electric Current, Amperes (A)
constant int MOL
Substance Quantity, Moles (mol)
constant int POWERED_DRY_CONTACT
Powered dry contact (actuator) [uses OnOffState mapping].
constant int DISTANCE
Distance.
constant int FREQUENCY
Frequency.
constant int POWER_QUALITY
Power quality.
constant int ELECTRICAL_RESISTANCE
Electrical resistance.
constant int STERADIANT
Solid Angle, Steradians (sr)
constant int ELECTRICAL_IMPEDANCE
Electrical impedance.
constant int WATT
Electric Power, Watts (W)
constant int CUBIC_METER
Volume, Cubic meters (m^3)
constant int CREST_FACTOR
Crest factor.
constant int PSI
Pressure, Pounds per square inch (psi)
constant int PERCENT
Ratio, Percent (%)
constant int ELECTRIC_FIELD_STRENGTH
Electric field strength.
constant int UNBALANCE_CURRENT
Current unbalance.
constant int LUMEN
Luminous Flux, Lumen (lm)
constant int MAGNETIC_FLUX_DENSITY
Magnetic flux density.
constant int DOOR_LOCK_STATE
Door lock state [uses OpenClosedState mapping].
Common base for all events.
Event: The type specification of the sensor changed.
TypeSpec newTypeSpec
Type specification after change.
TypeSpec oldTypeSpec
Type specification before change.
Complete sensor type specification.
int readingtype
Sensor reading type