Script lights snapshot scene

What I want to do is simple;

  1. Save a snapshot of the light states (scene_id: before)
  2. Flash the lights a bit
  3. Return the lights to their saved state (scene_id: before)

What am I missing here?

alias: snapshot lights
sequence:
  - service: scene.create
    data:
      snapshot_entities:
        - light.vardagsrummet
        - light.diskbanken
        - light.fonster_sovrummet
      scene_id: before
  - service: light.turn_on
    target:
      entity_id:
        - light.vardagsrummet
        - light.diskbanken
        - light.fonster_sovrummet
    data:
      flash: short
      brightness: 80
  - delay:
      hours: 0
      minutes: 0
      seconds: 12
      milliseconds: 0
  - service: scene.turn_on
    target:
      entity_id: scene.before
    data: {}
mode: single

I personally don’t see any issues here, what does or doesn’t work here? Have to debugged it to see where it fails? Do you have any errors in the logs?