<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -",
    "macCatalyst: 16.1.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Matter",
  "identifier" : "/documentation/Matter/MTRClusterOnOff",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Matter"
    ],
    "preciseIdentifier" : "c:objc(cs)MTRClusterOnOff"
  },
  "title" : "MTRClusterOnOff"
}
-->

# MTRClusterOnOff

```
class MTRClusterOnOff
```

## Topics

### Initializers

[`-  initWithDevice:endpoint:queue:`](/documentation/Matter/MTRClusterOnOff/init(device:endpoint:queue:))

[`-  initWithDevice:endpointID:queue:`](/documentation/Matter/MTRClusterOnOff/init(device:endpointID:queue:))

### Instance Methods

[`-  offWithParams:expectedValues:expectedValueInterval:completion:`](/documentation/Matter/MTRClusterOnOff/off(with:expectedValues:expectedValueInterval:completion:))

[`-  offWithParams:expectedValues:expectedValueInterval:completionHandler:`](/documentation/Matter/MTRClusterOnOff/off(with:expectedValues:expectedValueInterval:completionHandler:))

[`-  offWithExpectedValues:expectedValueInterval:completion:`](/documentation/Matter/MTRClusterOnOff/off(withExpectedValues:expectedValueInterval:completion:))

[`-  offWithExpectedValues:expectedValueInterval:completionHandler:`](/documentation/Matter/MTRClusterOnOff/off(withExpectedValues:expectedValueInterval:completionHandler:))

[`-  offWithEffectWithParams:expectedValues:expectedValueInterval:completion:`](/documentation/Matter/MTRClusterOnOff/offWithEffect(with:expectedValues:expectedValueInterval:completion:))

[`-  offWithEffectWithParams:expectedValues:expectedValueInterval:completionHandler:`](/documentation/Matter/MTRClusterOnOff/offWithEffect(with:expectedValues:expectedValueInterval:completionHandler:))

[`-  onWithParams:expectedValues:expectedValueInterval:completion:`](/documentation/Matter/MTRClusterOnOff/on(with:expectedValues:expectedValueInterval:completion:))

[`-  onWithParams:expectedValues:expectedValueInterval:completionHandler:`](/documentation/Matter/MTRClusterOnOff/on(with:expectedValues:expectedValueInterval:completionHandler:))

[`-  onWithExpectedValues:expectedValueInterval:completion:`](/documentation/Matter/MTRClusterOnOff/on(withExpectedValues:expectedValueInterval:completion:))

[`-  onWithExpectedValues:expectedValueInterval:completionHandler:`](/documentation/Matter/MTRClusterOnOff/on(withExpectedValues:expectedValueInterval:completionHandler:))

[`-  onWithRecallGlobalSceneWithParams:expectedValues:expectedValueInterval:completion:`](/documentation/Matter/MTRClusterOnOff/onWithRecallGlobalScene(with:expectedValues:expectedValueInterval:completion:))

[`-  onWithRecallGlobalSceneWithParams:expectedValues:expectedValueInterval:completionHandler:`](/documentation/Matter/MTRClusterOnOff/onWithRecallGlobalScene(with:expectedValues:expectedValueInterval:completionHandler:))

[`-  onWithRecallGlobalSceneWithExpectedValues:expectedValueInterval:completion:`](/documentation/Matter/MTRClusterOnOff/onWithRecallGlobalScene(withExpectedValues:expectedValueInterval:completion:))

[`-  onWithRecallGlobalSceneWithExpectedValues:expectedValueInterval:completionHandler:`](/documentation/Matter/MTRClusterOnOff/onWithRecallGlobalScene(withExpectedValues:expectedValueInterval:completionHandler:))

[`-  onWithTimedOffWithParams:expectedValues:expectedValueInterval:completion:`](/documentation/Matter/MTRClusterOnOff/onWithTimedOff(with:expectedValues:expectedValueInterval:completion:))

