interface State {
    lightSensorType?: null | number;
    maxMeasuredValue: null | number;
    measuredValue: null | number;
    minMeasuredValue: null | number;
    tolerance?: number;
}

Hierarchy

  • StateType
    • State

Properties

lightSensorType?: null | number

The LightSensorType attribute specifies the electronic type of the light sensor. This attribute shall be set to one of the non-reserved values listed in LightSensorTypeEnum or null in case the sensor type is unknown.

MatterSpecification.v13.Cluster § 2.2.5.5

maxMeasuredValue: null | number

The MaxMeasuredValue attribute indicates the maximum value of MeasuredValue that can be measured. A value of null indicates that this attribute is not defined. See Measured Value for more details.

MatterSpecification.v13.Cluster § 2.2.5.3

measuredValue: null | number

The MeasuredValue attribute represents the illuminance in Lux (symbol lx) as follows:

• MeasuredValue = 10,000 x log10(illuminance) + 1,

where 1 lx <= illuminance <= 3.576 Mlx, corresponding to a MeasuredValue in the range 1 to 0xFFFE. The MeasuredValue attribute can take the following values:

• 0 indicates a value of illuminance that is too low to be measured,

• MinMeasuredValue <= MeasuredValue <= MaxMeasuredValue under normal circumstances,

• null indicates that the illuminance measurement is invalid.

The MeasuredValue attribute is updated continuously as new measurements are made.

MatterSpecification.v13.Cluster § 2.2.5.1

minMeasuredValue: null | number

The MinMeasuredValue attribute indicates the minimum value of MeasuredValue that can be measured. A value of null indicates that this attribute is not defined. See Measured Value for more details.

MatterSpecification.v13.Cluster § 2.2.5.2

tolerance?: number

See Measured Value.

MatterSpecification.v13.Cluster § 2.2.5.4