---
title: id
framework: energykit
role: symbol
role_heading: Instance Property
path: energykit/electricalloaddevice/id
---

# id

A unique, stable identifier for a device.

## Declaration

```swift
let id: String
```

## Discussion

Discussion Provide this identifier when you create an ElectricalLoadDevice instance for submitting electrical load events. The EnergyKit framework uses this identifier to associate events with devices and generate device-specific insights. The system expects the value to be a maximum of 64 UTF-8 characters, such as a UUID. Ensure the identifier: Isn’t empty, and is less than or equal to 64 characters Uses only alphanumeric, space, hyphen, and apostrophe characters Starts and ends with an alphanumeric character

## See Also

### Getting device information

- [name](energykit/electricalloaddevice/name.md)
- [type](energykit/electricalloaddevice/type.md)
- [ElectricalLoadDevice.DeviceType](energykit/electricalloaddevice/devicetype.md)
