<br />

## Description

General automation action. This is a
[Typed Struct](https://developers.home.google.com/automation/schema/basics#typed_struct).

## One of Fields

| Type | Extended Struct |
|---|---|
| assistant.command.Broadcast | [BroadcastCommand](https://developers.home.google.com/automations/schema/reference/entity/assistant/broadcast_command.md.txt) |
| assistant.command.OkGoogle | [OkGoogleCommand](https://developers.home.google.com/automations/schema/reference/entity/assistant/ok_google_command.md.txt) |
| device.command.ActivateScene | [ActivateSceneCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/activate_scene_command.md.txt) |
| device.command.AppInstall | [AppInstallCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/app_install_command.md.txt) |
| device.command.AppSearch | [AppSearchCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/app_search_command.md.txt) |
| device.command.AppSelect | [AppSelectCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/app_select_command.md.txt) |
| device.command.ArmDisarm | [ArmDisarmCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/arm_disarm_command.md.txt) |
| device.command.BrightnessAbsolute | [BrightnessAbsoluteCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/brightness_absolute_command.md.txt) |
| device.command.BrightnessRelative | [BrightnessRelativeCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/brightness_relative_command.md.txt) |
| device.command.Charge | [ChargeCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/charge_command.md.txt) |
| device.command.ColorAbsolute | [ColorAbsoluteCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/color_absolute_command.md.txt) |
| device.command.Cook | [CookCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/cook_command.md.txt) |
| device.command.Dispense | [DispenseCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/dispense_command.md.txt) |
| device.command.Dock | [DockCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/dock_command.md.txt) |
| device.command.Fill | [FillCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/fill_command.md.txt) |
| device.command.FindMyDevice | [LocateCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/find_my_device_command.md.txt) |
| device.command.HumidityRelative | [HumidityRelativeCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/humidity_relative_command.md.txt) |
| device.command.LightEffectColorLoop | [LightEffectColorLoopCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/light_effect_color_loop_command.md.txt) |
| device.command.LightEffectPulse | [LightEffectPulseCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/light_effect_pulse_command.md.txt) |
| device.command.LightEffectSleep | [LightEffectSleepCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/light_effect_sleep_command.md.txt) |
| device.command.LightEffectWake | [LightEffectWakeCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/light_effect_wake_command.md.txt) |
| device.command.LockUnlock | [LockUnlockCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/lock_unlock_command.md.txt) |
| device.command.MediaNext | [MediaNextCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/media_next_command.md.txt) |
| device.command.MediaPause | [MediaPauseCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/media_pause_command.md.txt) |
| device.command.MediaPrevious | [MediaPreviousCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/media_previous_command.md.txt) |
| device.command.MediaResume | [MediaResumeCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/media_resume_command.md.txt) |
| device.command.MediaShuffle | [MediaShuffleCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/media_shuffle_command.md.txt) |
| device.command.MediaStop | [MediaStopCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/media_stop_command.md.txt) |
| device.command.Mute | [MuteCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/mute_command.md.txt) |
| device.command.NextInput | [NextInputCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/next_input_command.md.txt) |
| device.command.OnOff | [OnOffCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/on_off_command.md.txt) |
| device.command.OpenClose | [OpenCloseCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/open_close_command.md.txt) |
| device.command.PauseUnpause | [PauseUnpauseCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/pause_unpause_command.md.txt) |
| device.command.PreviousInput | [PreviousInputCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/previous_input_command.md.txt) |
| device.command.Reboot | [RebootCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/reboot_command.md.txt) |
| device.command.RelativeChannel | [RelativeChannelCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/relative_channel_command.md.txt) |
| device.command.ReturnChannel | [ReturnChannelCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/return_channel_command.md.txt) |
| device.command.ReverseFan | [ReverseCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/reverse_fan_command.md.txt) |
| device.command.RotateAbsolute | [RotateAbsoluteCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/rotate_absolute_command.md.txt) |
| device.command.SelectChannel | [SelectChannelCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/select_channel_command.md.txt) |
| device.command.SetFanSpeed | [SetFanSpeedCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/set_fan_speed_command.md.txt) |
| device.command.SetFanSpeedRelative | [SetFanSpeedRelativeCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/set_fan_speed_relative_command.md.txt) |
| device.command.SetHumidity | [SetHumidityCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/set_humidity_command.md.txt) |
| device.command.SetInput | [SetInputCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/set_input_command.md.txt) |
| device.command.SetVolume | [SetVolumeCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/set_volume_command.md.txt) |
| device.command.StartStop | [StartStopCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/start_stop_command.md.txt) |
| device.command.StopLightEffect | [StopLightEffectCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/stop_light_effect_command.md.txt) |
| device.command.ThermostatSetMode | [ThermostatSetModeCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/thermostat_set_mode_command.md.txt) |
| device.command.ThermostatTemperatureSetpoint | [ThermostatTemperatureSetpointCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/thermostat_temperature_setpoint_command.md.txt) |
| device.command.ThermostatTemperatureSetRange | [ThermostatTemperatureSetRangeCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/thermostat_temperature_set_range_command.md.txt) |
| device.command.TimerAdjust | [TimerAdjustCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/timer_adjust_command.md.txt) |
| device.command.TimerCancel | [TimerCancelCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/timer_cancel_command.md.txt) |
| device.command.TimerPause | [TimerPauseCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/timer_pause_command.md.txt) |
| device.command.TimerResume | [TimerResumeCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/timer_resume_command.md.txt) |
| device.command.TimerStart | [TimerStartCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_device/timer_start_command.md.txt) |
| home.command.Notification | [NotificationCommand](https://developers.home.google.com/automations/schema/reference/entity/sht_structure/notification_command.md.txt) |
| time.delay | [DelayAction](https://developers.home.google.com/automations/schema/reference/standard/delay_action.md.txt) |

## Examples

A single action to turn on a TV and a light.

```yaml
actions:
  type: device.command.OnOff
  devices:
  - TV - Living Room
  - Light A - Living Room
  on: true
```

A single action to broadcast a message through Google Assistant.

```yaml
actions:
  type: assistant.command.Broadcast
  message: Dinner time
```

Multiple actions to turn on a light and turn off it after 5 minutes.

```yaml
actions:
- type: device.command.OnOff
  devices: Light A - Living Room
  on: true
- type: time.delay
  for: 5min
- type: device.command.OnOff
  devices: Light A - Living Room
  on: false
```