Automation with state change and a different entity last changed as a condition

Recently I got my GE washer and dryer added with the smart HQ integration. So now I have access to entities such as door open/closed and machine state. I set up an automation that announces “Your laundry is done” through Alexa with TTS when the machine state changes from Run to Finished. This works just fine. I wanted to do another automation with the following setup. When the washing machine state goes from Run to Finish and the state of the door has not changed since Finish after 15 minutes then announce “Stop being lazy and get your laundry”. I tried do the second part as a condition but I can’t seem to get it to work. Any ideas or suggestions?

platform: state
entity_id:

  • sensor.gs102224g_laundry_machine_state
    from: Run
    to: Finished
    for:
    hours: 0
    minutes: 0
    seconds: 0

condition: template
value_template: ‘{{ (as_timestamp(now())-as_timestamp(states.binary_sensor.gs102224g_laundry_door.last_updated)) > 900 }}’

You need to incorporate the 15 minutes into your trigger. What you currently have is being triggered at the same time as the other automation. The second Alexa TTS isn’t being played because the service calls are being sent too close together.

trigger:
  - platform: state
    entity_id:
      - sensor.gs102224g_laundry_machine_state
    from: Run
    to: Finished
    for:
      minutes: 15
condition:
  - condition: template
    value_template: |-
      {{ now() - timedelta(seconds=900) > 
      states.binary_sensor.gs102224g_laundry_door.last_updated }}
action:

thanks so much I will give that a try.

I just can’t seem to get the Smart HQ integration working after installing it a few times through HACS… You got any tips?