    struct CurrentConditions

The current weather conditions.
- `


  ### [structField(id:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV11structField2id0aB3SDK0I0_pSgs6UInt32V_tFZ)


  ` Returns the field corresponding to the given field ID.

  #### Declaration

  Swift

      static func structField(id: UInt32) -> (any Field)?

- `


  ### [temperature](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV11temperatures5Int32VSgvp)


  ` Temp in centi-celsius (celsius scale with resolution of 0.01C). For example, use 2570 for 25.7C.

  #### Declaration

  Swift

      let temperature: Int32?

- `


  ### [humidityPercent](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV15humidityPercents5Int32VSgvp)


  ` Current humidity as a percentage (\[0-100\]).

  #### Declaration

  Swift

      let humidityPercent: Int32?

- `


  ### [airQualityIndex](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV15airQualityIndexs5Int32VSgvp)


  ` Air Quality Index, not yet supported.

  #### Declaration

  Swift

      let airQualityIndex: Int32?

- `


  ### [precipitationType](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV17precipitationTypeAE013PrecipitationI0OSgvp)


  ` Type of current precipitation.

  #### Declaration

  Swift

      let precipitationType: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/PrecipitationType.html?

- `


  ### [chanceOfPrecipitationType](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV25chanceOfPrecipitationTypeAE0jK0OSgvp)


  ` The type of precipitation that has a chance of occurring, corresponding to
  `precipitation_chance_percent`.

  #### Declaration

  Swift

      let chanceOfPrecipitationType: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/PrecipitationType.html?

- `


  ### [precipitationChancePercent](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV26precipitationChancePercents5Int32VSgvp)


  ` Chance of precipitation as a percentage (\[0-100\]).

  #### Declaration

  Swift

      let precipitationChancePercent: Int32?

- `


  ### [cloudCoverPercent](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV17cloudCoverPercents5Int32VSgvp)


  ` Current cloud cover as a percentage (\[0-100\]).

  #### Declaration

  Swift

      let cloudCoverPercent: Int32?

- `


  ### [windSpeedKph](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV12windSpeedKphSfSgvp)


  ` Current wind speed in kilometers per hour.

  #### Declaration

  Swift

      let windSpeedKph: Float?

- `


  ### [visibilityKm](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV12visibilityKmSfSgvp)


  ` Current visibility in kilometers.

  #### Declaration

  Swift

      let visibilityKm: Float?

- `


  ### [dewPoint](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV8dewPoints5Int32VSgvp)


  ` Current dew point in centi-celsius. This is the temperature at which air, at a given pressure,
  becomes saturated with water vapor. For example, use 2570 for 25.7C.

  #### Declaration

  Swift

      let dewPoint: Int32?

- `


  ### [uvIndex](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV7uvIndexs5Int32VSgvp)


  ` Values range between \[0, 11\], and higher values mark stronger radiation.

  #### Declaration

  Swift

      let uvIndex: Int32?

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV7decoderAG0aB3SDK0E7DecoderV_tKcfc)


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

  #### Declaration

  Swift

      init(decoder: TraitDecoder) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The raw data representing this Struct. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/WeatherTrait/CurrentConditions#/s:15GoogleHomeTypes0A0O12WeatherTraitV17CurrentConditionsV6encode4withy0aB3SDK0E7EncoderC_tKF)


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

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws