Package nl.tue.id.oocsi.client.data
Enum OOCSIDevice.SensorUnit
java.lang.Object
java.lang.Enum<OOCSIDevice.SensorUnit>
nl.tue.id.oocsi.client.data.OOCSIDevice.SensorUnit
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OOCSIDevice.SensorUnit>
,java.lang.constant.Constable
- Enclosing class:
- OOCSIDevice
public static enum OOCSIDevice.SensorUnit extends java.lang.Enum<OOCSIDevice.SensorUnit>
from: https://developers.home-assistant.io/docs/core/entity/sensor/#available-device-classes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description aqi
Air Quality Indexbattery
% Percentage of battery that is leftcarbon_dioxide
ppm Concentration of carbon dioxide.carbon_monoxide
ppm Concentration of carbon monoxide.current
A Currentdate
Date, must be formatted according to ISO8601.energy
Wh, kWh, MWh Energy, statistics will be stored in kWh.gas
m³, ft³ Volume of gas, statistics will be stored in m³.humidity
% Relative humidityilluminance
lx, lm Light levelmonetary
ISO 4217 Monetary value with a currency.nitrogen_dioxide
µg/m³ Concentration of nitrogen dioxidenitrogen_monoxide
µg/m³ Concentration of nitrogen monoxidenitrous_oxide
µg/m³ Concentration of nitrous oxideozone
µg/m³ Concentration of ozonepm1
µg/m³ Concentration of particulate matter less than 1 micrometerpm10
µg/m³ Concentration of particulate matter less than 10 micrometerspm25
µg/m³ Concentration of particulate matter less than 2.5 micrometerspower
W, kW Power, statistics will be stored in W.power_factor
% Power Factorpressure
cbar, bar, hPa, inHg, kPa, mbar, Pa, psi Pressure, statistics will be stored in Pa.signal_strength
dB, dBm Signal strengthsulphur_dioxide
µg/m³ Concentration of sulphure dioxidetemperature
°C, °F Temperature, statistics will be stored in °C.timestamp
Timestamp, must be formatted according to ISO8601.volatile_organic_compounds
µg/m³ Concentration of volatile organic compoundsvoltage
V Voltage -
Method Summary
Modifier and Type Method Description static OOCSIDevice.SensorUnit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OOCSIDevice.SensorUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
aqi
Air Quality Index -
battery
% Percentage of battery that is left -
carbon_dioxide
ppm Concentration of carbon dioxide. -
carbon_monoxide
ppm Concentration of carbon monoxide. -
current
A Current -
date
Date, must be formatted according to ISO8601. -
energy
Wh, kWh, MWh Energy, statistics will be stored in kWh. -
gas
m³, ft³ Volume of gas, statistics will be stored in m³. Gas consumption measured as energy in kWh instead of a volume should be classified as energy. -
humidity
% Relative humidity -
illuminance
lx, lm Light level -
monetary
ISO 4217 Monetary value with a currency. -
nitrogen_dioxide
µg/m³ Concentration of nitrogen dioxide -
nitrogen_monoxide
µg/m³ Concentration of nitrogen monoxide -
nitrous_oxide
µg/m³ Concentration of nitrous oxide -
ozone
µg/m³ Concentration of ozone -
pm1
µg/m³ Concentration of particulate matter less than 1 micrometer -
pm25
µg/m³ Concentration of particulate matter less than 2.5 micrometers -
pm10
µg/m³ Concentration of particulate matter less than 10 micrometers -
power
W, kW Power, statistics will be stored in W. -
power_factor
% Power Factor -
pressure
cbar, bar, hPa, inHg, kPa, mbar, Pa, psi Pressure, statistics will be stored in Pa. -
signal_strength
dB, dBm Signal strength -
sulphur_dioxide
µg/m³ Concentration of sulphure dioxide -
temperature
°C, °F Temperature, statistics will be stored in °C. -
timestamp
Timestamp, must be formatted according to ISO8601. -
volatile_organic_compounds
µg/m³ Concentration of volatile organic compounds -
voltage
V Voltage
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-