Trigger/action won't work together, but separately they work!

This is driving me nuts.

These automations won’t work, nothing happens. But if I separate them they work?!

## CLOSET
- alias: 'Closet Light On'
  trigger:
    - platform: state
      entity_id: binary_sensor.guestroom_closet_sensor_6_0
      state: 'on'
  action:
    - service: light.turn_on
      data:
        entity_id: light.guest_room_closet
        rgb_color: [255, 197, 143]
        brightness: 130

- alias: 'Closet Light Off'
  trigger:
    - platform: state
      entity_id: binary_sensor.guestroom_closet_sensor_6_0
      state: 'off'
  action:
    - service: light.turn_off
      data:
        entity_id: light.guest_room_closet

This works:

test_on:
  sequence:
    - service: light.turn_on
      data:
        entity_id: light.guest_room_closet
        rgb_color: [255, 197, 143]
        brightness: 130
test_off:
  sequence:
    - service: light.turn_off
      data:
        entity_id: light.guest_room_closet

And this too:

- alias: 'Test 1'
  trigger:
    - platform: state
      entity_id: binary_sensor.guestroom_closet_sensor_6_0
      state: 'on'
  action:
    - service: notify.ios_iphone
      data:
        message: 'Closet doot opened'
        title: 'Home Assistant'

- alias: 'Test 2'
  trigger:
    - platform: state
      entity_id: binary_sensor.guestroom_closet_sensor_6_0
      state: 'off'
  action:
    - service: notify.ios_iphone
      data:
        message: 'Closet door closed'
        title: 'Home Assistant'

I can’t see what I’m doing wrong and I get not errors in the log…

More testing, I moved the automation around and it turns out it WORKS if site above the following automation and won’t work if it’s below.

Can anyone see something I’m missing. Clearly I’m blind or something because I’ve been staring at this for hours now…

## BATHROOM (UPPER)
- alias: 'Bathroom (upper) Day'
  trigger:
    - platform: state
      entity_id: binary_sensor.bathroom_upper_sensor_20_0
      state: 'on'
  condition:
    condition: time
    after: '06:00:00'
    before: '22:30:00'
  action:
    - service: light.hue_activate_scene
      data:
        group_name: 'Bathroom'
        scene_name: 'Bright'
    - service: script.bathroom_upper_sonos

- alias: 'Bathroom (upper) Night'
  trigger:
    - platform: state
      entity_id: binary_sensor.bathroom_upper_sensor_20_0
      state: 'on'
  condition:
    condition: time
    after: '22:30:00'
    before: '06:00:00'
  action:
    service: light.hue_activate_scene
    data:
      group_name: 'Bathroom'
      scene_name: 'Bathroom Night'

- alias: 'Bathroom (upper) Off'
  trigger:
    - platform: state
      entity_id: binary_sensor.bathroom_upper_sensor_20_0
      state: 'off'
  action:
    - service: shell_command.phue_bathroom_upper_off
    - service: media_player.sonos_unjoin
      data:
        entity_id: media_player.bathroom_upper
    - service: media_player.turn_off
      data:
        entity_id: media_player.bathroom_upper

I’m not sure this was the issue or my 10x restarts, but after I changed this it started working.

Before:

  action:
    service: light.hue_activate_scene
    data:
      group_name: 'Bathroom'
      scene_name: 'Bathroom Night'

After:

  action:
    - service: light.hue_activate_scene
      data:
        group_name: 'Bathroom'
        scene_name: 'Bathroom Night'