# FanModeEnum

    enum FanModeEnum

Specifies the current fan mode.
- `


  ### [off](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/FanModeEnum#/s:15GoogleHomeTypes6MatterO15FanControlTraitV0E8ModeEnumO3offyA2GmF)


  ` The fan is off. Selecting this mode sets the `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV14percentSettings5UInt8VSgvp` and
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV14percentCurrents5UInt8VSgvp` attributes and, if present, the
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV12speedSettings5UInt8VSgvp` and `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV12speedCurrents5UInt8VSgvp`
  attributes to 0 (zero).

  #### Declaration

  Swift

      case off

- `


  ### [low](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/FanModeEnum#/s:15GoogleHomeTypes6MatterO15FanControlTraitV0E8ModeEnumO3lowyA2GmF)


  ` The fan is using a low speed. Selecting this mode sets the attributes
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV12speedSettings5UInt8VSgvp`, `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV12speedCurrents5UInt8VSgvp`,
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV14percentSettings5UInt8VSgvp` and, `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV14percentCurrents5UInt8VSgvp`
  to a single value in the corresponding range.

  #### Declaration

  Swift

      case low

- `


  ### [medium](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/FanModeEnum#/s:15GoogleHomeTypes6MatterO15FanControlTraitV0E8ModeEnumO6mediumyA2GmF)


  ` The fan is using a medium speed. Selecting this mode sets the attributes
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV12speedSettings5UInt8VSgvp`, `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV12speedCurrents5UInt8VSgvp`,
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV14percentSettings5UInt8VSgvp` and, `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV14percentCurrents5UInt8VSgvp`
  to a single value in the corresponding range.

  #### Declaration

  Swift

      case medium

- `


  ### [high](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/FanModeEnum#/s:15GoogleHomeTypes6MatterO15FanControlTraitV0E8ModeEnumO4highyA2GmF)


  ` The fan is using a high speed. Selecting this mode sets the attributes
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV12speedSettings5UInt8VSgvp`, `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV12speedCurrents5UInt8VSgvp`,
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV14percentSettings5UInt8VSgvp` and, `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV14percentCurrents5UInt8VSgvp`
  to a single value in the corresponding range.

  #### Declaration

  Swift

      case high

- `


  ### [on](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/FanModeEnum#/s:15GoogleHomeTypes6MatterO15FanControlTraitV0E8ModeEnumO2onyA2GmF)


  ` The fan is on.

  #### Declaration

  Swift

      case on

- `


  ### [auto](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/FanModeEnum#/s:15GoogleHomeTypes6MatterO15FanControlTraitV0E8ModeEnumO4autoyA2GmF)


  ` The fan is using an auto speed. Selecting this mode sets the
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV14percentSettings5UInt8VSgvp` and, if present,
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/Attributes.html#/s:15GoogleHomeTypes6MatterO15FanControlTraitV10AttributesV12speedSettings5UInt8VSgvp` attributes to null.

  #### Declaration

  Swift

      case auto

- `


  ### [smart](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/FanModeEnum#/s:15GoogleHomeTypes6MatterO15FanControlTraitV0E8ModeEnumO5smartyA2GmF)


  ` The Smart mode for the fan.

  #### Declaration

  Swift

      case smart

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/FanControlTrait/FanModeEnum#/s:15GoogleHomeTypes6MatterO15FanControlTraitV0E8ModeEnumO8rawValueAGSgs6UInt64V_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. |