---
title: ElectricalLoadDevice
framework: energykit
role: symbol
role_heading: Structure
path: energykit/electricalloaddevice
---

# ElectricalLoadDevice

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

## Declaration

```swift
struct ElectricalLoadDevice
```

## Mentioned in

Providing charging history for electric vehicles

## Overview

Overview This structure represents the device tied to load events you submit. The device’s type can be an electric vehicle or an HVAC device. For an example that uses an electrical load device, see Optimizing home electricity usage.

## Topics

### Creating a device identifier

- [init(id:name:type:)](energykit/electricalloaddevice/init(id:name:type:).md)

### Getting device information

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

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Device identification

- [ElectricalLoadEventProtocol](energykit/electricalloadeventprotocol.md)
