Google

enum Google

Namespace for all Google Traits and DeviceTypes.

  • This trait supports arming and disarming, as used in security systems.

    Declaration

    Swift

    struct ArmDisarmTrait
  • This trait supports devices that can gather audio (for example, has a microphone).

    Declaration

    Swift

    struct AudioInputTrait
  • This trait belongs to devices that can cook food according to various food presets and supported cooking modes.

    Declaration

    Swift

    struct CookTrait
  • This trait supports devices dispensing a specified amount of one or more physical items.

    Declaration

    Swift

    struct DispenseTrait
  • This trait is designed for self-mobile devices, such as robotic vacuum cleaners, that can be commanded to return for charging.

    Declaration

    Swift

    struct DockTrait
  • This trait represents the press of a doorbell.

    Declaration

    Swift

    struct DoorbellPressTrait
  • This trait is designed for calling an elevator to a floor.

    Declaration

    Swift

    struct ElevatorControlTrait
  • This trait supports devices which provide an interface to air quality measurement and classification, with optional destinction between indoor and outdoor measurements.

    Declaration

    Swift

    struct ExtendedAirQualityTrait
  • This trait supports devices which are able to switch between applications.

    Declaration

    Swift

    struct ExtendedApplicationLauncherTrait
  • This trait supports devices that support TV channels on a media device.

    Declaration

    Swift

    struct ExtendedChannelTrait
  • This trait provides additional features related to color control and is an extension of the Matter standard trait, ColorControl.

    Declaration

    Swift

    struct ExtendedColorControlTrait
  • This trait is for devices with extended fan controls.

    Declaration

    Swift

    struct ExtendedFanControlTrait
  • This trait belongs to devices which have a volume control.

    Declaration

    Swift

    struct ExtendedLevelControlTrait
  • This trait is an extension of the Matter standard trait, MediaInput, and is used by devices that can switch inputs.

    Declaration

    Swift

    struct ExtendedMediaInputTrait
  • API for the ExtendedMediaPlayback trait.

    Declaration

    Swift

    struct ExtendedMediaPlaybackTrait
  • API for the ExtendedModeSelect trait.

    Declaration

    Swift

    struct ExtendedModeSelectTrait
  • This trait represents any device that supports operating in specific zones, and has an ongoing duration for its operation which can be queried.

    Declaration

    Swift

    struct ExtendedOperationalStateTrait
  • This trait belongs to devices which have a power source.

    Declaration

    Swift

    struct ExtendedPowerSourceTrait
  • Trait for devices, other than thermostats, that support controlling temperature, either within or around the device.

    Declaration

    Swift

    struct ExtendedTemperatureControlTrait
  • This trait covers handling both temperature point and modes, and is an extension of the Matter standard trait, Thermostat.

    Declaration

    Swift

    struct ExtendedThermostatTrait
  • This trait belongs to devices that support being filled such as a bathtub.

    Declaration

    Swift

    struct FillTrait
  • This trait provides an interface for monitoring the current condition of a filter.

    Declaration

    Swift

    struct FilterMonitoringTrait
  • This trait provides an interface to leaf wetness measurement.

    Declaration

    Swift

    struct LeafWetnessMeasurementTrait
  • This trait belongs to devices that can support complex lighting commands to change states, such as looping through various colors.

    Declaration

    Swift

    struct LightEffectsTrait
  • This trait is used to locate devices, which can be found by means of a local indicator, such as beeping, ringing, or flashing.

    Declaration

    Swift

    struct LocatorTrait
  • This trait belongs to any devices that support locking and unlocking, or reporting a locked state, except door locks, which are covered by the Matter standard DoorLock cluster.

    Declaration

    Swift

    struct LockUnlockTrait
  • This trait provides an interface for monitoring the Max2 filter on a device.

    Declaration

    Swift

    struct Max2FilterMonitoringTrait
  • API for the MediaActivityState trait.

    Declaration

    Swift

    struct MediaActivityStateTrait
  • This trait supports detecting motion.

    Declaration

    Swift

    struct MotionDetectionTrait
  • This trait belongs to devices that can report network data and perform network-specific operations.

    Declaration

    Swift

    struct NetworkControlTrait
  • This trait belongs to devices that can detect objects or people, and sends a notification to the user. By default, these notifications are announced on smart displays and speakers by Google Assistant following a doorbell ring chime.

    Declaration

    Swift

    struct ObjectDetectionTrait
  • This trait belongs to devices that support opening and closing, and in some cases opening and closing partially or potentially in more than one direction.

    Declaration

    Swift

    struct OpenCloseTrait
  • This trait allows a device report to include the locations of a user’s parked vehicles.

    Declaration

    Swift

    struct ParkingLocationTrait
  • This trait provides an interface to pre-filter state monitoring.

    Declaration

    Swift

    struct PreFilterMonitoringTrait
  • This trait belongs to devices that support rebooting as a single action.

    Declaration

    Swift

    struct RebootTrait
  • This trait belongs to devices that support humidity settings such as humidifiers and dehumidifiers.

    Declaration

    Swift

    struct RelativeHumidityControlTrait
  • This trait belongs to devices that support rotation, which can be specified in percentage of a full rotation or in number of degrees. The default direction of a rotation is clockwise.

    Declaration

    Swift

    struct RotationTrait
  • This trait belongs to devices that measure soil moisture.

    Declaration

    Swift

    struct SoilMoistureMeasurementTrait
  • This trait provides an interface to speed measurement.

    Declaration

    Swift

    struct SpeedMeasurementTrait
  • This trait can be used to control a built-in timer on a device, such as starting a new timer on a sprinkler, and pausing and canceling the timer.

    Declaration

    Swift

    struct TimerTrait
  • This trait belongs to any devices with settings that can only exist in one of two states and provides an interface to a toggle switch that can be turned on or off.

    Declaration

    Swift

    struct TogglesTrait
  • This trait provides a brightness extension to the LevelControl trait and is only for use with the Automation API.

    Declaration

    Swift

    struct BrightnessTrait
  • This trait provides an enum based on-off extension to the OnOff trait and is only for use with the Automation API.

    Declaration

    Swift

    struct SimplifiedOnOffTrait
  • This trait provides an extension to the Thermostat trait and is only for use with the Automation API.

    Declaration

    Swift

    struct SimplifiedThermostatTrait
  • This trait provides a simplification of the Switch trait. Clients may depend on this trait to avoid needing to understand and parse the complex events from the Switch trait.

    Declaration

    Swift

    struct SyntheticSwitchTrait
  • This trait provides a volume extension to the LevelControl trait and is only for use with the Automation API.

    Declaration

    Swift

    struct VolumeTrait
  • This trait provides an interface for the current attendance state of known household members in a Structure. Only for use with automations.

    Declaration

    Swift

    struct AreaAttendanceStateTrait
  • This trait provides an interface for the current area presence state for a given Structure, for example, home or away, occupied or unoccupied. Only for use with automations.

    Declaration

    Swift

    struct AreaPresenceStateTrait
  • API for the AssistantBroadcast trait. It is used to broadcast message for automations only and is not available in Device and Structure APIs.

    Declaration

    Swift

    struct AssistantBroadcastTrait
  • API for the AssistantFulfillment trait. This trait is used for OkGoogle command execution on devices for automations only and is not available in the Device and Structure APIs.

    Declaration

    Swift

    struct AssistantFulfillmentTrait
  • API for the ColorPresets trait, which provides color presets for each light source in the structure.

    Declaration

    Swift

    struct ColorPresetsTrait
  • This trait allows sending notifications as actions to structure members and is only for use with the Automation API. Household members must have the Google Home app installed.

    Declaration

    Swift

    struct NotificationTrait
  • API for the VoiceStarter trait, which is available on a structure entity only. This trait uses Google Assistant capabilities to trigger automations.

    Declaration

    Swift

    struct VoiceStarterTrait
  • Represents several Time related attributes for the current Structure.

    Declaration

    Swift

    struct TimeTrait