<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "EnergyKit",
  "identifier" : "/documentation/EnergyKit/ElectricHVACLoadEvent/deviceName",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "EnergyKit"
    ],
    "preciseIdentifier" : "s:9EnergyKit21ElectricHVACLoadEventV10deviceNameSSvp"
  },
  "title" : "deviceName"
}
-->

# deviceName

A human-readable name for the device.

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

## 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 <doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.developer.energykit.loadevents-experience>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)