Locks, closures, HVAC and lighting260 — Closure Control

Matter Cluster 260 — Closure Control

Matter Cluster 260 (0x0104) Closure Control: attributes, commands, events, data types, shadow paths and bridge payload examples.

Matter Cluster 260 — Closure Control Cluster

Matter Cluster 260, also written as 0x0104, is the Closure Control Cluster. This cluster provides an interface for controlling a Closure.

Cluster Identity

FieldValue
Cluster ID decimal260
Cluster ID hex0x0104
Cluster nameClosure Control
Cluster revision (Matter 1.6.1)1
Roleapplication
ScopeEndpoint
PICS codeCLCTRL
Typical endpoint1

Revision history

RevisionChange
1Initial revision

Shadow Path Format

Cluster 260 values in the device shadow use this format:

endpoint_id / 260 / attribute_id

Example:

{
  "1/260/1": 0
}
PartMeaning
1Endpoint ID
260Closure Control cluster
1MainState attribute

Cluster 260 Features

The FeatureMap attribute (1/260/65532) is a bitmap. Each bit set means the device implements that feature and the attributes and commands that depend on it.

BitCodeFeatureConformanceMeaning
0PSPositioningOSupports Positioning with at least Fully Opened (0%) and Fully Closed (100%) discrete positions
1LTMotionLatchingOSupports a latch (securing a position, or a state)
2ISInstantaneousOSupports the Instantaneous feature
3SPSpeed[PS & !IS]Supports Speed motion throttling
4VTVentilation[PS]Supports Ventilation discrete state
5PDPedestrian[PS]Supports Pedestrian discrete state
6CLCalibration[PS]Supports the Calibration feature
7PTProtectionOSupports the Protection feature
8MOManuallyOperableOSupports the manual operation feature

Example: FeatureMap = 0 means no optional feature is enabled; 511 means every feature listed above is enabled.


Data Types

ClosureErrorEnum

The following ranges are reserved for general and manufacturer specified closure errors. The manufacturer-specific error definitions must NOT duplicate the general error definitions.

ValueNameConformanceMeaning
0PhysicallyBlockedMAn obstacle is blocking the closure movement
1BlockedBySensorMThe closure is unsafe to move, as determined by a sensor (e.g. photoelectric sensor) before attempting movement
2TemperatureLimitedMA warning raised by the closure that indicates an over-temperature, e.g. due to excessive drive or stall current
3MaintenanceRequiredMSome malfunctions that are not easily recoverable are detected, or urgent servicing is needed
4InternalInterferenceMAn internal element is prohibiting motion, e.g. an integrated door within a bigger garage door is open and prevents motion

CurrentPositionEnum

ValueNameConformanceMeaning
0FullyClosedMFully closed state
1FullyOpenedMFully opened state
2PartiallyOpenedMPartially opened state (closure is not fully opened or fully closed)
3OpenedForPedestrianPDClosure is in the Pedestrian position
4OpenedForVentilationVTClosure is in the Ventilation position
5OpenedAtSignatureMClosure is in its "Signature position"

MainStateEnum

ValueNameConformanceMeaning
0StoppedMClosure is stopped
1MovingMClosure is actively moving
2WaitingForMotionMClosure is waiting before a motion (e.g. pre-heat, pre-check)
3ErrorMClosure is in an error state
4CalibratingCLClosure is currently calibrating its Opened and Closed limits to determine effective physical range
5ProtectedPTSome protective measures are activated to prevent damage to the closure. Commands MAY be rejected.
6DisengagedMOClosure has a disengaged element preventing any actuator movements
7SetupRequiredMMovement commands are ignored since the closure is not operational and requires further setup and/or calibration

TargetPositionEnum

ValueNameConformanceMeaning
0MoveToFullyClosedMMove to a fully closed state
1MoveToFullyOpenMMove to a fully open state
2MoveToPedestrianPositionPDMove to the Pedestrian position
3MoveToVentilationPositionVTMove to the Ventilation position
4MoveToSignaturePositionMMove to the Signature position

LatchControlModesBitmap (bitmap)

BitNameConformanceMeaning
0RemoteLatchingLTRemote latching capability
1RemoteUnlatchingLTRemote unlatching capability

OverallCurrentStateStruct (struct)

