---
title: category
framework: homekit
role: symbol
role_heading: Instance Property
path: homekit/hmaccessory/category
---

# category

The category to which the accessory belongs.

## Declaration

```swift
var category: HMAccessoryCategory { get }
```

## Discussion

Discussion The accessory’s category property contains an instance of the HMAccessoryCategory class that indicates the kind of accessory, like light bulb, garage door opener, or faucet. Use this information to help users distinguish among different accessories in their environment.

## See Also

### Categorizing an accessory

- [HMAccessoryCategory](homekit/hmaccessorycategory.md)
