    struct ActionsTrait

This trait provides a standardized way for a node to expose information about logical grouping
of endpoints on the node, expose information about named actions that can be performed on a
group of endpoints, expose commands to trigger such actions, and expose events to receive
feedback on the state of such actions.
- `


  ### [supportedEventTypes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV014supportedEventC0Say0aB3SDK0H0_pXpGvpZ)


  ` List of the event types that are supported by `ActionsTrait`.

  #### Declaration

  Swift

      static let supportedEventTypes: [any Event.Type]

- `


  ### [supportedCommandTypes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV016supportedCommandC0Say0aB3SDK0H0_pXpGvpZ)


  ` List of the commands that are supported by `ActionsTrait`.

  #### Declaration

  Swift

      static let supportedCommandTypes: [any Command.Type]

- `


  ### [identifier](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV10identifierSSvpZ)


  ` The trait identifier.

  #### Declaration

  Swift

      static let identifier: String

- `


  ### [metadata](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV8metadata0aB3SDK0F8MetadataVvp)


  ` Metadata about this `Trait`.

  #### Declaration

  Swift

      let metadata: TraitMetadata

- `


  ### [attributes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV10attributesAE10AttributesVvp)


  ` List of attributes for the `ActionsTrait`.

  #### Declaration

  Swift

      let attributes: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/Attributes.html

- `


  ### [init(decoder:interactionProxy:metadata:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV7decoder16interactionProxy8metadataAE0aB3SDK0F7DecoderV_AI011InteractionI0_pSgAI0F8MetadataVtKcfc)


  ` Creates a new Trait instance using data read from the given `TraitDecoder`.
  Throws
  `HomeError.parseError` when parsing fails.

  #### Declaration

  Swift

      init(decoder: TraitDecoder, interactionProxy: (any InteractionProxy)?, metadata: TraitMetadata) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The raw data representing this Trait. |
  | ` interactionProxy ` | Proxy to the Interaction Client. |
  | ` metadata ` | Metadata about this Trait. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV6encode4withy0aB3SDK0F7EncoderC_tKF)


  ` Writes this object to the given `TraitEncoder`.
  Throws `HomeError.encodingFailed` if the data could not be encoded.

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws

- `


  ### [forceRead()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV9forceReadyyYaKF)


  ` 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 `HomeError`s thrown by this call.

  #### Declaration

  Swift

      func forceRead() async throws

- `


  ### [Attributes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/Attributes.html)


  ` Attributes for the `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html`.

  #### Declaration

  Swift

      struct Attributes

- `


  ### [==(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV2eeoiySbAE_AEtFZ)


  ` Returns a Boolean value indicating whether two values are equal.

  Equality is the inverse of inequality. For any values `a` and `b`,
  `a == b` implies that `a != b` is `false`.

  #### Declaration

  Swift

      static func == (lhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait, rhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait) -> Bool

  #### Parameters

  |---|---|
  | ` lhs ` | A value to compare. |
  | ` rhs ` | Another value to compare. |

- `


  ### [hash(into:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV4hash4intoys6HasherVz_tF)


  ` Hashes the essential components of this value by feeding them into the
  given hasher.

  Implement this method to conform to the `Hashable` protocol. The
  components used for hashing must be the same as the components compared
  in your type's `==` operator implementation. Call `hasher.combine(_:)`
  with each of these components.
  Important

  In your implementation of `hash(into:)`,
  don't call `finalize()` on the `hasher` instance provided,
  or replace it with a different instance.
  Doing so may become a compile-time error in the future.

  #### Declaration

  Swift

      func hash(into hasher: inout Hasher)

- `


  ### [ActionStruct](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/ActionStruct.html)


  ` The details of a single action.

  #### Declaration

  Swift

      struct ActionStruct

- `


  ### [EndpointListStruct](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/EndpointListStruct.html)


  ` The details of a single endpoint list, a set of endpoints that have some logical relation.

  #### Declaration

  Swift

      struct EndpointListStruct

- `


  ### [StateChangedEvent](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/StateChangedEvent.html)


  ` The state of an action changed during execution of a command, and the most recent command
  using the `actionId` populated the `invokeId` attribute.

  #### Declaration

  Swift

      struct StateChangedEvent

- `


  ### [ActionFailedEvent](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/ActionFailedEvent.html)


  ` Indicates that the action failed to complete as intended.

  #### Declaration

  Swift

      struct ActionFailedEvent

- `


  ### [supportsInstantActionCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV28supportsInstantActionCommandSbvp)


  ` Whether the device supports the `instantAction` command for this trait.

  #### Declaration

  Swift

      var supportsInstantActionCommand: Bool { get }

- `


  ### [instantAction(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV13instantAction8actionID20optionalArgsProviderys6UInt16V_yAE07InstantH7CommandV08OptionalL0CYbcSgtYaKF)


  ` Trigger an action (state change) on endpoints in an asynchronous manner.

  #### Declaration

  Swift

      func instantAction(actionID: UInt16, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.InstantActionCommand.OptionalArgs) -> Void)? = nil) async throws

- `


  ### [instantActionBatchable(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV22instantActionBatchable8actionID20optionalArgsProvider0aB3SDK0I7CommandVyytGs6UInt16V_yAE07InstanthP0V08OptionalM0CcSgtKF)


  ` The batchable version of instantAction command above.
  See also
  instantAction

  #### Declaration

  Swift

      func instantActionBatchable(actionID: UInt16, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.InstantActionCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [supportsInstantActionWithTransitionCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV42supportsInstantActionWithTransitionCommandSbvp)


  ` Whether the device supports the `instantActionWithTransition` command for this trait.

  #### Declaration

  Swift

      var supportsInstantActionWithTransitionCommand: Bool { get }

