本帖最后由 情非殇 于 2019-7-1 08:40 编辑
你就trigger触发之后,action: delay延迟5秒钟再判断,再delay: 00:00:05 延迟再判断,然后执行,也不用平均值这么准确的
action:
- delay: 00:00:05
- condition:
condition: numeric_state
entity_id: 'sensor.dc1功率'
below: 20
- delay: 00:00:05
- condition:
condition: numeric_state
entity_id: 'sensor.dc1功率'
below: 20
- service: input_boolean.turn_off
entity_id: input_boolean.test_node1
|