# OperationalStateEnum

    enum OperationalStateEnum

The operational states.
- `


  ### [stopped](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/OperationalStateTrait/OperationalStateEnum#/s:15GoogleHomeTypes6MatterO21OperationalStateTraitV0eF4EnumO7stoppedyA2GmF)


  ` The device is stopped.

  #### Declaration

  Swift

      case stopped

- `


  ### [running](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/OperationalStateTrait/OperationalStateEnum#/s:15GoogleHomeTypes6MatterO21OperationalStateTraitV0eF4EnumO7runningyA2GmF)


  ` The device is operating.

  #### Declaration

  Swift

      case running

- `


  ### [paused](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/OperationalStateTrait/OperationalStateEnum#/s:15GoogleHomeTypes6MatterO21OperationalStateTraitV0eF4EnumO6pausedyA2GmF)


  ` The device has paused during an operation.

  #### Declaration

  Swift

      case paused

- `


  ### [error](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/OperationalStateTrait/OperationalStateEnum#/s:15GoogleHomeTypes6MatterO21OperationalStateTraitV0eF4EnumO5erroryA2GmF)


  ` The device is in an error state.

  #### Declaration

  Swift

      case error

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/OperationalStateTrait/OperationalStateEnum#/s:15GoogleHomeTypes6MatterO21OperationalStateTraitV0eF4EnumO8rawValueAGSgs6UInt64V_tcfc)


  ` Creates a new instance with the specified raw value.

  If there is no value of the type that corresponds with the specified raw
  value, this initializer returns `nil`. For example:

      enum PaperSize: String {
          case A4, A5, Letter, Legal
      }

      print(PaperSize(rawValue: "Legal"))
      // Prints "Optional(PaperSize.Legal)"

      print(PaperSize(rawValue: "Tabloid"))
      // Prints "nil"

  #### Declaration

  Swift

      init?(rawValue: UInt64)

  #### Parameters

  |---|---|
  | ` rawValue ` | The raw value to use for the new instance. |