- `


  ### [instantActionWithTransition(actionID:transitionTime:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV27instantActionWithTransition8actionID14transitionTime20optionalArgsProviderys6UInt16V_AKyAE07InstanthiJ7CommandV08OptionalP0CYbcSgtYaKF)


  ` Trigger an action (state change) on endpoints, specifying how long the state change should
  take.

  #### Declaration

  Swift

      func instantActionWithTransition(actionID: UInt16, transitionTime: UInt16, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.InstantActionWithTransitionCommand.OptionalArgs) -> Void)? = nil) async throws

  #### Parameters

  |---|---|
  | ` transitionTime ` | The transition time (in 0.1 seconds). |

- `


  ### [instantActionWithTransitionBatchable(actionID:transitionTime:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV36instantActionWithTransitionBatchable8actionID14transitionTime20optionalArgsProvider0aB3SDK0K7CommandVyytGs6UInt16V_AOyAE07InstanthijT0V08OptionalQ0CcSgtKF)


  ` The batchable version of instantActionWithTransition command above.
  See also
  instantActionWithTransition

  #### Declaration

  Swift

      func instantActionWithTransitionBatchable(actionID: UInt16, transitionTime: UInt16, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.InstantActionWithTransitionCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [supportsStartActionCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV26supportsStartActionCommandSbvp)


  ` Whether the device supports the `startAction` command for this trait.

  #### Declaration

  Swift

      var supportsStartActionCommand: Bool { get }

- `


  ### [startAction(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11startAction8actionID20optionalArgsProviderys6UInt16V_yAE05StartH7CommandV08OptionalL0CYbcSgtYaKF)


  ` Start an action.

  #### Declaration

  Swift

      func startAction(actionID: UInt16, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.StartActionCommand.OptionalArgs) -> Void)? = nil) async throws

- `


  ### [startActionBatchable(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV20startActionBatchable8actionID20optionalArgsProvider0aB3SDK0I7CommandVyytGs6UInt16V_yAE05StarthP0V08OptionalM0CcSgtKF)


  ` The batchable version of startAction command above.
  See also
  startAction

  #### Declaration

  Swift

      func startActionBatchable(actionID: UInt16, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.StartActionCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [supportsStartActionWithDurationCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV38supportsStartActionWithDurationCommandSbvp)


  ` Whether the device supports the `startActionWithDuration` command for this trait.

  #### Declaration

  Swift

      var supportsStartActionWithDurationCommand: Bool { get }

- `


  ### [startActionWithDuration(actionID:duration:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV23startActionWithDuration8actionID8duration20optionalArgsProviderys6UInt16V_s6UInt32VyAE05StarthiJ7CommandV08OptionalO0CYbcSgtYaKF)


  ` Start an action, allow it to run for a specified amount of time, after which it stops.

  #### Declaration

  Swift

      func startActionWithDuration(actionID: UInt16, duration: UInt32, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.StartActionWithDurationCommand.OptionalArgs) -> Void)? = nil) async throws

  #### Parameters

  |---|---|
  | ` duration ` | The requested duration in seconds. |

