---
title: "init(id:state:guidanceState:)"
framework: energykit
role: symbol
role_heading: Initializer
path: "energykit/electrichvacloadevent/session-swift.struct/init(id:state:guidancestate:)"
---

# init(id:state:guidanceState:)

Creates an electrical load event session.

## Declaration

```swift
init(id: UUID, state: ElectricHVACLoadEvent.Session.State, guidanceState: ElectricHVACLoadEvent.Session.GuidanceState)
```

## Parameters

- `id`: The unique identifier for the session.
- `state`: The state of the session.
- `guidanceState`: Identifies the provided guidance and its usability by the load device
