struct EnergyEvseTraitThis trait is for devices that provide electric vehicle supply equipment (EVSE) functionality.
- 
                  
                  List of the event types that are supported by EnergyEvseTrait.DeclarationSwift static let supportedEventTypes: [any Event.Type]
- 
                  
                  List of the commands that are supported by EnergyEvseTrait.DeclarationSwift static let supportedCommandTypes: [any Command.Type]
- 
                  
                  The trait identifier. DeclarationSwift static let identifier: String
- 
                  
                  Metadata about this Trait.DeclarationSwift let metadata: TraitMetadata
- 
                  
                  List of attributes for the EnergyEvseTrait.DeclarationSwift let attributes: Matter.EnergyEvseTrait.Attributes
- 
                  
                  Creates a new Trait instance using data read from the given TraitDecoder.Throws HomeError.parseErrorwhen parsing fails.DeclarationSwift init(decoder: TraitDecoder, interactionProxy: (any InteractionProxy)?, metadata: TraitMetadata) throwsParametersdecoderThe raw data representing this Trait. interactionProxyProxy to the Interaction Client. metadataMetadata about this Trait. 
- 
                  
                  Writes this object to the given TraitEncoder. ThrowsHomeError.encodingFailedif the data could not be encoded.DeclarationSwift func encode(with encoder: TraitEncoder) throws
- 
                  
                  This API provides the ability to invalidate state retrieved through subscriptions to the target device in the cases where state is not being reported correctly, either intentionally (e.g attributes in Matter traits with the “C” quality) or unintentionally due to poor implementations. When successful, this API will result in a forced read of the convening scope as specified by the sub-class and return the result through existing Trait subscriptions if present and active. This API is to be used sparingly as it can impact the performance and battery life of the target device. As such, this API may be throttled by the platform. Callers SHALL be prepared to deal with HomeErrors thrown by this call.DeclarationSwift func forceRead() async throws
- 
                  
                  Attributes for the EnergyEvseTrait.DeclarationSwift struct Attributes
- 
                  
                  Returns a Boolean value indicating whether two values are equal. Equality is the inverse of inequality. For any values aandb,a == bimplies thata != bisfalse.ParameterslhsA value to compare. rhsAnother value to compare. 
- 
                  
                  Hashes the essential components of this value by feeding them into the given hasher. Implement this method to conform to the Hashableprotocol. The components used for hashing must be the same as the components compared in your type’s==operator implementation. Callhasher.combine(_:)with each of these components.Important In your implementation of hash(into:), don’t callfinalize()on thehasherinstance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.DeclarationSwift func hash(into hasher: inout Hasher)
- 
                  
                  A single user-specified charging target for an electric vehicle. DeclarationSwift struct ChargingTargetStruct
- 
                  
                  A set of user-specified charging targets for an electric vehicle for a set of specified days. DeclarationSwift struct ChargingTargetScheduleStruct
- 
                  
                  Notification that the electric vehicle has connected to the EVSE. DeclarationSwift struct EVConnectedEvent
- 
                  
                  Notification that the electric vehicle has been removed from the EVSE. DeclarationSwift struct EVNotDetectedEvent
- 
                  
                  Notification that the electric vehicle has started charging or discharging. DeclarationSwift struct EnergyTransferStartedEvent
- 
                  
                  Notification that the electric vehicle has stopped charging or discharging. DeclarationSwift struct EnergyTransferStoppedEvent
- 
                  
                  Notification of a fault in the EVSE. The supplyStateattribute gets set toDisabledErrorand the type of fault detected by the EVSE is stored in thefaultStateattribute.DeclarationSwift struct FaultEvent
- 
                  
                  Notification that a radio frequency identification card (RFID) has been read. This allows a controller to register the card ID and use the ID to authenticate the user and start the charging session. DeclarationSwift struct RfidEvent
- 
                  
                  Whether the device supports the disablecommand for this trait.DeclarationSwift var supportsDisableCommand: Bool { get }
- 
                  
                  Disables the EVSE from charging and discharging. DeclarationSwift func disable() async throws
- 
                  
                  The batchable version of disable command above. See also disableDeclarationSwift func disableBatchable() throws -> BatchableCommand<Void>
- 
                  
                  Whether the device supports the enableChargingcommand for this trait.DeclarationSwift var supportsEnableChargingCommand: Bool { get }
