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