Energy Trait (enrg)

Energy.

AttributeValue
Idtag:google.com,2018:m2m:traits:energy:v1:v0#r0
Short-Idenrg
Has-Childrenno

The Energy trait contains properties that relate to the energy consumption of a device. A Thing would rarely implement all of the described properties: only the relevant properties would be implemented.

State Properties

NameKeyRWReqDescription
Wattss/enrg/wattXInstantaneous power draw, measured in watts.
Ampss/enrg/ampsXInstantaneous power draw, measured in amps.
Voltss/enrg/voltXInstantaneous electric potential, measured in volts.
VoltAmpss/enrg/voamXApparent instantaneous power draw, measured in volt-amps.
PowerFactors/enrg/pwftXThe instantaneous measured power factor of the load. Unitless.
Energys/enrg/enrgXThe accumulated power (energy) used over time by this thing, measured in watt-hours.

s/enrg/watt : Watts

Instantaneous power draw, measured in watts.

AttributeValue
Value Typereal number
FlagsGET, OBS

Unlike the property volt-amps, this property takes into consideration power factor when measuring AC.

s/enrg/amps : Amps

Instantaneous power draw, measured in amps.

AttributeValue
Value Typereal number
FlagsGET, OBS

s/enrg/volt : Volts

Instantaneous electric potential, measured in volts.

AttributeValue
Value Typereal number
FlagsGET, OBS

s/enrg/voam : VoltAmps

Apparent instantaneous power draw, measured in volt-amps.

AttributeValue
Value Typereal number
FlagsGET, OBS

Note that this is literally the volts multiplied by the amps, so this will differ if the power factor is anything other than 1.0. Only really meaningful when measuring AC.

s/enrg/pwft : PowerFactor

The instantaneous measured power factor of the load. Unitless.

AttributeValue
Value Typereal number
FlagsGET, OBS

Only meaningful when measuring AC.

s/enrg/enrg : Energy

The accumulated power (energy) used over time by this thing, measured in watt-hours.

AttributeValue
Value Typereal number
FlagsGET, OBS, RESET

If this Thing allows this value to be reset, it can be reset by setting its value to zero or null. Setting to any other value MUST fail.

Config Properties

NameKeyRWReqDescription
LimitMaxWattsc/enrg/mxwtX?The maximum real power that the load is allowed to draw before being automatically shutting down.
LimitMaxVoltAmpsc/enrg/mxvaX?The maximum apparent power (volt-amps) that the load is allowed to draw before being automatically shutting down.
LimitMaxVoltsc/enrg/mxvoX?The voltage above which the load is automatically shut down.
LimitMinVoltsc/enrg/mnvoX?The voltage below which the load is automatically shut down.
LimitMaxAmpsc/enrg/mxamX?The maximum current that the load is allowed to draw before the load is automatically shut down.

c/enrg/mxwt : LimitMaxWatts

The maximum real power that the load is allowed to draw before being automatically shutting down.

AttributeValue
Value Typenullable real number
FlagsGET, OPT_SET, OBS

Set to null to disable. This property requires that the OnOff trait also be supported. When tripped, s/base/trap is set to [TRAP_MAX_WATTS] until the condition is reset by turning the load on again.

c/enrg/mxva : LimitMaxVoltAmps

The maximum apparent power (volt-amps) that the load is allowed to draw before being automatically shutting down.

AttributeValue
Value Typenullable real number
FlagsGET, OPT_SET, OBS

Set to null to disable. This property requires that the OnOff trait also be supported. When tripped, s/base/trap is set to [TRAP_MAX_VOLT_AMPS] until the condition is reset by turning the load on again.

c/enrg/mxvo : LimitMaxVolts

The voltage above which the load is automatically shut down.

AttributeValue
Value Typenullable real number
FlagsGET, OPT_SET, OBS

Set to null to disable. This property requires that the OnOff trait also be supported. When tripped, s/base/trap is set to [TRAP_MAX_VOLTS] until the condition is reset by turning the load on again.

c/enrg/mnvo : LimitMinVolts

The voltage below which the load is automatically shut down.

AttributeValue
Value Typenullable real number
FlagsGET, OPT_SET, OBS

Set to null to disable. This property requires that the OnOff trait also be supported. When tripped, s/base/trap is set to [TRAP_MIN_VOLTS] until the condition is reset by turning the load on again.

c/enrg/mxam : LimitMaxAmps

The maximum current that the load is allowed to draw before the load is automatically shut down.

AttributeValue
Value Typenullable real number
FlagsGET, OPT_SET, OBS

Set to null to disable. This property requires that the OnOff trait also be supported. When tripped, s/base/trap is set to [TRAP_MAX_AMPS] until the condition is reset by turning the load on again.

Metadata Properties

NameKeyRWReqDescription
TraitURIm/enrg/turiXXThe URI that uniquely identifies the specification used to implement this trait.
MaxWattsm/enrg/mxwtXThe maximum power that this thing is capable of drawing.
MaxAmpsm/enrg/mxamXThe maximum current that this thing is capable of drawing.

m/enrg/turi : TraitURI

The URI that uniquely identifies the specification used to implement this trait.

AttributeValue
Value TypeURI-reference
FlagsCONST, REQ

m/enrg/mxwt : MaxWatts

The maximum power that this thing is capable of drawing.

AttributeValue
Value Typereal number
FlagsCONST

m/enrg/mxam : MaxAmps

The maximum current that this thing is capable of drawing.

AttributeValue
Value Typereal number
FlagsCONST

Associated Constants

NameValueDescription
TRAP_MAX_WATTS"energy-max-watts"The real power of the load exceeded the value specified by c/enrg/mxwt.
TRAP_MAX_VOLT_AMPS"energy-max-volt-amps"The apparent power of the load exceeded the value specified by c/enrg/mxva.
TRAP_MAX_VOLTS"energy-max-volts"The voltage exceeded the value specified by c/enrg/mxvo.
TRAP_MIN_VOLTS"energy-min-volts"The voltage was lower than the value specified by c/enrg/mnvo.
TRAP_MAX_AMPS"energy-max-amps"The current being drawn by the load exceeded the value specified by c/enrg/mxam.