Readonly
eventsAccess the behavior's events.
Optional
Readonly
measurementIf supported, this event shall be generated at the end of a measurement period. The start and end times for measurement periods shall be determined by the server, and may represent overlapping periods.
Supported features as a flag object.
Readonly
alternatingAlternatingCurrent
This feature indicates the cluster can measure an alternating current.
Readonly
directDirectCurrent
This feature indicates the cluster can measure a direct current.
Readonly
harmonics: BitFlagHarmonics
This feature indicates the cluster can measure the harmonics of an alternating current.
Readonly
polyphasePolyphasePower
This feature indicates the cluster represents the collective measurements for a Polyphase power supply.
Readonly
powerPowerQuality
This feature indicates the cluster can measure the harmonic phases of an alternating current.
Readonly
stateAccess the behavior's state.
Readonly
activeThis shall indicate the most recent ActivePower reading in milliwatts (mW). If the power cannot be measured, a value of null shall be returned.
A positive value represents power imported, while a negative value represents power exported.
The reporting interval of this attribute shall be manufacturer dependent. The server may choose to omit publication of deltas considered not meaningful.
The server shall NOT mark this attribute ready for report if the last time this was done was more recently than 1 second ago.
The server may delay marking this attribute ready for report for longer periods if needed, however the server shall NOT delay marking this attribute as ready for report for longer than 60 seconds.
If the Polyphase Power feature is set, this value represents the combined active power imported or exported.
Readonly
powerThis shall indicate the current mode of the server. For some servers, such as an EV, this may change depending on the mode of charging or discharging.
Optional
Readonly
activeThis shall indicate the most recent ActiveCurrent reading in milliamps (mA).
A positive value represents current flowing into the server, while a negative value represents current flowing out of the server.
The reporting interval of this attribute shall be manufacturer dependent. The server may choose to omit publication of deltas considered not meaningful.
The server shall NOT mark this attribute ready for report if the last time this was done was more recently than 1 second ago.
The server may delay marking this attribute ready for report for longer periods if needed, however the server shall NOT delay marking this attribute as ready for report for longer than 60 seconds.
If the current cannot be measured, a value of null shall be returned.
Optional
Readonly
ranges?: TypeFromFields<{ This shall indicate a list of measured ranges for different measurement types. Each measurement type shall have at most one entry in this list, representing the range of measurements in the most recent measurement period.
The reporting interval of this attribute shall be manufacturer dependent. The server may choose to omit publication of deltas considered not meaningful.
The server shall NOT mark this attribute ready for report if the last time this was done was more recently than 1 second ago.
The server may delay marking this attribute ready for report for longer periods if needed, however the server shall NOT delay marking this attribute as ready for report for longer than 60 seconds.
Optional
Readonly
voltage?: null | number | bigintThis shall indicate the most recent Voltage reading in millivolts (mV).
The reporting interval of this attribute shall be manufacturer dependent. The server may choose to omit publication of deltas considered not meaningful.
The server shall NOT mark this attribute ready for report if the last time this was done was more recently than 1 second ago.
The server may delay marking this attribute ready for report for longer periods if needed, however the server shall NOT delay marking this attribute as ready for report for longer than 60 seconds.
If the voltage cannot be measured, a value of null shall be returned.
Readonly
accuracy: TypeFromFields<{ This shall indicate a list of accuracy specifications for the measurement types supported by the server. There shall be an entry for ActivePower, as well as any other measurement types implemented by this server.
Readonly
numberThis shall indicate the maximum number of measurement types the server is capable of reporting.
Release resources. This is the public API for releasing application resources held by behaviors in internal state.
Protected
callbackCreate a generic callback function that has the same properties as a Reactor.
Like a reactor, the callback's "this" will be bound to an active Behavior instance. Because of this: The reactor MUST be a real JS function - arrow functions will not work!
Behaviors are ephemeral and should not perform initialization in their constructor. They can override this method instead.
This method may be synchronous or asyncronous. If asynchronous, the behavior will not be available for external use until initialization completes.
Optional
_options: {}Protected
reactInstall a Reactor.
Important: The reactor MUST be a real JS function - arrow functions will not work!
The implemented cluster.