ब्यौरा
ऑटोमेशन की सामान्य कार्रवाई. यह एक टाइप्ड स्ट्रक्ट है.
One of Fields
| टाइप | Extended Struct | 
|---|---|
| assistant.command.Broadcast | BroadcastCommand | 
| assistant.command.OkGoogle | OkGoogleCommand | 
| device.command.ActivateScene | ActivateSceneCommand | 
| device.command.AppInstall | AppInstallCommand | 
| device.command.AppSearch | AppSearchCommand | 
| device.command.AppSelect | AppSelectCommand | 
| device.command.ArmDisarm | ArmDisarmCommand | 
| device.command.BrightnessAbsolute | BrightnessAbsoluteCommand | 
| device.command.BrightnessRelative | BrightnessRelativeCommand | 
| device.command.Charge | ChargeCommand | 
| device.command.ColorAbsolute | ColorAbsoluteCommand | 
| device.command.Cook | CookCommand | 
| device.command.Dispense | DispenseCommand | 
| device.command.Dock | DockCommand | 
| device.command.Fill | FillCommand | 
| device.command.FindMyDevice | LocateCommand | 
| device.command.HumidityRelative | HumidityRelativeCommand | 
| device.command.LightEffectColorLoop | LightEffectColorLoopCommand | 
| device.command.LightEffectPulse | LightEffectPulseCommand | 
| device.command.LightEffectSleep | LightEffectSleepCommand | 
| device.command.LightEffectWake | LightEffectWakeCommand | 
| device.command.LockUnlock | LockUnlockCommand | 
| device.command.MediaNext | MediaNextCommand | 
| device.command.MediaPause | MediaPauseCommand | 
| device.command.MediaPrevious | MediaPreviousCommand | 
| device.command.MediaResume | MediaResumeCommand | 
| device.command.MediaShuffle | MediaShuffleCommand | 
| device.command.MediaStop | MediaStopCommand | 
| device.command.Mute | MuteCommand | 
| device.command.NextInput | NextInputCommand | 
| device.command.OnOff | OnOffCommand | 
| device.command.OpenClose | OpenCloseCommand | 
| device.command.PauseUnpause | PauseUnpauseCommand | 
| device.command.PreviousInput | PreviousInputCommand | 
| device.command.Reboot | RebootCommand | 
| device.command.RelativeChannel | RelativeChannelCommand | 
| device.command.ReturnChannel | ReturnChannelCommand | 
| device.command.ReverseFan | ReverseCommand | 
| device.command.RotateAbsolute | RotateAbsoluteCommand | 
| device.command.SelectChannel | SelectChannelCommand | 
| device.command.SetFanSpeed | SetFanSpeedCommand | 
| device.command.SetFanSpeedRelative | SetFanSpeedRelativeCommand | 
| device.command.SetHumidity | SetHumidityCommand | 
| device.command.SetInput | SetInputCommand | 
| device.command.SetVolume | SetVolumeCommand | 
| device.command.StartStop | StartStopCommand | 
| device.command.StopLightEffect | StopLightEffectCommand | 
| device.command.ThermostatSetMode | ThermostatSetModeCommand | 
| device.command.ThermostatTemperatureSetpoint | ThermostatTemperatureSetpointCommand | 
| device.command.ThermostatTemperatureSetRange | ThermostatTemperatureSetRangeCommand | 
| device.command.TimerAdjust | TimerAdjustCommand | 
| device.command.TimerCancel | TimerCancelCommand | 
| device.command.TimerPause | TimerPauseCommand | 
| device.command.TimerResume | TimerResumeCommand | 
| device.command.TimerStart | TimerStartCommand | 
| home.command.Notification | NotificationCommand | 
| time.delay | DelayAction | 
उदाहरण
टीवी और लाइट चालू करने के लिए एक ही कार्रवाई.
actions:
  type: device.command.OnOff
  devices:
  - TV - Living Room
  - Light A - Living Room
  on: true
Google Assistant की मदद से मैसेज ब्रॉडकास्ट करने के लिए एक ही कार्रवाई.
actions:
  type: assistant.command.Broadcast
  message: Dinner time
लाइट चालू करने और उसे पांच मिनट बाद बंद करने के लिए कई कार्रवाइयां.
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