- `


  ### [startActionWithDurationBatchable(actionID:duration:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV32startActionWithDurationBatchable8actionID8duration20optionalArgsProvider0aB3SDK0K7CommandVyytGs6UInt16V_s6UInt32VyAE05StarthijS0V08OptionalP0CcSgtKF)


  ` The batchable version of startActionWithDuration command above.
  See also
  startActionWithDuration

  #### Declaration

  Swift

      func startActionWithDurationBatchable(actionID: UInt16, duration: UInt32, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.StartActionWithDurationCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [supportsStopActionCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV25supportsStopActionCommandSbvp)


  ` Whether the device supports the `stopAction` command for this trait.

  #### Declaration

  Swift

      var supportsStopActionCommand: Bool { get }

- `


  ### [stopAction(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV10stopAction8actionID20optionalArgsProviderys6UInt16V_yAE04StopH7CommandV08OptionalL0CYbcSgtYaKF)


  ` Stop the ongoing action.

  #### Declaration

  Swift

      func stopAction(actionID: UInt16, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.StopActionCommand.OptionalArgs) -> Void)? = nil) async throws

- `


  ### [stopActionBatchable(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV19stopActionBatchable8actionID20optionalArgsProvider0aB3SDK0I7CommandVyytGs6UInt16V_yAE04StophP0V08OptionalM0CcSgtKF)


  ` The batchable version of stopAction command above.
  See also
  stopAction

  #### Declaration

  Swift

      func stopActionBatchable(actionID: UInt16, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.StopActionCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [supportsPauseActionCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV26supportsPauseActionCommandSbvp)


  ` Whether the device supports the `pauseAction` command for this trait.

  #### Declaration

  Swift

      var supportsPauseActionCommand: Bool { get }

- `


  ### [pauseAction(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11pauseAction8actionID20optionalArgsProviderys6UInt16V_yAE05PauseH7CommandV08OptionalL0CYbcSgtYaKF)


  ` Pause an ongoing action.

  #### Declaration

  Swift

      func pauseAction(actionID: UInt16, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.PauseActionCommand.OptionalArgs) -> Void)? = nil) async throws

