選取頻道指令

說明

將目前管道設為特定值。

欄位

金鑰 類型 說明
devices [裝置]

支援設定頻道的裝置。

必填

channelName String

所要求頻道的易記名稱。

選用

如要使用這個欄位,請勿使用下列所有欄位:channelNumber

可用值因裝置而異。

channelNumber String

所要求頻道的數字 ID。

選用

如要使用這個欄位,請勿使用下列所有欄位:channelName

可用值因裝置而異。

channelCode String

所要求頻道的專屬 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