FieldNameTypeConformanceConstraintMeaning
0PositionCurrentPositionEnum (nullable)PSdescIndicates the current Position state of the closure, as defined in the CurrentPositionEnum.
1Latchbool (nullable)LTdescIndicates the current latching state of the closure.
2SpeedThreeLevelAutoEnumSPdescIndicates the current speed of the closure, as defined in the ThreeLevelAutoEnum.
3SecureStatebool (nullable)MdescIndicates the current secure state of the closure.

OverallTargetStateStruct (struct)

FieldNameTypeConformanceConstraintMeaning
0PositionTargetPositionEnum (nullable)PS—Indicates the target position that the closure is moving to.
1Latchbool (nullable)LT—Indicates the desired latching state of the closure.
2SpeedThreeLevelAutoEnumSP—Indicates the desired speed at which the closure should perform the movement toward the target position.

Cluster 260 Attributes

Cluster 260 defines 6 attributes plus the global attributes. Conformance: M mandatory, O optional, a feature code means "mandatory when that feature is present", square brackets mean "optional when …".

IDHexAttributeTypeConformanceAccessQualitiesDefault
00x0000CountdownTimeelapsed-s[PS & !IS]R (read: view)nullable, quiet reportingnull
10x0001MainStateMainStateEnumMR (read: view)——
20x0002CurrentErrorListlist of ClosureErrorEnumMR (read: view)——
30x0003OverallCurrentStateOverallCurrentStateStructMR (read: view)nullablenull
40x0004OverallTargetStateOverallTargetStateStructMR (read: view)nullablenull
50x0005LatchControlModesLatchControlModesBitmapLTR (read: view)——

Global attributes

IDHexAttributeMeaning
655280xFFF8GeneratedCommandListResponse command IDs this server generates.
655290xFFF9AcceptedCommandListCommand IDs this server accepts.
655310xFFFBAttributeListAttribute IDs implemented.
655320xFFFCFeatureMapImplemented optional features (see above).
655330xFFFDClusterRevisionCluster revision implemented; 1 for a Matter 1.6.1 device.

Attribute Details

Attribute 0 / 0x0000 — CountdownTime

Path example:

1/260/0

Indicates the estimated time left before the operation is completed, in seconds. A value of 0 (zero) means that the operation has completed. A value of null indicates that there is no time currently defined until operation completion. This may happen because the completion time is unknown.

PropertyValue
Typeelapsed-s
Conformance[PS & !IS]
AccessR (read: view)
Qualitiesnullable, quiet reporting
Constraintmax 259200
Defaultnull

Example:

{
  "1/260/0": 0
}

Attribute 1 / 0x0001 — MainState

Path example:

1/260/1

Indicates the current operational state of the closure associated with the server. The MainState diagram is provided exclusively for informational purposes only and is an exemplary design of the internals of a closure implementation to help illustrate the aspects of function that are considered by the cluster's normative text.

PropertyValue
TypeMainStateEnum
ConformanceM
AccessR (read: view)

Values (MainStateEnum):

ValueNameMeaning
0StoppedClosure is stopped
1MovingClosure is actively moving
2WaitingForMotionClosure is waiting before a motion (e.g. pre-heat, pre-check)
3ErrorClosure is in an error state
4CalibratingClosure is currently calibrating its Opened and Closed limits to determine effective physical range
5ProtectedSome protective measures are activated to prevent damage to the closure. Commands MAY be rejected.
6DisengagedClosure has a disengaged element preventing any actuator movements
7SetupRequiredMovement commands are ignored since the closure is not operational and requires further setup and/or calibration

Example:

{
  "1/260/1": 0
}

Attribute 2 / 0x0002 — CurrentErrorList

Path example:

1/260/2

Indicates the currently active errors. An empty list indicates that there are no active errors. There must NOT be duplicate values of ClosureErrorEnum within the CurrentErrorList.

PropertyValue
Typelist of ClosureErrorEnum
ConformanceM
AccessR (read: view)
Constraintmax 10 entries

Example:

{
  "1/260/2": []
}

Attribute 3 / 0x0003 — OverallCurrentState

Path example:

1/260/3

