---
title: "readAttributeOccupancy(completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterthermostat/readattributeoccupancy(completion:)"
---

# readAttributeOccupancy(completion:)

## Declaration

```swift
func readAttributeOccupancy(completion: @escaping @Sendable (NSNumber?, (any Error)?) -> Void)
```

```swift
func readAttributeOccupancy() async throws -> NSNumber
```
