Use motion to turn on lights, then short delay, then turn on other lights

I have used the blueprint to turn on certain lights when motion is detected, but would like to add a short delay, then switch on another light. The process would switch on lights over the stairs, then about 15 seconds later, switch on the downstairs hallway light.
As a newbie, I cannot figure out how to do this - keep getting errors when trying to do this in yaml. Is it simply not possible in a blueprint, or is there a way I can add extra steps?
This is what I have without any attempt to add the third light. Help ?

alias: Stairs Lights Turn when Motion is detected upstairs
description: >-
  Turn on the lights over the stairs if motion is detected at the south end of
  the hallway
condition:
  - condition: numeric_state
    entity_id: sensor.lumi_lumi_sensor_motion_aq2_illuminance_5
    below: 25
use_blueprint:
  path: homeassistant/motion_light.yaml
  input:
    motion_entity: binary_sensor.lumi_lumi_sensor_motion_aq2_iaszone_5
    light_target:
      entity_id:
        - light.upstairs_hallway_1st_m5_left_switch_stairs_ceiling_lights
        - light.upstairs_hallway_2nd_m5_left_switch_stairs_chandelier
        - light.upstairs_hallway_3rd_m5_right_switch_hallway_led_strip
    no_motion_wait: 30

Hi, the blueprint makes it easier of course but then you are limited to what is offered.
This is how it could work with a normal automation:

description: ""
mode: single
trigger:
  - type: motion
    platform: device
    device_id: <id>
    entity_id: binary_sensor.hall_motion_occupancy
    domain: binary_sensor
condition: []
action:
  - service: light.turn_on
    data: {}
    target:
      entity_id: light.hall
  - delay:
      hours: 0
      minutes: 0
      seconds: 15
      milliseconds: 0
  - service: light.turn_on
    data: {}
    target:
      entity_id: light.office
  - delay:
      hours: 0
      minutes: 2
      seconds: 0
      milliseconds: 0  - delay:
      hours: 0
      minutes: 2
      seconds: 0
      milliseconds: 0
  - service: light.turn_off
    data: {}
    target:
      entity_id:
        - light.hall
        - light.office

Thank you so much Nick. One quick question - what are the “data: {}” lines ? Do I need to put something in there ?

This could be

  - service: light.turn_on
    data:
      brightness_pct: 10
    target:
      entity_id:
        - light.hall

If you use the automation editor with the UI you can select different options which will show under data.
At the right top of your screen you can switch from UI to YAML for the entire automation or for each section/entry seperately.

Nick, sorry I did not thank you. Got them working thanks to you.
Or at least I did have them working until most (but not all) of my sonoff switches became unavailable this morning en masse.
Oh well, another day, another problem. Will see if they come back by themselves later.

Good that it works, you’re welcome!

I have a problem too with my zigbee network: no devices anymore after updating/rebooting my server… :angry:

Can you let me know if it comes back - or if you hear of a fix anywhere

I guess your problem has nothing to do with what caused mine: after rebooting the Linux rights no my coordinator had changed.
Setting them back brought my mesh up again.

I think your reply did help !
I rebooted HA within Proxmox, and the sensors came back.
Would not have thought of that without your comment, so thanks again.
At the risk of being cheeky, can I ask for another bit of help.
Want to switch on bedroom lights but only if no motion has been detected in the last, say, 30 seconds. Will use the bedroom door contact sensor to start it off, but is there a way to set this up using the history of the motion sensor inside the room ?
You may regret helping out with the previous question - there could be lots more of these to come ! Just don’t reply if this is an imposition. Or reply with something like, leave me alone and make a general post on the forum.

Owkay, you are using Proxmox as well!

What do you want to achieve by switching on the lights without motion?

If there was no motion, the lights will/(?should?) be off anyway, no?

Your scenario is not clear to me.

I do use Proxmox, but with absolutely no clue how it works - just watched a YouTube video about HA with Proxmox (Mark Watt Tech) and thought that looked like a good idea.
Not sure I have this fully thought through, but the initial idea is that if someone walks into a room, and there has been no motion before, the lights come on. If there has been motion detected, that suggests someone else is in the room, and may not want the lights to come on. Of course they could be sleeping, but I would only switch on some mild recessed lights. If someone is leaving a room (maybe in the morning when someone else is asleep), they will pass the same motion sensor, but I don’t want the lights to come on.
I have no way to detect more than one person in a room at the moment.
Very happy if you have an alternative suggestion, but no more spare sensors at the moment - and a real pain to get them here (Philippines)

Proxmox is ideal when you have hardware with ample RAM and if you want to run other services/systems.
It also has the advantage to take backups/snapshots of your virtual machine and the ability to offload them so they are safe in case that you Proxmox server fails.

On you light issue: motion sensors are not good for presence detection (someone is sitting/laying still)
By using a helper (input boolean) you can set a state where a person is already in the bedroom sleeping and use that state as a condition/action in your automation to switch on the light differently from the normal scenario.

Thanks again Nick
Absolutely no idea how an input boolean might work (or even what it really is), so will go off and do a bit of reading.

You can see them as a virtual switch that you turn on/off and which you use to set/read the state in your automation.
You find them under Settings → Devices & Services → Helpers tab.
There you create a new helper → Toggle

Nick
This is completely off topic but I am hoping you might be able to point me in the right direction.
I was trying to get external HA access using DuckDNS. Got to the point where I tried to login using the external URL, but it failed. I then tried getting in on the local network and that failed as well, so I have completely locked myself out.
I do have backups on google drive, but do I have to do a fresh HA install to be able to access the system? In the end,
I think my problem was with port forwarding - I use a router from the internet supplier, but then have a TP-Link mesh set up, which was not being run in Access Point mode, but in Mesh mode, so it in probably a NAT issue, which I will still have to resolve, but that is definitely not an issue for here.
Thanks
Mike