- 
                  
                  Enables the EVSE to charge an electric vehicle. DeclarationSwift func enableCharging(chargingEnabledUntil: UInt32?, minimumChargeCurrent: Int64, maximumChargeCurrent: Int64) async throwsParameterschargingEnabledUntilThe time, in UTC, when charging becomes disabled. If the value is in the past, charging is disabled. If the value is null, charging is permanently enabled. minimumChargeCurrentThe minimum current, in milliamps, that the EVSE can deliver to the electric vehicle. maximumChargeCurrentThe maximum current, in milliamps, that the EVSE can deliver to the electric vehicle. 
- 
                  
                  The batchable version of enableCharging command above. See also enableChargingDeclarationSwift func enableChargingBatchable(chargingEnabledUntil: UInt32?, minimumChargeCurrent: Int64, maximumChargeCurrent: Int64) throws -> BatchableCommand<Void>
- 
                  
                  Whether the device supports the enableDischargingcommand for this trait.DeclarationSwift var supportsEnableDischargingCommand: Bool { get }
- 
                  
                  Enables the EVSE to discharge an electric vehicle. DeclarationSwift func enableDischarging(dischargingEnabledUntil: UInt32?, maximumDischargeCurrent: Int64) async throwsParametersdischargingEnabledUntilThe time, in UTC, when discharging becomes disabled. If the value is in the past, discharging is disabled. If the value is null, discharging is permanently enabled. maximumDischargeCurrentThe maximum current, in milliamps, that the EVSE can receive from the electric vehicle. 
- 
                  
                  The batchable version of enableDischarging command above. See also enableDischargingDeclarationSwift func enableDischargingBatchable(dischargingEnabledUntil: UInt32?, maximumDischargeCurrent: Int64) throws -> BatchableCommand<Void>
- 
                  
                  Whether the device supports the startDiagnosticscommand for this trait.DeclarationSwift var supportsStartDiagnosticsCommand: Bool { get }
- 
                  
                  Puts the EVSE into self-diagnostics mode as long as the supplyStateattribute is in theDisabledstate when the command is sent.DeclarationSwift func startDiagnostics() async throws
- 
                  
                  The batchable version of startDiagnostics command above. See also startDiagnosticsDeclarationSwift func startDiagnosticsBatchable() throws -> BatchableCommand<Void>
- 
                  
                  Whether the device supports the setTargetscommand for this trait.DeclarationSwift var supportsSetTargetsCommand: Bool { get }
- 
                  
                  Allows a client to set user-specified charging targets. DeclarationSwift func setTargets(chargingTargetSchedules: [Matter.EnergyEvseTrait.ChargingTargetScheduleStruct]) async throwsParameterschargingTargetSchedulesA list of up to seven sets of daily charging targets and their associated days of the week. Each day of the week can be included in only a single chargingTargetSchedulein this field.
- 
                  
                  The batchable version of setTargets command above. See also setTargetsDeclarationSwift func setTargetsBatchable(chargingTargetSchedules: [Matter.EnergyEvseTrait.ChargingTargetScheduleStruct]) throws -> BatchableCommand<Void>
- 
                  
                  Whether the device supports the getTargetscommand for this trait.DeclarationSwift var supportsGetTargetsCommand: Bool { get }
- 
                  
                  Allows a client to retrieve the current set of charging targets. DeclarationSwift func getTargets() async throws -> Matter.EnergyEvseTrait.GetTargetsCommandResponseReturn ValueThe result of the GetTargetscommand.
- 
                  
                  The batchable version of getTargets command above. See also getTargetsDeclarationSwift func getTargetsBatchable() throws -> BatchableCommand<Matter.EnergyEvseTrait.GetTargetsCommandResponse>
- 
                  
                  Whether the device supports the clearTargetscommand for this trait.DeclarationSwift var supportsClearTargetsCommand: Bool { get }
- 
                  
                  Allows a client to clear all stored charging targets. DeclarationSwift func clearTargets() async throws
- 
                  
                  The batchable version of clearTargets command above. See also clearTargetsDeclarationSwift func clearTargetsBatchable() throws -> BatchableCommand<Void>
- 
                  
                  The reason for stopping the energy transfer. DeclarationSwift enum EnergyTransferStoppedReasonEnum
- 
                  
                  The fault state of the EVSE. DeclarationSwift enum FaultStateEnum
- 
                  
                  The state of the electric vehicle. DeclarationSwift enum StateEnum
- 
                  
                  Whether the electric vehicle is allowed to charge or disharge. DeclarationSwift enum SupplyStateEnum
- 
                  
                  EnergyEvse cluster FeatureMap. DeclarationSwift struct Feature
- 
                  
                  The day of the week. DeclarationSwift struct TargetDayOfWeekBitmap