---
title: deviceName
framework: energykit
role: symbol
role_heading: Instance Property
path: energykit/electrichvacloadevent/devicename
---

# deviceName

A human-readable name for the device.

## Declaration

```swift
var deviceName: String { get }
```

## Discussion

Discussion Set a String value that meets these criteria: Less than or equal to 250 UTF-16 characters Contains only alphanumeric, whitespace, punctuation, or symbol characters. Isn’t the empty String The EnergyKit framework alters the value to abide by these rules, if necessary. The Home app incorporates the device by this name when you adopt the EnergyKit LoadEvents Entitlement.

## See Also

### Getting device information

- [deviceID](energykit/electrichvacloadevent/deviceid.md)
