選取頻道指令

說明

將目前的管道設為特定值。

欄位

金鑰 類型 說明
devices [裝置]

支援設定頻道的裝置。

需要

可使用變數。

channelName 字串

使用者容易理解的所要求的頻道名稱。

選用

如要使用這個欄位,「不得」使用下列所有欄位:channelNumber

可使用變數。

可用值視裝置而定。

channelNumber 字串

要求頻道的數字 ID。

選用

如要使用這個欄位,「不得」使用下列所有欄位:channelName

可使用變數。

可用值視裝置而定。

channelCode 字串

要求頻道的專屬 ID

需要

可使用變數。

可用值視裝置而定。

範例

actions:
- type: device.command.SelectChannel
  devices: My Device - Room Name
  channelCode: code123

actions:
- type: device.command.SelectChannel
  devices: My Device - Room Name
  channelNumber: 123

actions:
- type: device.command.SelectChannel
  devices: My Device - Room Name
  channelName: Some Text