Scene starting a script with delay not working

Hello everyone,
I am trying to use a script with a delay in a scene. If I trigger the script, everything works fine. But if I trigger the script through the scene, anything after the delay is ignored. What am I doing wrong?

scene:
  - name: Leave home
    entities:
        script.leave_home1:
          state: true
        script.leave_home2:
          state: true
        group.stereo: false

script:
  leave_home1:
    sequence:
      - delay: '00:00:10'
      - service: light.turn_off
        data:
          entity_id: group.all_lights

  leave_home2:
    sequence:
      - condition: and
        conditions:
          - condition: numeric_state
            entity_id: sensor.outside_temperature_daikinap36230_outside_temperature
            above: 29
          - condition: or
            conditions:
            - condition: sun
              before: sunset
            - condition: sun
              after: sunrise
      - service: cover.set_cover_position
        data:
          entity_id: cover.tapparella_camera
          position: 0
      - service: cover.set_cover_position
        data:
          entity_id: cover.tapparella_salotto_destra
          position: 0
      - service: cover.set_cover_position
        data:
          entity_id: cover.tapparella_tapparella_sinistra
          position: 0

Anyone who can help with this, please?

What version of HA are you running. In recent versions of HA it is not possible to start a script from a scene.

2 Likes

Ah that’s why then! I’m running HA 0.102.1.
Then I should just set up a script that is launched by a button in the UI?

Yes indeed.

Thank you very much! You just avoided me a headache :slight_smile: