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

# ElectricityGuidance.Value

A normalized weighting value associated with a period of time,
describing when to shift or reduce electricity use.

```
struct Value
```

## Topics

### Creating a date interval

[`init(interval: DateInterval, rating: Double)`](/documentation/EnergyKit/ElectricityGuidance/Value/init(interval:rating:))

Creates an interval with the specified date and rating.

[`let interval: DateInterval`](/documentation/EnergyKit/ElectricityGuidance/Value/interval)

The interval to which the electrical guidance applies.

[`let rating: Double`](/documentation/EnergyKit/ElectricityGuidance/Value/rating)

The relative impact of using electricity during this period of time.

### Decoding

## Relationships

### Conforms To

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

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

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

[`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)