支援的啟動條件、條件和動作

自動化動作支援下列啟動條件和動作。所有狀態也支援做為條件。

  • 選取啟動條件、動作或條件的類型
  • Google 助理動作
  • Google 助理啟動條件
  • 限制條件運算子
  • 裝置動作
  • 裝置事件啟動條件
  • 裝置狀態限制條件
  • 裝置狀態啟動條件
  • 居家動作
  • 在家狀態限制條件
  • 在家狀態啟動條件
  • 時間動作
  • 時間限制條件
  • 時間啟動條件

105 項結果
狀態 / 事件 (啟動條件)
限制條件
指令 (動作)
支援的欄位 說明
assistant.command.Broadcast 訊息
assistant.command.OkGoogle okGoogle
assistant.event.OkGoogle 查詢
device.command.ActivateScene 啟用 啟用或停用情境。
device.command.AppInstall newApplicationName 在指定裝置上安裝應用程式。
device.command.AppSearch applicationName 搜尋指定應用程式。
device.command.AppSelect applicationName 選取指定應用程式。
device.command.ArmDisarm arm
armLevel
cancel
設定裝置的警報層級。
device.command.BrightnessAbsolute 亮度 調整裝置的絕對亮度。當亮度設為大於 0 的任何值時,如果裝置處於關閉狀態,裝置會開啟,而 [`OnOffState.state`](./on_off_state) 會變更,反映裝置已開啟。同樣地,當亮度設為 0 時,裝置會關閉,而 [`OnOffState.state`](./on_off_state) 也會隨之變更。
device.command.BrightnessRelative brightnessRelativePercent
brightnessRelativeWeight
調整裝置的相對亮度。當亮度設為大於 0 的任何值時,如果裝置處於關閉狀態,裝置會開啟,而 [`OnOffState.state`](./on_off_state) 會變更,反映裝置已開啟。同樣地,當亮度設為 0 時,裝置會關閉,而 [`OnOffState.state`](./on_off_state) 也會隨之變更。
device.command.Charge 充電 開始或停止充電。
device.command.ColorAbsolute color.name
color.spectrumHSV.hue
color.spectrumHSV.saturation
color.spectrumHSV.value
color.spectrumRGB
color.temperature
將顏色設為指定的色調。在關閉的裝置上設定顏色時,裝置會開機,而 [`OnOffState.state`](./on_off_state) 會變更以反映此狀態。同樣地,當亮度設為 0 時,裝置會關閉,而 [`OnOffState.state`](./on_off_state) 也會隨之變更。
device.command.Cook cookingMode
foodPreset
quantity
start
unit
開始或停止烹飪。
device.command.Dispense amount
item
presetName
unit
供應物品。
device.command.Dock 將裝置連接至充電座。
device.command.EnableDisableGuestNetwork 啟用 啟用或停用訪客網路。
device.command.EnableDisableNetworkProfile enable
profile
啟用或停用網路設定檔。必須使用 PIN 碼進行次要使用者驗證。如果其他安全裝置是透過這些指令停用,使用者的居家安全可能會受到影響。
device.command.Fill fill
fillLevel
裝滿或排空裝置中的水。
device.command.FindMyDevice 靜音 產生本機警報,以便尋找目標裝置。
device.command.HumidityRelative relativeHumidityPercent
relativeHumidityWeight
根據目前的值調整濕度。
device.command.LightEffectColorLoop 時間長度 讓裝置循環顯示一組顏色。
device.command.LightEffectPulse 時間長度 光線強度會從中等亮度增加到最大亮度,然後再降低至中等亮度,總週期時間為每秒一次脈衝。在每個週期中,最大亮度應維持 200 毫秒,而中等亮度 (不含轉換期間) 應維持至少 500 毫秒。
device.command.LightEffectSleep 時間長度 在一段時間內,逐漸調低裝置的亮度,並視需要變更色溫。
device.command.LightEffectWake 時間長度 在一段時間內,逐漸調高裝置的亮度,並視需要變更色溫。
device.command.LockUnlock 智慧門鎖 鎖定或解鎖裝置。
device.command.MediaNext 跳到下一個媒體項目。
device.command.MediaPause 暫停播放媒體。
device.command.MediaPrevious 跳到上一個媒體項目。
device.command.MediaResume 繼續播放媒體。
device.command.MediaShuffle 隨機播放目前的播放清單。
device.command.MediaStop 停止媒體播放。
device.command.Mute 靜音 將指定裝置設為靜音或取消靜音。
device.command.NextInput 切換至下一個輸入法。
device.command.OnOff 開啟或關閉裝置。
device.command.OpenClose openDirection
openPercent
設定裝置的開啟/關閉狀態
device.command.PauseUnpause 暫停 暫停或取消暫停裝置操作。
device.command.PreviousInput 切換至上一個輸入法。
device.command.Reboot 重新啟動裝置。
device.command.RelativeChannel channelCount 以相對值調整目前管道。
device.command.ReturnChannel 返回使用者先前觀看的頻道。
device.command.ReverseFan 反轉風扇的轉動方向。
device.command.RotateAbsolute rotationDegrees
rotationPercent
設定裝置的絕對旋轉角度。
device.command.SelectChannel channelCode
channelName
channelNumber
將目前的管道設為特定值。
device.command.SetFanSpeed fanSpeed 設定風扇風速。
device.command.SetFanSpeedRelative fanSpeedRelativePercent
fanSpeedRelativeWeight
設定風扇的相對速度。
device.command.SetHumidity 濕度 將濕度設為絕對值。
device.command.SetInput newInput 設定媒體輸入。
device.command.SetVolume volumeLevel 設定特定裝置的音量。
device.command.StartStop start 啟動或停止裝置。
device.command.StopLightEffect 停止目前的燈光效果。
device.command.ThermostatSetMode thermostatMode 設定溫度控制器裝置的目標運作模式。
device.command.ThermostatTemperatureSetpoint thermostatTemperatureSetpoint 設定溫度控制器裝置的目標溫度。
device.command.ThermostatTemperatureSetRange thermostatTemperatureSetpointHigh
thermostatTemperatureSetpointLow
為溫度控制器裝置設定目標溫度範圍。
device.command.TimerAdjust 時間長度 調整計時器時間長度。
device.command.TimerCancel 取消計時器。
device.command.TimerPause 暫停計時器。
device.command.TimerResume 繼續計時。
device.command.TimerStart 時間長度 啟動新的計時器。
device.event.AnimalOtherDetection 攝影機偵測到狗或貓。系統不支援偵測其他類型的動物。
device.event.DoorbellPress 有人按門鈴。
device.event.FaceFamiliarDetection 攝影機偵測到熟面孔。
device.event.FaceUnfamiliarDetection 攝影機偵測到陌生人。
device.event.MotionDetection 裝置偵測到動作。
device.event.MovingVehicleDetection 攝影機偵測到有車輛正在移動。
device.event.PackageDelivered 攝影機偵測到有包裹送達。
device.event.PersonDetection 攝影機偵測到有人。
device.event.PersonTalking 裝置偵測到有人說話的聲音。
device.event.Sound 裝置偵測到聲響。
device.state.AppSelector currentApplication 適用於可切換應用程式的裝置。
device.state.ArmDisarm currentArmLevel
isArmed
對於支援啟動和解除的裝置 (例如保全系統),這個值會指出裝置是否已啟動或解除。
device.state.Brightness 亮度 裝置的亮度設定。
device.state.Channel 適用於支援媒體裝置管道的裝置。
device.state.ColorSetting color.colorTemperature
color.spectrumHsv.hue
color.spectrumHsv.saturation
color.spectrumHsv.value
color.spectrumRgb
顏色設定的狀態。
device.state.Cook currentCookingMode
currentFoodPreset
適用於可依據各種預設食物和支援的烹飪模式烹調食物的裝置。
device.state.Dock isDocked 適用於可透過指令返回充電的行動裝置。
device.state.EnergyStorage descriptiveCapacityRemaining
isCharging
isPluggedIn
電池等儲能裝置的狀態,包括儲存的能量量、是否正在充電,以及是否已插上電源。
device.state.FanSpeed currentFanSpeedPercent
currentFanSpeedSetting
適用於支援設定風扇速度的裝置。
device.state.Fill currentFillLevel
currentFillPercent
isFilled
適用於可填水的裝置,例如浴缸。
device.state.HumiditySetting humidityAmbientPercent
humiditySetpointPercent
適用於支援濕度設定的裝置,例如加濕器和除濕機。
device.state.InputSelector currentInput 啟用可切換輸入裝置的查詢。媒體輸入內容可為每部裝置提供動態名稱,代表音訊或視訊動態消息。這些動態饋給可以是硬連線或網路連線,但應具備名稱和合理的持續性。這項功能不支援任意暫時動態消息,例如可搜尋的網路程式庫。系統支援已配對的已命名藍牙來源。來源可以有多個名稱,因此系統支援使用者建立和發現的名稱,以及預設名稱;舉例來說,'hdmi_1' 也可能是 'DVD 播放器',或 'usb_1' 也可能是 '硬碟機'。媒體輸入內容可排序,以支援「next」和「previous」指令。注意:「InputSelector」不支援查詢語法。
device.state.LightEffects activeLightEffect 適用於可支援複雜燈光指令的裝置,以便變更狀態,例如循環變換不同顏色。
device.state.LockUnlock isJammed
isLocked
適用於支援鎖定及解鎖,以及/或回報鎖定狀態的裝置。
device.state.MediaState playbackState 對於播放媒體的裝置,則是媒體的狀態,例如是否正在播放。
device.state.MotionDetection motionDetectionEventInProgress 適用於可偵測動作的裝置。
device.state.OccupancySensing 可住人數 適用於可透過 PIR、超音波或物理接觸感應偵測是否有人在場的裝置。
device.state.Online 線上 適用於支援線上和離線狀態,以及/或回報線上和離線狀態的裝置。
device.state.OnOff 任何具備二進位開關的裝置 (包括插頭、開關和許多日後推出的裝置) 的基本開關功能。
device.state.OpenClose openPercent 適用於支援開啟和關閉功能的裝置,在某些情況下,裝置可能會部分開啟和關閉,或可能會在多個方向開啟和關閉。
device.state.Record isCurrentlyRecording 適用於支援錄製媒體的裝置。
device.state.Rotation rotationDegrees
rotationPercent
適用於支援旋轉的裝置,例如可旋轉百葉片的百葉窗。
device.state.RunCycle currentCycleRemainingTime
currentTotalRemainingTime
適用於可查詢作業持續時間的裝置。這類裝置會在運作開始時回報週期總數,以及裝置目前在執行時的每個週期。
device.state.SensorState currentSensorStateData.key
currentSensorStateData.value.currentSensorState
currentSensorStateData.value.rawValue
感應器產生的測量值。例如煙霧偵測器測量到的煙霧量,或是一氧化碳偵測器測量到的一氧化碳量等等。
device.state.StartStop isPaused
isRunning
適用於支援啟動和停止作業的裝置。啟動和停止裝置的功能與開啟和關閉裝置類似,表示裝置在開啟和啟動時的運作方式不同。舉例來說,某些洗衣機可以在實際開始運作前開啟並修改設定。
device.state.TemperatureControl temperatureAmbient
temperatureSetpoint
控制溫度控制器以外的裝置溫度 (例如烤箱),無論是在裝置內部或周圍。
device.state.TemperatureSetting activeThermostatMode
thermostatHumidityAmbient
thermostatMode
thermostatTemperatureAmbient
thermostatTemperatureSetpoint
thermostatTemperatureSetpointHigh
thermostatTemperatureSetpointLow
適用於支援溫度點和模式的裝置。
device.state.Timer timerPaused 適用於支援計時器功能的裝置。舉例來說,智慧型灑水控制器或智慧型燈具開關可能內建時鐘。可用來查詢裝置的計時器還剩多少時間。
device.state.Volume currentVolume
isMuted
適用於可變更音量的裝置 (例如將音量設為特定值、靜音或取消靜音)。
home.command.Notification body
members
title
向指定住家成員傳送通知。
home.state.HomePresence homePresenceMode
time.between 代表時間範圍。
time.delay 在自動化動作執行期間加入暫停。
time.schedule 代表時間排程事件。
不是 用來表示另一個條件的邏輯否定的條件。
複合條件,用於表示所有子項條件的邏輯 AND。
複合條件,用來表示所有子項條件的邏輯 OR。