Can someone please help me here.
Issues I have here is, in between the loop delay, if I close the door, it does nothing and wait until delay expires. Per my understanding until should break the loop immediately if state changes
- repeat:
sequence:
# Define variable value with current open time in minutes
- variables:
minutes_open: "{{ ((as_timestamp(now()) - start_time) // 60 ) | int }}"
- device_id: !input notify_device
domain: mobile_app
type: notify
title: !input notification_title
message: "Reminder: The {{ binary_sensor_friendly_name }} has been open for {{ minutes_open }} minutes. Please check."
- delay:
minutes: 5 # Repeat every 5 minutes
until:
- condition: state
entity_id: !input door_sensor
state: "off"