---
title: HMAccessoryCategory
framework: homekit
role: symbol
role_heading: Class
path: homekit/hmaccessorycategory
---

# HMAccessoryCategory

A category for a HomeKit accessory.

## Declaration

```swift
class HMAccessoryCategory
```

## Overview

Overview A category represents a class of devices, like light bulbs or outlets. You can use a category to help users identify the types of accessories they’re browsing. For example, when adding a lamp and a fan to a home, users might not be able to distinguish these accessories if you display only the manufacturer name and model number for each accessory. To improve the user experience, you can use the category information associated with each accessory to help the user understand which accessory is the lamp and which is the fan.

## Topics

### Reading the category type

- [categoryType](homekit/hmaccessorycategory/categorytype.md)
- [Accessory Category Types](homekit/accessory-category-types.md)

### Describing the category

- [localizedDescription](homekit/hmaccessorycategory/localizeddescription.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Categorizing an accessory

- [category](homekit/hmaccessory/category.md)
