条件

说明

表示所有子级条件的逻辑 AND 的复合条件。

字段

类型 说明
conditions [Condition]

子级条件。

必需

示例

使用条件:如果电视已开启且时间在晚上 6 点之后。

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