Scene Snapshot Stopped Working In Automations & Scripts

I have had automation where, when triggered initially, it would create a scene snapshot of the lights, then turn all the lights off. And when triggered again, it would restore the state of the lights. But the scene.create with snapshot_entities stopped working. Now the automation does turn off all the lights on the first go, but it can not turn it back on.

I tried to figure if I have accidentally changed the automation entity, but everything looks the same as it used to be before. scene_create with snapshot_entities suddenly stopped working.

To test if it was just that automation or the problem was something else, I have created a script, when I execute it, it does not turn the lights back on as expected.

Following is the YAML for the script:

alias: Scene Snapshot Tester
sequence:
  - service: scene.create
    data:
      scene_id: lights_before
      snapshot_entities:
        - switch.midway_light
        - switch.foyer_light
        - switch.passage_light
        - switch.office_light
        - switch.kitchen_light
        - switch.dining_light
        - switch.living_light
        - switch.master_ceiling_light
        - switch.entry_light
        - switch.landing_light
        - light.curio_light
        - switch.pantry_light
        - switch.play_area_ceiling_light
  - service: switch.turn_off
    target:
      entity_id:
        - switch.midway_light
        - switch.foyer_light
        - switch.passage_light
        - switch.office_light
        - switch.kitchen_light
        - switch.dining_light
        - switch.living_light
        - switch.master_ceiling_light
        - switch.entry_light
        - switch.landing_light
        - light.curio_light
        - switch.pantry_light
        - switch.play_area_ceiling_light
  - wait_template: ''
    continue_on_timeout: true
    timeout: '00:00:05'
  - service: scene.turn_on
    target:
      entity_id: scene.before_movie
  - wait_template: ''
    timeout: '00:00:02'
    continue_on_timeout: true
  - service: scene.turn_on
    target:
      entity_id: scene.tester_scene
mode: single

Any help or insight is highly appreciated.

Never mind, I had the wrong scene id all along.

I guess I need my coffee!!