Indicates the current Position, Latch and/or Speed states, whichever are applicable according to the feature flags set. Null, if the state is unknown. Examples could be, but are not limited to: - The state of Position/Latch is not known yet because the closure is not calibrated. - The product has lost its Position/Latch state after manual motion during a shutdown. The values of the different fields within the structure of this attribute depend on: - The effects of MoveTo commands. - The effects of SetTarget and Step commands in a Closure Dimension Cluster associated with this cluster. - The Stop command.

PropertyValue
TypeOverallCurrentStateStruct
ConformanceM
AccessR (read: view)
Qualitiesnullable
Defaultnull

Value is a OverallCurrentStateStruct struct (see Data Types).

Example:

{
  "1/260/3": {
    "position": 0,
    "latch": true,
    "speed": 0,
    "secureState": true
  }
}

Attribute 4 / 0x0004 — OverallTargetState

Path example:

1/260/4

Indicates the TargetPosition, TargetLatch and/or TargetSpeed values, whichever are applicable according to the feature flags set. Null, if the state is unknown. For example after a reboot.

PropertyValue
TypeOverallTargetStateStruct
ConformanceM
AccessR (read: view)
Qualitiesnullable
Defaultnull

Value is a OverallTargetStateStruct struct (see Data Types).

Example:

{
  "1/260/4": {
    "position": 0,
    "latch": true,
    "speed": 0
  }
}

Attribute 5 / 0x0005 — LatchControlModes

Path example:

1/260/5

This attribute specifies whether the latch mechanism can be latched or unlatched remotely.

PropertyValue
TypeLatchControlModesBitmap
ConformanceLT
AccessR (read: view)

Bits (LatchControlModesBitmap):

BitNameMeaning
0RemoteLatchingRemote latching capability
1RemoteUnlatchingRemote unlatching capability

Example:

{
  "1/260/5": 0
}

Cluster 260 Commands

Cluster 260 has 3 client-to-server commands and 0 responses.

IDHexCommandDirectionConformanceResponseDescription
00x00Stopclient → server!ISstatusOn receipt of this command, the closure must stop its movement as fast as the closure is able too.
10x01MoveToclient → serverMstatusOn receipt of this command, the closure must operate to update its position, latch state and/or motion speed.
20x02Calibrateclient → serverCLstatusThis command is used to trigger a calibration of the closure.

AcceptedCommandList

The AcceptedCommandList attribute lists the command IDs the endpoint actually implements:

endpoint_id / 260 / 65529
{
  "1/260/65529": [
    0,
    1,
    2
  ]
}

Before sending a Cluster 260 command, check that the command ID exists in endpoint/260/65529. Optional commands are only present when the matching feature is set in FeatureMap.


Bridge Command Payload Format

The bridge accepts Matter commands in this structure:

{
  "message_id": "1",
  "command": "device_command",
  "args": {
    "endpoint_id": 1,
    "cluster_id": 260,
    "command_name": "Stop",
    "payload": {},
    "timed_request_timeout_ms": 1000
  }
}

For Cluster 260, always use "cluster_id": 260. Payload keys are the command field names in lowerCamelCase. Octet-string fields are base64-encoded. timed_request_timeout_ms is required for timed commands and ignored otherwise.


Command: Stop

Purpose

On receipt of this command, the closure must stop its movement as fast as the closure is able too. If the server's MainState attribute has one of the following values: - Moving - WaitingForMotion - Calibrating then any motions is stopped and the MainState attribute is set to Stopped. A status code of SUCCESS must always be returned, regardless of the value of the MainState attribute when this command is received.

Command Identity

FieldValue
Command ID0
Command hex0x00
Command nameStop
Directionclient → server
Conformance!IS
Responsestatus
Access(invoke: operate)

Payload Fields

This command has no payload fields.

Bridge Command Example

{
  "message_id": "1",
  "command": "device_command",
  "args": {
    "endpoint_id": 1,
    "cluster_id": 260,
    "command_name": "Stop",
    "payload": {}
  }
}

Command: MoveTo

Purpose

On receipt of this command, the closure must operate to update its position, latch state and/or motion speed. The rationale behind defining the conformance as being purely optional in the table above is to ensure that commands containing one or more fields related to unsupported features are still accepted, rather than being rejected outright. For example, if a simple client, which is not able to determine the capabilities of the server, invokes a command that includes both position and speed, a server that does not support the speed feature would simply ignore the speed field while still adjusting its position as requested.

Command Identity

