Hierarchy (view full)

Constructors

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

debounceDelay: number = 0

Debounce Delay to wait until a newly reported raw position is considered stable and written to the currentPosition attribue.

longPressDelay: number = 0

Time to wait until a value is considered "long" pressed

momentaryNeutralPosition: number = 0

Number of the position considered as the neutral position for the momentary switch.

multiPressDelay: number = 0

Timeframe starting with a stable release to detect multi-presses.

multiPressMax?: number
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

rawPosition: number = 0

Raw position of the switch. Set this to debounce the value.