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

# ElectricalLoadDevice

A type that identifies an electrical load device for event submission.

```
struct ElectricalLoadDevice
```

## Overview

This structure represents the device tied to load events you submit. The device’s [`type`](/documentation/EnergyKit/ElectricalLoadDevice/type) can be an electric vehicle or an HVAC device.

For an example that uses an electrical load device, see [Optimizing home electricity usage](/documentation/EnergyKit/optimizing-home-electricity-usage).

## Topics

### Creating a device identifier

[`init(id: String, name: String, type: ElectricalLoadDevice.DeviceType)`](/documentation/EnergyKit/ElectricalLoadDevice/init(id:name:type:))

Initializes an electrical load device identifier.

### Getting device information

[`let id: String`](/documentation/EnergyKit/ElectricalLoadDevice/id)

A unique, stable identifier for a device.

[`let name: String`](/documentation/EnergyKit/ElectricalLoadDevice/name)

A human-readable name for the device.

[`let type: ElectricalLoadDevice.DeviceType`](/documentation/EnergyKit/ElectricalLoadDevice/type)

The type of electrical load device.

[`enum DeviceType`](/documentation/EnergyKit/ElectricalLoadDevice/DeviceType)

The type of electrical load device.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`Encodable`](/documentation/Swift/Encodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Decodable`](/documentation/Swift/Decodable)

---

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)