Switch 0x003B
This cluster exposes interactions with a switch device, for the purpose of using those interactions by other devices.
Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags.
Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade.
Spec History
Matter 1.0
rev 1
Matter 1.1
rev 1
Matter 1.2
rev 1
Matter 1.3
rev 1
Matter 1.4
rev 2
Matter 1.5
rev 2
Matter master
rev 2
Attributes (3)
| Code | Name | Type |
|---|---|---|
| 0x0000 | NumberOfPositions | int8u |
| 0x0001 | CurrentPosition | int8u |
| 0x0002 | MultiPressMax | int8u |
Features (6)
| Bit | Code | Name |
|---|---|---|
| 0 | LS | LatchingSwitch — Switch is latching |
| 1 | MS | MomentarySwitch — Switch is momentary |
| 2 | MSR | MomentarySwitchRelease — Switch supports release events generation |
| 3 | MSL | MomentarySwitchLongPress — Switch supports long press detection |
| 4 | MSM | MomentarySwitchMultiPress — Switch supports multi-press detection |
| 5 | AS | ActionSwitch — Switch is momentary, targeted at specific user actions (focus on multi-press and optionally long press) with a reduced event generation scheme |