---
title: "readAttributePowerMode(withClusterStateCache:endpoint:queue:completion:)"
framework: matter
role: symbol
role_heading: Type Method
path: "matter/mtrbaseclusterelectricalpowermeasurement/readattributepowermode(withclusterstatecache:endpoint:queue:completion:)"
---

# readAttributePowerMode(withClusterStateCache:endpoint:queue:completion:)

## Declaration

```swift
class func readAttributePowerMode(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t, completion: @escaping @Sendable (NSNumber?, (any Error)?) -> Void)
```

```swift
class func readAttributePowerMode(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
```