- `


  ### [pauseActionBatchable(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV20pauseActionBatchable8actionID20optionalArgsProvider0aB3SDK0I7CommandVyytGs6UInt16V_yAE05PausehP0V08OptionalM0CcSgtKF)


  ` The batchable version of pauseAction command above.
  See also
  pauseAction

  #### Declaration

  Swift

      func pauseActionBatchable(actionID: UInt16, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.PauseActionCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [supportsPauseActionWithDurationCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV38supportsPauseActionWithDurationCommandSbvp)


  ` Whether the device supports the `pauseActionWithDuration` command for this trait.

  #### Declaration

  Swift

      var supportsPauseActionWithDurationCommand: Bool { get }

- `


  ### [pauseActionWithDuration(actionID:duration:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV23pauseActionWithDuration8actionID8duration20optionalArgsProviderys6UInt16V_s6UInt32VyAE05PausehiJ7CommandV08OptionalO0CYbcSgtYaKF)


  ` Pause an ongoing action for a specified amount of time, after which it resumes.

  #### Declaration

  Swift

      func pauseActionWithDuration(actionID: UInt16, duration: UInt32, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.PauseActionWithDurationCommand.OptionalArgs) -> Void)? = nil) async throws

  #### Parameters

  |---|---|
  | ` duration ` | The requested duration in seconds. |

- `


  ### [pauseActionWithDurationBatchable(actionID:duration:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV32pauseActionWithDurationBatchable8actionID8duration20optionalArgsProvider0aB3SDK0K7CommandVyytGs6UInt16V_s6UInt32VyAE05PausehijS0V08OptionalP0CcSgtKF)


  ` The batchable version of pauseActionWithDuration command above.
  See also
  pauseActionWithDuration

  #### Declaration

  Swift

      func pauseActionWithDurationBatchable(actionID: UInt16, duration: UInt32, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.PauseActionWithDurationCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [supportsResumeActionCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV27supportsResumeActionCommandSbvp)


  ` Whether the device supports the `resumeAction` command for this trait.

  #### Declaration

  Swift

      var supportsResumeActionCommand: Bool { get }

- `


  ### [resumeAction(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV12resumeAction8actionID20optionalArgsProviderys6UInt16V_yAE06ResumeH7CommandV08OptionalL0CYbcSgtYaKF)


  ` Resume a paused action.

  #### Declaration

  Swift

      func resumeAction(actionID: UInt16, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.ResumeActionCommand.OptionalArgs) -> Void)? = nil) async throws

- `


  ### [resumeActionBatchable(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV21resumeActionBatchable8actionID20optionalArgsProvider0aB3SDK0I7CommandVyytGs6UInt16V_yAE06ResumehP0V08OptionalM0CcSgtKF)


  ` The batchable version of resumeAction command above.
  See also
  resumeAction

  #### Declaration

  Swift

      func resumeActionBatchable(actionID: UInt16, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.ResumeActionCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [supportsEnableActionCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV27supportsEnableActionCommandSbvp)


  ` Whether the device supports the `enableAction` command for this trait.

  #### Declaration

  Swift

      var supportsEnableActionCommand: Bool { get }

- `


  ### [enableAction(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV12enableAction8actionID20optionalArgsProviderys6UInt16V_yAE06EnableH7CommandV08OptionalL0CYbcSgtYaKF)


  ` Enable an action.

  #### Declaration

  Swift

      func enableAction(actionID: UInt16, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.EnableActionCommand.OptionalArgs) -> Void)? = nil) async throws

- `


  ### [enableActionBatchable(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV21enableActionBatchable8actionID20optionalArgsProvider0aB3SDK0I7CommandVyytGs6UInt16V_yAE06EnablehP0V08OptionalM0CcSgtKF)


  ` The batchable version of enableAction command above.
  See also
  enableAction

  #### Declaration

  Swift

      func enableActionBatchable(actionID: UInt16, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.EnableActionCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [supportsEnableActionWithDurationCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV39supportsEnableActionWithDurationCommandSbvp)


  ` Whether the device supports the `enableActionWithDuration` command for this trait.

  #### Declaration

  Swift

      var supportsEnableActionWithDurationCommand: Bool { get }

- `


  ### [enableActionWithDuration(actionID:duration:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV24enableActionWithDuration8actionID8duration20optionalArgsProviderys6UInt16V_s6UInt32VyAE06EnablehiJ7CommandV08OptionalO0CYbcSgtYaKF)


  ` Enable an action for a specified amount of time, then disable it.

  #### Declaration

  Swift

      func enableActionWithDuration(actionID: UInt16, duration: UInt32, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.EnableActionWithDurationCommand.OptionalArgs) -> Void)? = nil) async throws

  #### Parameters

  |---|---|
  | ` duration ` | The requested duration in seconds. |

