Automations support the following starters and actions. All states are also supported as conditions.
State / Event (starter) Condition Command (action) |
Supported Fields | Description |
---|---|---|
and | A compound condition to represent logical AND of all the child conditions. | |
assistant. |
message | |
assistant. |
okGoogle | |
assistant. |
query | |
device. |
activate | Activate or deactivate a scene. |
device. |
newApplicationName | Install an application on the given device. |
device. |
applicationName | Search for the given application. |
device. |
applicationName | Select the given application. |
device. |
arm armLevel cancel |
Set the alarm level of the device. |
device. |
brightness | Adjust device absolute brightness. When brightness is set to any value greater than 0, if the device is off, it powers on, and the [`OnOffState.state`](./on_off_state) changes to reflect that the device is on. Likewise, when brightness is set to 0, the device powers off and the [`OnOffState.state`](./on_off_state) changes accordingly. |
device. |
brightnessRelativePercent brightnessRelativeWeight |
Adjust device relative brightness. When brightness is set to any value greater than 0, if the device is off, it powers on, and the [`OnOffState.state`](./on_off_state) changes to reflect that the device is on. Likewise, when brightness is set to 0, the device powers off and the [`OnOffState.state`](./on_off_state) changes accordingly. |
device. |
charge | Start or stop charging. |
device. |
color. color. color. color. color. color. |
Sets the color to the specified hue. When the color is set on a device that is off, the device powers on, and the [`OnOffState.state`](./on_off_state) changes to reflect this. Likewise, when brightness is set to 0, the device powers off and the [`OnOffState.state`](./on_off_state) changes accordingly. |
device. |
cookingMode foodPreset quantity start unit |
Start or stop cooking. |
device. |
amount item presetName unit |
Dispense items. |
device. |
Dock the device. | |
device. |
enable | Enable or disable the guest network. |
device. |
enable profile |
Enable or disable a network profile. Secondary user verification with PIN must be used. A user's home security can be considered affected if other security devices are disabled via these commands. |
device. |
fill fillLevel |
Fill or drain the device. |
device. |
silence | Locate the target device by generating a local alert. |
device. |
relativeHumidityPercent relativeHumidityWeight |
Adjust the humidity level relative to the current value. |
device. |
duration | Cycle the device through a set of colors. |
device. |
duration | Light intensity increases from mid-level brightness to maximum brightness and then decreases to mid-level brightness with a total cycle time of one pulse per second. During each cycle, maximum brightness should last 200ms and mid-level brightness, excluding the transition period, should last at least 500ms. |
device. |
duration | Over a span of time, gradually decrease the device's brightness and, optionally, alter the color temperature. |
device. |
duration | Over a span of time, gradually increase the device's brightness and, optionally, alter the color temperature. |
device. |
lock | Lock or unlock the device. |
device. |
Skip to next media item. | |
device. |
Pause media playback. | |
device. |
Skip to previous media item. | |
device. |
Resume media playback. | |
device. |
Shuffle the current playlist. | |
device. |
Stop media playback. | |
device. |
mute | Mute or unmute the given device. |
device. |
Switch to the next input. | |
device. |
on | Turn the device on or off. |
device. |
openDirection openPercent |
Set the open-close state of the device |
device. |
pause | Pause or unpause device operation. |
device. |
Switch to the previous input. | |
device. |
Reboots the device. | |
device. |
channelCount | Adjust the current channel by a relative amount. |
device. |
Return to the previous channel the user was on. | |
device. |
Reverse the direction of the fan. | |
device. |
rotationDegrees rotationPercent |
Set the absolute rotation of the device. |
device. |
channelCode channelName channelNumber |
Set the current channel to a specific value. |
device. |
fanSpeed | Set the fan speed. |
device. |
fanSpeedRelativePercent fanSpeedRelativeWeight |
Set the relative speed for the fan. |
device. |
humidity | Set the humidity level to an absolute value. |
device. |
newInput | Set the media input. |
device. |
volumeLevel | Set the volume of a given device. |
device. |
start | Start or stop the device. |
device. |
Stop the current light effect. | |
device. |
thermostatMode | Set the target operating mode for a thermostat device. |
device. |
thermostatTemperatureSetpoint | Set the target temperature for a thermostat device. |
device. |
thermostatTemperatureSetpointHigh thermostatTemperatureSetpointLow |
Set a target temperature range for a thermostat device. |
device. |
duration | Adjust the timer duration. |
device. |
Cancel the timer. | |
device. |
Pause timer. | |
device. |
Resume timer. | |
device. |
duration | Start a new timer. |
device. |
A dog or a cat has been detected by the camera. Detection of other types of animals is not supported. | |
device. |
A doorbell has been pressed. | |
device. |
A familiar face has been detected by the camera. | |
device. |
An unfamiliar face has been detected by the camera. | |
device. |
Motion has been detected by the device. | |
device. |
A moving vehicle has been detected by the camera. | |
device. |
A delivered package has been detected by the camera. | |
device. |
A person has been detected by the camera. | |
device. |
The sound of person talking has been detected by the device. | |
device. |
A sound has been detected by the device. | |
device. |
currentApplication | For devices which are able to switch between applications. |
device. |
currentArmLevel isArmed |
For devices such as security systems that support arming and disarming, this indicates whether the device is armed or disarmed. |
device. |
brightness | The brightness setting for a device. |
device. |
For devices that support channels on a media device. | |
device. |
color. color. color. color. color. |
The state of a color setting. |
device. |
currentCookingMode currentFoodPreset |
For devices that can cook food according to various food presets and supported cooking modes. |
device. |
isDocked | For self-mobile devices that can be commanded to return for charging. |
device. |
descriptiveCapacityRemaining isCharging isPluggedIn |
The state of an energy storage device such as a battery, including the amount of energy it is storing, whether or not it is charging, and whether or not it is plugged in. |
device. |
currentFanSpeedPercent currentFanSpeedSetting |
For devices that support setting the speed of a fan. |
device. |
currentFillLevel currentFillPercent isFilled |
For devices that support being filled, such as a bathtub. |
device. |
humidityAmbientPercent humiditySetpointPercent |
For devices that support humidity settings such as humidifiers and dehumidifiers. |
device. |
currentInput | Enables querying devices which are able to switch inputs.
Media inputs can have dynamic names per device that represent audio or video feeds. These feeds can be hardwired or networked, but they should be named and reasonably persistent. This does not support arbitrary ephemeral feeds, such as a searchable networked library. Paired, named Bluetooth sources are supported. Sources can have multiple names, so user-created and discovered names are supported, as well as default names; for example, 'hdmi_1'might also be 'DVD player,' or 'usb_1' might also be 'Hard drive'.
Media inputs can be ordered to support 'next' and 'previous' commands.
Note: InputSelector does not support query grammar. |
device. |
activeLightEffect | For devices that can support complex lighting commands to change state, such as looping through various colors. |
device. |
isJammed isLocked |
For devices that support locking and unlocking, and/or reporting a locked state. |
device. |
playbackState | For devices that play media, the state of the media, such as whether or not it is playing. |
device. |
motionDetectionEventInProgress | For devices that can detect motion. |
device. |
occupancy | For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing. |
device. |
online | For devices that support online and offline state, and/or report online and offline state. |
device. |
on | The basic on and off functionality for any device that has binary on and off, including plugs and switches as well as many future devices. |
device. |
openPercent | For devices that support opening and closing, and in some cases opening and closing partially or potentially in more than one direction. |
device. |
isCurrentlyRecording | For devices that support recording to media. |
device. |
rotationDegrees rotationPercent |
For devices that support rotation, such as blinds with rotatable slats. |
device. |
currentCycleRemainingTime currentTotalRemainingTime |
For devices that have an ongoing duration for their operation which can be queried. Devices like these will report their total number of cycles at the start of operation, and each cycle the device is currently in while running. |
device. |
currentSensorStateData. currentSensorStateData. currentSensorStateData. |
A measurement produced by a sensor. FOr example, the amount of smoke measured by a smoke detector, or the amount of carbon monoxide measured by a carbon monoxide detector, and so forth. |
device. |
isPaused isRunning |
For devices that support starting and stopping operations. Starting and stopping a device serves a similar function to turning it on and off. It indicates that devices function differently when turned on and when started. Certain washing machines, for instance, are able to be turned on and have their settings modified before actually starting operation. |
device. |
temperatureAmbient temperatureSetpoint |
Controls temperature for a device other than a thermostat (for example, an oven), either within or around the device. |
device. |
activeThermostatMode thermostatHumidityAmbient thermostatMode thermostatTemperatureAmbient thermostatTemperatureSetpoint thermostatTemperatureSetpointHigh thermostatTemperatureSetpointLow |
For devices that support temperature points and modes. |
device. |
timerPaused | For devices that support timer capability. For instance, a smart sprinkler controller or smart light switch may have a built-in timer. This can be used to query the device about how much time remains on the timer. |
device. |
currentVolume isMuted |
For devices which are able to change volume (for example, setting the volume to a certain level, mute, or unmute). |
home. |
body members title |
Send a notification to the specified home members. |
home. |
homePresenceMode | |
not | A condition to represent logical NOT of another condition. | |
or | A compound condition to represent logical OR of all the child conditions. | |
time. |
Represents a time range. | |
time. |
Adds a pause in the automation execution. | |
time. |
Represents a time schedule event. |