Scene not working for every entity

I have an automation that creates a scene when a motion sensor turns on lights, and another automation that uses the scene to restore (e.g. turn off) lights when the motion goes away.

I use a scene so the motion on/off does not override a manual use or other automations.

One light is not being turned off (light.rear_floods). The others are.
The two lights are zwave. The landscape is MQTT. The only bug in my system is these lights do not have unique IDs, but both do not, while only the rear_floods are not behaving.
Below is my code.

I found this thread, but it did not go anywhere (my bet is people do not use scenes very much).

Should I run the scene twice?
Any recommendations are appreciated.

- alias: Rear motion lights on
  trigger:
    - platform: state
      entity_id: binary_sensor.reardeck
      to: 'on'
  condition:
  - condition: state
    entity_id: sensor.night_active_time
    state: 'True'
  - condition: state
    entity_id: input_boolean.rear_motion_activated    # trigger only once
    state: 'off'
  action:
    - service: scene.create
      data:
        scene_id: rear_before_motion
        snapshot_entities:
        - light.rear_floods
        - light.master_exterior_c_light
        - switch.landscape
        - input_boolean.rear_motion_activated
    - service: homeassistant.turn_on
      entity_id:
        - light.rear_floods
        - light.master_exterior_c_light
        - switch.landscape
        - input_boolean.rear_motion_activated


- alias: Rear motion lights off
  trigger:
    platform: state
    entity_id: binary_sensor.reardeck
    from: 'on'
    to: 'off'
    for:
      minutes: 5
  condition:
  - condition: state
    entity_id: input_boolean.rear_motion_activated    # trigger only if motion occurred
    state: 'on'
  action:
  - service: scene.turn_on
    target:
      entity_id: scene.rear_before_motion