OnOffCommand

说明

开启或关闭设备。

字段

密钥 类型 说明
devices [设备]

设备可以开启/关闭,例如灯、咖啡机等。

必需

on Bool

是否开启或关闭设备。

必需

示例

actions:
- type: device.command.OnOff
  devices: My Device - Room Name
  on: true