Malformed dictionary?

Just getting this error message (first script)

What’s the error being caused by :frowning: ?

- alias: 'Switch on Random Lights when we are out'
  hide_entity: False
  trigger:
    platform: numeric_state
    entity_id: sensor.solar_angle
    below: -20.0
  condition:
    condition: state
    entity_id: group.family
    state: 'not_home'
  action:
    - delay: '0{{ range(0,1) | random | int }}:{{ range(20,59) | random | int }}:00'
    - service: light.turn_on
      entity_id: light.aj_floor
      data:
        rgb_color: [255, 255, 255]
        brightness: 100
    - delay: '0{{ range(0,1) | random | int }}:{{ range(20,59) | random | int }}:00'
    - service: light.turn_off
        entity_id: light.aj_desk
    - delay: '0{{ range(0,2) | random | int }}:{{ range(10,59) | random | int }}:00'
    - service: light.turn_on
        entity_id: light.aj_desk
      data:
        rgb_color: [255, 215, 255]
        brightness: 100
    - delay: '0{{ range(0,1) | random | int }}:{{ range(20,59) | random | int }}:00'
    - service: light.turn_off
      entity_id: light.aj_desk