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

# identifier

A unique identifier for the accessory.

## Declaration

```swift
var identifier: UUID { get }
```

## Discussion

Discussion An identifier is stable for as long as an accessory is in a home. If an accessory is removed from a home, it will get a new identifier when it is next added to a home.

## See Also

### Identifying an Accessory

- [name](homekit/hmaccessory/name.md)
- [updateName(_:completionHandler:)](homekit/hmaccessory/updatename(_:completionhandler:).md)
- [uniqueIdentifier](homekit/hmaccessory/uniqueidentifier.md)
