OrCondition

说明

一种复合条件,用于表示所有子条件的逻辑 OR。

字段

密钥 类型 说明
conditions [使用情况]

子条件。

必需

示例

使用条件:如果电视已开启或时间在下午 6 点之后。

condition:
  type: or
  conditions:
  - type: device.state.OnOff
    device: TV - Living Room
    state: on
    is: true
  - type: time.between
    after: 6:00 pm