SI
Size: a a a
SI
ДЦ
SI
SI
IB
automation:
- alias: my_test_automation
trigger:
- platform: time_pattern
minutes: "/1"
condition:
- condition: template
value_template: "{{ state_attr('automation.my_test_automation', 'last_triggered') == None or (now() - state_attr('automation.my_test_automation', 'last_triggered')).seconds > 300 }}"
action:
- service: system_log.write
data:
message: '!!!'
ДЦ
automation:
- alias: my_test_automation
trigger:
- platform: time_pattern
minutes: "/1"
condition:
- condition: template
value_template: "{{ state_attr('automation.my_test_automation', 'last_triggered') == None or (now() - state_attr('automation.my_test_automation', 'last_triggered')).seconds > 300 }}"
action:
- service: system_log.write
data:
message: '!!!'
ДЦ
AL
IB
AL
ДЦ
IB
ДЦ
AL
IB
value_template: "{{ (now() - state_attr('automation.my_test_automation', 'last_triggered')).seconds | int > 300 }}"
IB
IB
IB
0 > 300
которое ложноеДЦ
condition:
- condition: template
value_template: "{{(as_timestamp(now())-as_timestamp(state_attr('automation.system_snapshot_outside_esp32','last_triggered'))|int) > 5 }}"
ДЦ