Readonly
eventsAccess the behavior's events.
Supported features as a flag object.
Readonly
stateAccess the behavior's state.
Readonly
lampThis attribute shall specify the number of lamps connected to this ballast. (Note 1: this number does not take into account whether lamps are actually in their sockets or not).
Readonly
maxThis attribute shall specify the light output of the ballast according to the dimming light curve
(see Dimming Curve) when the Level Control Cluster’s CurrentLevel attribute equals to 254 (and the On/Off Cluster’s OnOff attribute equals to TRUE).
The value of this attribute shall be both less than or equal to PhysicalMaxLevel and greater than or equal to MinLevel. If an attempt is made to set this attribute to a level where these conditions are not met, a response shall be returned with status code set to CONSTRAINT_ERROR, and the level shall NOT be set.
Readonly
minThis attribute shall specify the light output of the ballast according to the dimming light curve (see Dimming Curve) when the Level Control Cluster’s CurrentLevel attribute equals to 1 (and the On/Off Cluster’s OnOff attribute equals to TRUE).
The value of this attribute shall be both greater than or equal to PhysicalMinLevel and less than or equal to MaxLevel. If an attempt is made to set this attribute to a level where these conditions are not met, a response shall be returned with status code set to CONSTRAINT_ERROR, and the level shall NOT be set.
Readonly
physicalThis attribute shall specify the maximum light output the ballast can achieve according to the dimming light curve (see Dimming Curve).
Readonly
physicalThis attribute shall specify the minimum light output the ballast can achieve according to the dimming light curve (see Dimming Curve).
Optional
Readonly
ballastThis attribute shall specify the multiplication factor, as a percentage, to be applied to the configured light output of the lamps. A typical use for this attribute is to compensate for reduction in efficiency over the lifetime of a lamp.
The light output is given by
actual light output = configured light output x BallastFactorAdjustment / 100%
The range for this attribute is manufacturer dependent. If an attempt is made to set this attribute to a level that cannot be supported, a response shall be returned with status code set to CONSTRAINT_ERROR, and the level shall NOT be changed. The value of null indicates that ballast factor scaling is not in use.
Optional
Readonly
ballastThis attribute shall specify the status of various aspects of the ballast or the connected lights, see BallastStatusBitmap.
Optional
Readonly
intrinsicThis attribute shall specify the ballast factor, as a percentage, of the ballast/lamp combination, prior to any adjustment.
A value of null indicates in invalid value.
Optional
Readonly
lampThis attribute shall specify which attributes may cause an alarm notification to be generated. Ain each bit position means that its associated attribute is able to generate an alarm.
NOTE All alarms are also logged in the alarm table – see Alarms cluster.
Optional
Readonly
lampThis attribute shall specify the length of time, in hours, the currently connected lamps have been operated, cumulative since the last re-lamping. Burn hours shall NOT be accumulated if the lamps are off.
This attribute SHOULD be reset to zero (e.g., remotely) when the lamps are changed. If partially used lamps are connected, LampBurnHours SHOULD be updated to reflect the burn hours of the lamps.
A value of null indicates an invalid or unknown time.
Optional
Readonly
lampThis attribute shall specify the number of hours the LampBurnHours attribute may reach before an alarm is generated.
If the Alarms cluster is not present on the same device this attribute is not used and thus may be omitted (see Dependencies).
The Alarm Code field included in the generated alarm shall be 0x01.
If this attribute has the value of null, then this alarm shall NOT be generated.
Optional
Readonly
lampThis attribute shall specify the name of the manufacturer of the currently connected lamps.
Optional
Readonly
lampThis attribute shall specify the number of hours of use the lamps are rated for by the manufacturer.
A value of null indicates an invalid or unknown time.
Optional
Readonly
lampThis attribute shall specify the type of lamps (including their wattage) connected to the ballast.
Release resources. This is the public API for releasing application resources held by behaviors in internal state.
Execute logic with elevated privileges.
The provided function executes with privileges escalated to offline mode. This is not commonly necessary.
Elevated logic effectively ignores ACLs so should be used with care.
Note that interactions with the behavior will remain elevated until the synchronous completion of this call. You should only elevate privileges for synchronous logic.
the elevated logic
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.