interface State {
    currentPosition: number;
    numberOfPositions: number;
}

Hierarchy

  • StateType
    • State

Properties

currentPosition: number

Indicates the position of the switch. The valid range is zero to NumberOfPositions-1. CurrentPosition value 0 shall be assigned to the default position of the switch: for example the "open" state of a rocker switch, or the "idle" state of a push button switch.

MatterSpecification.v13.Cluster § 1.13.5.2

numberOfPositions: number

Indicates the maximum number of positions the switch has. Any kind of switch has a minimum of 2 positions. Also see Multi Position Details for the case NumberOfPositions>2.

MatterSpecification.v13.Cluster § 1.13.5.1