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