[`-  onWithTimedOffWithParams:expectedValues:expectedValueInterval:completionHandler:`](/documentation/Matter/MTRClusterOnOff/onWithTimedOff(with:expectedValues:expectedValueInterval:completionHandler:))

[`-  readAttributeAcceptedCommandListWithParams:`](/documentation/Matter/MTRClusterOnOff/readAttributeAcceptedCommandList(with:))

[`-  readAttributeAttributeListWithParams:`](/documentation/Matter/MTRClusterOnOff/readAttributeAttributeList(with:))

[`-  readAttributeClusterRevisionWithParams:`](/documentation/Matter/MTRClusterOnOff/readAttributeClusterRevision(with:))

[`-  readAttributeFeatureMapWithParams:`](/documentation/Matter/MTRClusterOnOff/readAttributeFeatureMap(with:))

[`-  readAttributeGeneratedCommandListWithParams:`](/documentation/Matter/MTRClusterOnOff/readAttributeGeneratedCommandList(with:))

[`-  readAttributeGlobalSceneControlWithParams:`](/documentation/Matter/MTRClusterOnOff/readAttributeGlobalSceneControl(with:))

[`-  readAttributeOffWaitTimeWithParams:`](/documentation/Matter/MTRClusterOnOff/readAttributeOffWaitTime(with:))

[`-  readAttributeOnOffWithParams:`](/documentation/Matter/MTRClusterOnOff/readAttributeOnOff(with:))

[`-  readAttributeOnTimeWithParams:`](/documentation/Matter/MTRClusterOnOff/readAttributeOnTime(with:))

[`-  readAttributeStartUpOnOffWithParams:`](/documentation/Matter/MTRClusterOnOff/readAttributeStartUp(with:))

[`-  toggleWithParams:expectedValues:expectedValueInterval:completion:`](/documentation/Matter/MTRClusterOnOff/toggle(with:expectedValues:expectedValueInterval:completion:))

[`-  toggleWithParams:expectedValues:expectedValueInterval:completionHandler:`](/documentation/Matter/MTRClusterOnOff/toggle(with:expectedValues:expectedValueInterval:completionHandler:))

[`-  toggleWithExpectedValues:expectedValueInterval:completion:`](/documentation/Matter/MTRClusterOnOff/toggle(withExpectedValues:expectedValueInterval:completion:))

[`-  toggleWithExpectedValues:expectedValueInterval:completionHandler:`](/documentation/Matter/MTRClusterOnOff/toggle(withExpectedValues:expectedValueInterval:completionHandler:))

[`-  writeAttributeOffWaitTimeWithValue:expectedValueInterval:`](/documentation/Matter/MTRClusterOnOff/writeAttributeOffWaitTime(withValue:expectedValueInterval:))

[`-  writeAttributeOffWaitTimeWithValue:expectedValueInterval:params:`](/documentation/Matter/MTRClusterOnOff/writeAttributeOffWaitTime(withValue:expectedValueInterval:params:))

[`-  writeAttributeOnTimeWithValue:expectedValueInterval:`](/documentation/Matter/MTRClusterOnOff/writeAttributeOnTime(withValue:expectedValueInterval:))

[`-  writeAttributeOnTimeWithValue:expectedValueInterval:params:`](/documentation/Matter/MTRClusterOnOff/writeAttributeOnTime(withValue:expectedValueInterval:params:))

[`-  writeAttributeStartUpOnOffWithValue:expectedValueInterval:`](/documentation/Matter/MTRClusterOnOff/writeAttributeStartUp(withValue:expectedValueInterval:))

[`-  writeAttributeStartUpOnOffWithValue:expectedValueInterval:params:`](/documentation/Matter/MTRClusterOnOff/writeAttributeStartUp(withValue:expectedValueInterval:params:))

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

[`MTRGenericCluster`](/documentation/Matter/MTRGenericCluster)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)