This is a section of an automation as it’s so long. The first version with seconds: 30 works and after the delay it carries on and turns off the input_boolean
- conditions:
- condition: trigger
id:
- "9"
- condition: state
entity_id: input_boolean.nestseen
state: "off"
sequence:
- action: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id:
- input_boolean.nestseen
- type: turn_on
device_id: 80d64b7da893c2a0f73fd95dcb1fe58c
entity_id: d2cc4c178b614b2974be01af7d19d880
domain: switch
- delay:
seconds: 30
- action: input_boolean.turn_off
metadata: {}
data: {}
target:
entity_id:
- input_boolean.nestseen
mode: parallel
max: 10
The following does not work inasmuch as it never turns off the input_boolean
- delay:
seconds: "{{ states('CameraMotionHeldSeconds') | int }}"
Is there a way I can tell if the automation abended with an error or whether it’s still waiting for the delay to be timed out (ie it’s not correctly evaluated to 30 seconds)