The Automation API supports most traits, but support for some attributes, events, and commands in a trait may be limited.
To verify that the Automation API supports your use case, search in the table below.
In general:
- Any traits and types that you intend to use in your app with the Automation API must be registered at initialization. See Home configuration.
- Any attribute may be used in starters or conditions.
- Cloud-to-cloud devices that don't report their state cannot be used as triggers in automations, created either manually or through discovery.
Even if a device supports supports the traits listed here, a device may be blocked from use as a starter or action in the Automation API due to Report State quality thresholds:
- Devices with a Report State success rate lower than 90% are blocked from use as starters.
- Devices with a command execution success rate lower than 95% are blocked from use as actions.
Refer to this list of device models and the specific starters and actions that they support for the Automations API.
Commands can only be used as actions.
Some traits have prerequisites:
- In order to use
TimeTrait.ScheduledEvent
, the structure in which the automation runs must have a street address that was set up in the Google Home app (GHA). Change Google home address explains how a user can enter the structure address. If the address is not set up in the GHA, the automation fails to create, and an error is thrown.
- In order to use
Simplified versions of some traits are also available for use in automations. For more information, see Simplified traits on iOS.
A block indicates that the command is not supported in automations for one or more device types. For more information, refer to Blocked actions in automations on iOS.
Trait | Trait type | Element type | Element |
---|---|---|---|
TimeTrait | Event | ScheduledTimeEvent | |
TimeTrait | Attribute | currentTime | |
TimeTrait | Attribute | sunriseTime | |
TimeTrait | Attribute | sunsetTime | |
AudioOutputTrait | matter | Attribute | currentOutput |
BooleanStateTrait | matter | Event | StateChange |
BooleanStateTrait | matter | Attribute | stateValue |
CarbonDioxideConcentrationMeasurementTrait | matter | Attribute | measuredValue |
CarbonMonoxideConcentrationMeasurementTrait | matter | Attribute | maxMeasuredValue |
CarbonMonoxideConcentrationMeasurementTrait | matter | Attribute | measuredValue |
CarbonMonoxideConcentrationMeasurementTrait | matter | Attribute | minMeasuredValue |
CarbonMonoxideConcentrationMeasurementTrait | matter | Attribute | uncertainty |
ChannelTrait | matter | Command | ChangeChannelByNumber |
ChannelTrait | matter | Command | SkipChannel |
ColorControlTrait | matter | Command | MoveColor |
ColorControlTrait | matter | Command | MoveToColor |
ColorControlTrait | matter | Command | MoveToColorTemperature |
ColorControlTrait | matter | Command | MoveToHueAndSaturation |
ColorControlTrait | matter | Command | MoveToSaturation |
ColorControlTrait | matter | Command | StepColor |
ColorControlTrait | matter | Attribute | colorTemperatureMireds |
ColorControlTrait | matter | Attribute | currentHue |
ColorControlTrait | matter | Attribute | currentX |
ColorControlTrait | matter | Attribute | currentY |
DishwasherModeTrait | matter | Command | ChangeToMode |
DishwasherModeTrait | matter | Attribute | currentMode |
DishwasherModeTrait | matter | Attribute | onMode |
DoorLockTrait | matter | Command | LockDoor |
DoorLockTrait | matter | Command | UnlockDoor |
DoorLockTrait | matter | Attribute | doorClosedEvents |
DoorLockTrait | matter | Attribute | doorOpenEvents |
FanControlTrait | matter | Attribute | percentCurrent |
FanControlTrait | matter | Attribute | percentSetting |
FanControlTrait | matter | Attribute | speedCurrent |
FanControlTrait | matter | Attribute | speedSetting |
FormaldehydeConcentrationMeasurementTrait | matter | Attribute | measuredValue |
IlluminanceMeasurementTrait | matter | Attribute | measuredValue |
LaundryWasherModeTrait | matter | Command | ChangeToMode |
LaundryWasherModeTrait | matter | Attribute | currentMode |
LaundryWasherModeTrait | matter | Attribute | onMode |
LevelControlTrait | matter | Attribute | currentLevel |
LevelControlTrait | matter | Attribute | maxLevel |
LevelControlTrait | matter | Attribute | startUpCurrentLevel |
MediaInputTrait | matter | Command | RenameInput |
MediaInputTrait | matter | Command | SelectInput |
MediaInputTrait | matter | Attribute | currentInput |
ModeSelectTrait | matter | Command | ChangeToMode |
ModeSelectTrait | matter | Attribute | currentMode |
ModeSelectTrait | matter | Attribute | onMode |
NitrogenDioxideConcentrationMeasurementTrait | matter | Attribute | measuredValue |
OnOffTrait | matter | Command | Off |
OnOffTrait | matter | Command | On |
OnOffTrait | matter | Attribute | onOff |
OperationalStateTrait | matter | Event | OperationCompletion |
OperationalStateTrait | matter | Attribute | currentPhase |
OzoneConcentrationMeasurementTrait | matter | Attribute | measuredValue |
Pm10ConcentrationMeasurementTrait | matter | Attribute | measuredValue |
Pm25ConcentrationMeasurementTrait | matter | Attribute | measuredValue |
PowerSourceTrait | matter | Attribute | batChargingCurrent |
PowerSourceTrait | matter | Attribute | batTimeToFullCharge |
RadonConcentrationMeasurementTrait | matter | Attribute | measuredValue |
RelativeHumidityMeasurementTrait | matter | Attribute | measuredValue |
RvcCleanModeTrait | matter | Command | ChangeToMode |
RvcOperationalStateTrait | matter | Attribute | currentPhase |
RvcOperationalStateTrait | matter | Attribute | operationalState |
RvcRunModeTrait | matter | Command | ChangeToMode |
RvcRunModeTrait | matter | Attribute | currentMode |
SwitchTrait | matter | Event | InitialPress |
SwitchTrait | matter | Event | LongPress |
SwitchTrait | matter | Event | LongRelease |
SwitchTrait | matter | Event | MultiPressComplete |
SwitchTrait | matter | Event | MultiPressOngoing |
SwitchTrait | matter | Event | ShortRelease |
SwitchTrait | matter | Event | SwitchLatched |
SwitchTrait | matter | Attribute | currentPosition |
TemperatureControlTrait | matter | Command | SetTemperature |
TemperatureControlTrait | matter | Attribute | maxTemperature |
TemperatureControlTrait | matter | Attribute | minTemperature |
TemperatureControlTrait | matter | Attribute | selectedTemperatureLevel |
TemperatureControlTrait | matter | Attribute | temperatureSetpoint |
TemperatureMeasurementTrait | matter | Attribute | measuredValue |
ThermostatTrait | matter | Attribute | activePresetHandle |
ThermostatTrait | matter | Attribute | localTemperature |
ThermostatTrait | matter | Attribute | occupancy |
ThermostatTrait | matter | Attribute | occupiedCoolingSetpoint |
ThermostatTrait | matter | Attribute | occupiedHeatingSetpoint |
ThermostatTrait | matter | Attribute | outdoorTemperature |
ThermostatTrait | matter | Attribute | temperatureSetpointHoldDuration |
ThermostatTrait | matter | Attribute | unoccupiedCoolingSetpoint |
ThermostatTrait | matter | Attribute | unoccupiedHeatingSetpoint |
TotalVolatileOrganicCompoundsConcentrationMeasurementTrait | matter | Attribute | measuredValue |
WindowCoveringTrait | matter | Command | DownOrClose |
WindowCoveringTrait | matter | Command | GoToLiftPercentage |
WindowCoveringTrait | matter | Command | GoToLiftValue |
WindowCoveringTrait | matter | Command | GoToTiltPercentage |
WindowCoveringTrait | matter | Command | GoToTiltValue |
WindowCoveringTrait | matter | Command | StopMotion |
WindowCoveringTrait | matter | Command | UpOrOpen |
WindowCoveringTrait | matter | Attribute | currentPositionLift |
WindowCoveringTrait | matter | Attribute | currentPositionLiftPercent100ths |
WindowCoveringTrait | matter | Attribute | currentPositionLiftPercentage |
WindowCoveringTrait | matter | Attribute | currentPositionTilt |
WindowCoveringTrait | matter | Attribute | currentPositionTiltPercent100ths |
WindowCoveringTrait | matter | Attribute | currentPositionTiltPercentage |
WindowCoveringTrait | matter | Attribute | targetPositionLiftPercent100ths |
WindowCoveringTrait | matter | Attribute | targetPositionTiltPercent100ths |
ArmDisarmTrait | Command | ArmDisarm | |
ArmDisarmTrait | Attribute | currentArmLevel | |
ArmDisarmTrait | Attribute | isArmed | |
DockTrait | Command | Dock | |
DockTrait | Attribute | isDocked | |
DoorbellPressTrait | Event | DoorbellPressed | |
LightEffectsTrait | Command | SleepEffectSet | |
LightEffectsTrait | Command | StopEffect | |
LightEffectsTrait | Command | WakeEffectSet | |
LightEffectsTrait | Attribute | pulseEffectSet | |
LightEffectsTrait | Attribute | sleepEffectSet | |
LightEffectsTrait | Attribute | wakeEffectSet | |
LockUnlockTrait | Command | Lock | |
LockUnlockTrait | Command | Unlock | |
MotionDetectionTrait | Event | MotionDetected | |
MotionDetectionTrait | Attribute | motionDetectionEventInProgress | |
OpenCloseTrait | Command | Close | |
OpenCloseTrait | Attribute | openPercent | |
OpenCloseTrait | Attribute | targetOpenPercent |