TemplatesSyntaxError

So my automations started showing this error: Invalid config for [automation]: invalid template (TemplateSyntaxError: unexpected '}', expected ')') for dictionary value @ data['action'][0]['data_template']['hs_color']. Got None. (See /config/configuration.yaml, line 9).
I have poured through every line and even exported it to Atom to see if the the IDLE would help me identify any basic syntax errors but I am flummoxed. It says there’s an unexpected ‘}’ with an expected ‘)’)?

I tried looking at EVERY curly bracket and it doesn’t seem I have any misplaced one.

I’ve been on and off this program for awhile

- id: Wake_up!
  alias: 1030 Lights On
  trigger:
    platform: time
    at: '10:30:00'
  action:
    service: light.turn_on
    data_template:
      brightness_pct: 100
      hs_color:
      - '{{ range(360)|random }}'
      - '{{ range(80,101)|random }}'
    entity_id: group.upstairs   

- id: CC_Kitchenalcove
  alias: cckitchenalcove
  trigger:
    minutes: /28
    seconds: 0
    platform: time_pattern
  condition:
  - condition: time
    after: '10:30:00'
    before: '03:00:00'
  - condition: state
    entity_id: light.2f_lc_living_room_east
    state: 'on'
  action:
    service: light.turn_on
    data_template:
      brightness_pct: 100
      hs_color:
      - '{{ range(360)|random }}'
      - '{{ range(80,101)|random }}'
    entity_id: light.2f_lc_living_room_east
- id: CC_projector
  alias: ccprojector
  trigger:
    minutes: /27
    seconds: 0
    platform: time_pattern
  condition:
  - condition: time
    after: '10:30:00'
    before: '03:00:00'
  - condition: state
    entity_id: light.1f_lc_living_room_south
    state: 'on'
  action:
    service: light.turn_on
    data_template:
      brightness_pct: 100
      hs_color:
      - '{{ range(360)|random}}'
      - '{{ range(80,101)|random}}'
    entity_id: light.1f_lc_living_room_south
- id: CC_LRAlcove
  alias: cc_lr_alcove
  trigger:
    minutes: /26
    seconds: 0
    platform: time_pattern
  condition:
  - condition: time
    after: '10:30:00'
    before: '03:00:00'
  - condition: state
    entity_id: light.1f_living_room_east
    state: 'on'
  action:
    service: light.turn_on
    data_template:
      brightness_pct: 100
      hs_color:
      - '{{ range(360)|random}}'
      - '{{ range(80,101)|random}}'
    entity_id: light.1f_living_room_east
    
- id: CC_TimeCorner
  alias: cctimecorner
  trigger:
    minutes: /33
    seconds: 0
    platform: time_pattern
  condition:
  - condition: time
    after: '10:30:00'
    before: '03:00:00'
  - condition: state
    entity_id: light.2f_lc_living_room_se
    state: 'on'
  action:
    service: light.turn_on
    data_template:
      brightness_pct: 100
      hs_color:
      - '{{ range(360)|random}}'
      - '{{ range(80,101)|random}}'
    entity_id: light.2f_lc_living_room_se
    
- id: CC_Lamptop
  alias: CCLamptop
  trigger:
    minutes: /32
    seconds: 0
    platform: time_pattern
  condition:
  - condition: time
    after: '10:30:00'
    before: '3:00:00'
  - condition: state
    entity_id: light.2f_bedroom
    state: 'on'
  action:
    service: light.turn_on
    data_template:
      brightness_pct: 100
      hs_color:
      - '{{ range(360)|random}}'
      - '{{ range(81,101)|random}}'
    entity_id: light.2f_bedroom

- id: CC_Lampmid
  alias: CCLampmid
  trigger:
    minutes: /30
    seconds: 0
    platform: time_pattern
  condition:
  - condition: time
    after: '10:30:00'
    before: '3:00:00'
  - condition: state
    entity_id: light.2f_bedroom_lamp_mid
    state: 'on'
  action:
    service: light.turn_on
    data_template:
      brightness_pct: 100
      transition: 2
      hs_color:
      - '{{ range(360)|random}}'
      - '{{ range(81,101)|random}}'
    entity_id: light.2f_bedroom_lamp_mid
  mode: restart

- id: CC_LampBot
  alias: Lampbot
  trigger:
    minutes: /24
    seconds: 0
    platform: time_pattern
  condition:
  - condition: time
    after: '10:30:00'
    before: '03:00:00'
  - condition: state
    entity_id: light.2f_lamp_bottom
    state: 'on'
  action:
    service: light.turn_on
    data_template:
      brightness_pct: 100
      transition: 3
      hs_color:
      - '{{ range(360)|random}}'
      - '{{ range(80,101)|random}}'
    entity_id: light.2f_lamp_bottom
  mode: restart
  
- id: CC_overhead
  alias: CC_overhead
  trigger:
    minutes: /24
    seconds: 0 
    platform: time_pattern
  condition:
  - condition: time
    after: '10:30:00'
    before: '03:00:00'
  - condition: state
    entity_id: light.2f_work_area_overhead
    state: 'on'
  action:
    service: light.turn_on
    data_template:
      brightness_pct: 100
      transition: 1
      hs_color:
      - '{{ range(360)|random}}'
      - '{{ range(81,101)|random}}'
    entity_id: light.2f_work_area_overhead
    
- id: CC_work_areanorth
  alias: ccbannister
  trigger:
    minutes: /22
    seconds: 0
    platform: time_pattern
  condition:
  - condition: time
    after: "10:30:00"
    before: "03:00:00"
  - condition: state
    entity_id: light.2f_lc_work_area_north
    state: 'on'
  action:
    service: light.turn_on
    data_template:
      brightness_pct: 100
      transition: 4
      hs_color:
      - '{{ range(360)|random}}'
      - '{{ range(80,101)|random}}'
    entity_id: light.2f_lc_work_area_north
- id: CC_bedroombay
  alias: br_alcovecc
  trigger: 
    minutes: /37
    seconds: 0
    platform: time_pattern
  condition:
  - condition: time
    after: "10:30:00"
    before: "03:00:00"
  - condition: state
    entity_id: light.2f_lc_bedroom_bay_window
    state: 'on'
  action:
    service: light.turn_on
    data_template:
      brightness_pct: 100
      transition: 4
      hs_color:
      - '{{ range(360|random}}'
      - '{{ range(80,101|random}}'
      
      
- id: 'TaskerMorning'
  alias: Morning Routine
  trigger:
  - platform: template
    value_template: >
      {% set alarm_time = as_timestamp(states('input_datetime.flemming_phone_next_alarm_date_and_time')) %}
      {% set time_now = as_timestamp(states('sensor.date_time').replace(',','')) %}
      {{ time_now >= ( alarm_time - 900 ) }}
  condition:
  - condition: state
    entity_id: input_boolean.flemming_phone_alarm_set
    state: 'on'
  - condition: state
    entity_id: input_boolean.flemming_home
    state: 'on'
  action:
  - alias: ''
    data: {}
    service: script.wakeup_light_soverom

Look at the action in the second to last automation (CC_bedroombay)

- '{{ range(360|random}}'
- '{{ range(80,101|random}}'