Delay not working

I’m trying to add a delay to an action. After one of us gets home, I want the acuum to pause after a 3 minute delay. This is because the presence detection that I have setup has quite a large geofence and it takes at least 3 minutes for us to arrive and get out of the car.
The delay below doesn’t seem to be working and as soon as the presence is detected the vacuum pauses. Is anyone able to assist?

 alias: 'Pause - someone has returned home'
  trigger: 
   platform: state
   entity_id: binary_sensor.hk_presence_me, binary_sensor.hk_presence_wife
   to: 'on'
  condition:
    - condition: state
      entity_id: "vacuum.xiaomi_vacuum_cleaner"
      state: "cleaning"
  action:
   
    - service: vacuum.pause
      entity_id: vacuum.xiaomi_vacuum_cleaner
    - delay: '00:03:00'  
    - service: notify.pushovernotify
      data: 
       message: "Vacuum pausing after 3 minutes - someone returned home. {{state_attr('vacuum.xiaomi_vacuum_cleaner', 'cleaned_area')}} square meters cleaned."
       title: "Vacuum pausing after 3 minutes - someone returned home. {{state_attr('vacuum.xiaomi_vacuum_cleaner', 'cleaned_area')}} square meters cleaned."

The pause is the first action.

Move it below the delay, if I’m reading your description correctly.

1 Like

Perfect, that makes sense. I didn’t realize that the actions were executed sequentially like that.