条件

说明

一个复合条件,表示所有子条件的逻辑与运算。

字段

类型 说明
conditions [使用情况]

子条件。

必填

示例

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

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