FieldValue
Command ID1
Command hex0x01
Command nameMoveTo
Directionclient → server
ConformanceM
Responsestatus
Access(invoke: operate, timed)

Payload Fields

IDFieldPayload keyTypeConformanceConstraintMeaning
0PositionpositionTargetPositionEnumO—Indicates the position where the closure is moving to, as defined in the TargetPositionEnum.
1LatchlatchboolO—Indicates the desired latching state of the closure, as defined in the OverallCurrentStateStruct Latch Field.
2SpeedspeedThreeLevelAutoEnumO—Indicates a desired overall speed of motion, as defined in the ThreeLevelAutoEnum.

Position values (TargetPositionEnum): 0 = MoveToFullyClosed, 1 = MoveToFullyOpen, 2 = MoveToPedestrianPosition, 3 = MoveToVentilationPosition, 4 = MoveToSignaturePosition

Bridge Command Example

{
  "message_id": "1",
  "command": "device_command",
  "args": {
    "endpoint_id": 1,
    "cluster_id": 260,
    "command_name": "MoveTo",
    "payload": {
      "position": 0,
      "latch": true
    },
    "timed_request_timeout_ms": 1000
  }
}

This is a timed command: the bridge must send it inside a timed interaction, so timed_request_timeout_ms is required.


Command: Calibrate

Purpose

This command is used to trigger a calibration of the closure.

Command Identity

FieldValue
Command ID2
Command hex0x02
Command nameCalibrate
Directionclient → server
ConformanceCL
Responsestatus
Access(invoke: manage, timed)

Payload Fields

This command has no payload fields.

Bridge Command Example

{
  "message_id": "1",
  "command": "device_command",
  "args": {
    "endpoint_id": 1,
    "cluster_id": 260,
    "command_name": "Calibrate",
    "payload": {},
    "timed_request_timeout_ms": 1000
  }
}

This is a timed command: the bridge must send it inside a timed interaction, so timed_request_timeout_ms is required.


Cluster 260 Events

IDHexEventPriorityConformanceDescription
00x00OperationalErrorcriticalMThis event is generated when a reportable error condition is detected.
10x01MovementCompletedinfo!ISThis event, if supported, is generated when the overall operation ends, either successfully or otherwise.
20x02EngageStateChangedinfoMOThis event, if supported, is generated when the MainStateEnum attribute changes state to and from disengaged, indicating if the actuator is Engaged or Disengaged.
30x03SecureStateChangedinfoMThis event, if supported, is generated when the SecureState field in the OverallCurrentState attribute changes.

Event 0 — OperationalError

This event is generated when a reportable error condition is detected. A closure that generates this event must also set the MainState attribute to Error, indicating an error condition. This event contains the following fields:

IDFieldTypeConformanceMeaning
0ErrorStatelist of ClosureErrorEnumM—

Event 1 — MovementCompleted

This event, if supported, is generated when the overall operation ends, either successfully or otherwise. For example, the event is sent upon the completion of a movement operation in a blind.

This event has no fields.

Event 2 — EngageStateChanged

This event, if supported, is generated when the MainStateEnum attribute changes state to and from disengaged, indicating if the actuator is Engaged or Disengaged. This event contains the following fields: - True, when the actuator is in a Engaged state, actuator movements possible. - False, when the actuator is in a Disengaged state, preventing any actuator movements.

IDFieldTypeConformanceMeaning
0EngageValueboolM—

Event 3 — SecureStateChanged

This event, if supported, is generated when the SecureState field in the OverallCurrentState attribute changes. It is used to indicate whether a closure is securing a space against possible unauthorized entry. This event contains the following fields: - True, when the closure is in a secure state, e.g. unauthorized/undetectable access is not possible. - False, when the closure is in an insecure state, e.g. unauthorized/undetectable access is possible.

IDFieldTypeConformanceMeaning
0SecureValueboolM—

SmartphoneKey Notes

  • Cluster 260 is not currently exposed by SmartphoneKey devices. This page documents the Matter 1.6.1 specification so that future devices can be interpreted without changes to the backend.
  • Shadow paths follow endpoint/260/attribute; attribute values that the device reports as unreadable are written as n/a.
  • Attribute IDs, command IDs and enum values on this page come from the CSA Matter 1.6.1 data model; descriptions are condensed from the specification text.