- `


  ### [enableActionWithDurationBatchable(actionID:duration:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV33enableActionWithDurationBatchable8actionID8duration20optionalArgsProvider0aB3SDK0K7CommandVyytGs6UInt16V_s6UInt32VyAE06EnablehijS0V08OptionalP0CcSgtKF)


  ` The batchable version of enableActionWithDuration command above.
  See also
  enableActionWithDuration

  #### Declaration

  Swift

      func enableActionWithDurationBatchable(actionID: UInt16, duration: UInt32, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.EnableActionWithDurationCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [supportsDisableActionCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV28supportsDisableActionCommandSbvp)


  ` Whether the device supports the `disableAction` command for this trait.

  #### Declaration

  Swift

      var supportsDisableActionCommand: Bool { get }

- `


  ### [disableAction(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV13disableAction8actionID20optionalArgsProviderys6UInt16V_yAE07DisableH7CommandV08OptionalL0CYbcSgtYaKF)


  ` Disable an action.

  #### Declaration

  Swift

      func disableAction(actionID: UInt16, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.DisableActionCommand.OptionalArgs) -> Void)? = nil) async throws

- `


  ### [disableActionBatchable(actionID:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV22disableActionBatchable8actionID20optionalArgsProvider0aB3SDK0I7CommandVyytGs6UInt16V_yAE07DisablehP0V08OptionalM0CcSgtKF)


  ` The batchable version of disableAction command above.
  See also
  disableAction

  #### Declaration

  Swift

      func disableActionBatchable(actionID: UInt16, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.DisableActionCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [supportsDisableActionWithDurationCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV40supportsDisableActionWithDurationCommandSbvp)


  ` Whether the device supports the `disableActionWithDuration` command for this trait.

  #### Declaration

  Swift

      var supportsDisableActionWithDurationCommand: Bool { get }

- `


  ### [disableActionWithDuration(actionID:duration:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV25disableActionWithDuration8actionID8duration20optionalArgsProviderys6UInt16V_s6UInt32VyAE07DisablehiJ7CommandV08OptionalO0CYbcSgtYaKF)


  ` Disable an action for a specified amount of time, then enable it.

  #### Declaration

  Swift

      func disableActionWithDuration(actionID: UInt16, duration: UInt32, optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.DisableActionWithDurationCommand.OptionalArgs) -> Void)? = nil) async throws

  #### Parameters

  |---|---|
  | ` duration ` | The requested duration in seconds. |

- `


  ### [disableActionWithDurationBatchable(actionID:duration:optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait#/s:15GoogleHomeTypes6MatterO12ActionsTraitV34disableActionWithDurationBatchable8actionID8duration20optionalArgsProvider0aB3SDK0K7CommandVyytGs6UInt16V_s6UInt32VyAE07DisablehijS0V08OptionalP0CcSgtKF)


  ` The batchable version of disableActionWithDuration command above.
  See also
  disableActionWithDuration

  #### Declaration

  Swift

      func disableActionWithDurationBatchable(actionID: UInt16, duration: UInt32, optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.ActionsTrait.DisableActionWithDurationCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<Void>

- `


  ### [ActionErrorEnum](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/ActionErrorEnum.html)


  ` Error types.

  #### Declaration

  Swift

      enum ActionErrorEnum

- `


  ### [ActionStateEnum](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/ActionStateEnum.html)


  ` Action state.

  #### Declaration

  Swift

      enum ActionStateEnum

- `


  ### [ActionTypeEnum](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/ActionTypeEnum.html)


  ` Action types.

  #### Declaration

  Swift

      enum ActionTypeEnum

- `


  ### [EndpointListTypeEnum](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/EndpointListTypeEnum.html)


  ` Type of endpoint list.

  #### Declaration

  Swift

      enum EndpointListTypeEnum

- `


  ### [CommandBits](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits.html)


  ` Bitmap indicating which commands are supported.

  #### Declaration

  Swift

      struct CommandBits