#Act immediately on state change, if previous state met minimum duration?
1 messages · Page 1 of 1 (latest)
Use a trigger for open with a for: block, then a wait_for_trigger or wait_template in the action for it closing
okay so making sure I'm reading this right (both your message and the docs), Door Closed itself is not the trigger, it's just part of the actions for Door Open
That's how I would do it
Makes sense, thanks!
- trigger: state
entity_id: binary_sensor.gv5123220b_opening
id: lid_opened
from: "off"
to: "on"
for:
hours: 0
minutes: 0
seconds: 15
- conditions:
- condition: trigger
id:
- lid_opened
sequence:
- wait_for_trigger:
- trigger: state
entity_id:
- binary_sensor.gv5123220b_opening
from: "on"
to: "off"
- action: ...
Not sure what that input_boolean is for
And I don't think the continue_on_timeout bit will do anything if you don't provide a timeout
making sure the appliance is off -- this is reused for my washer, where I might open the lid to add something I forgot to throw in at first 🫢 -- good call that it doesn't need to be in the example though