คำอธิบาย
ตั้งค่าช่องปัจจุบันเป็นค่าที่เจาะจง
ช่อง
คีย์ | ประเภท | คำอธิบาย |
---|---|---|
devices
|
[อุปกรณ์] |
อุปกรณ์ที่รองรับการตั้งค่าช่อง ต้องระบุ |
channelName
|
String |
ชื่อที่จำได้ง่ายของช่องที่ขอ ไม่บังคับ หากต้องการใช้ช่องนี้ คุณจะใช้ช่องต่อไปนี้ไม่ได้ channelNumber ค่าที่ใช้ได้จะขึ้นอยู่กับอุปกรณ์แต่ละเครื่อง |
channelNumber
|
String |
ตัวระบุที่เป็นตัวเลขสำหรับช่องที่ขอ ไม่บังคับ หากต้องการใช้ช่องนี้ คุณจะใช้ช่องต่อไปนี้ไม่ได้ channelName ค่าที่ใช้ได้จะขึ้นอยู่กับอุปกรณ์แต่ละเครื่อง |
channelCode
|
String |
ตัวระบุที่ไม่ซ้ำกันสำหรับช่องที่ขอ ต้องระบุ ค่าที่ใช้ได้จะขึ้นอยู่กับอุปกรณ์แต่ละเครื่อง |
ตัวอย่าง
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