Webhook triggers outlet for X minutes

Need a bit of help trying to get this automation to work. I have a Webhook set up as a trigger which turns on a Smart Life outlet. The base function works perfectly fine, but one of the criteria that I was trying to implement is when the outlet is turned on It’s only for one minute. I probably have something off with the way a timer is set up, but I can’t quite understand what to do based on the documentation. I’ve seen lots of examples of events timed to a specific time not so much a countdown.
Could anybody offer some assistance on this?

Thanks


alias: switch 1
description: switch1
trigger:
  - platform: webhook
    allowed_methods:
      - POST
      - PUT
    local_only: true
    webhook_id: "-ZQ3UTJjiNNMs1Mx3RbRp0xGH"
condition: []
action:
  - type: turn_on
    device_id: 10cc050c009e3e1688b55734625e105c
    entity_id: 367f31e898a0b87aba258477a7b430a4
    domain: switch
  - choose:
      - conditions:
          - condition: device
            type: is_on
            device_id: 10cc050c009e3e1688b55734625e105c
            entity_id: 367f31e898a0b87aba258477a7b430a4
            domain: switch
            for:
              hours: 0
              minutes: 1
              seconds: 0
        sequence:
          - type: turn_off
            device_id: 10cc050c009e3e1688b55734625e105c
            entity_id: 367f31e898a0b87aba258477a7b430a4
            domain: switch
mode: single

That condition will always fail, because it is being checked immediately after the light is turned on. Conditions do not wait. There are a variety of Wait actions available, the most basic of which is the Delay action.

Thank you. I’ll look at what you suggested.