---
title: "writeAttributeSwitchActions(withValue:expectedValueInterval:params:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusteronoffswitchconfiguration/writeattributeswitchactions(withvalue:expectedvalueinterval:params:)"
---

# writeAttributeSwitchActions(withValue:expectedValueInterval:params:)

## Declaration

```swift
func writeAttributeSwitchActions(withValue dataValueDictionary: [String : Any], expectedValueInterval expectedValueIntervalMs: NSNumber, params: MTRWriteParams?)
```
