Automation with multi conditions different action

Hello,

I try to do an automation to switch light if motion detected.
If luminance below 20 turn on light01 and if time is between H and H turn On also light02 but my conditions not working.

Can I have some help pleaase ?

Thx

- id: '1562595417901'
  alias: Lumiere Cuisine On
  trigger:
  - entity_id: binary_sensor.motion_cuisinecombi
    from: 'off'
    platform: state
    to: 'on'
  condition:
  - below: '20'
    condition: numeric_state
    entity_id: sensor.fibaro_system_fgms001_motion_sensor_luminance_2
  action:
  - data:
      entity_id: light.fibaro_system_fgd212_dimmer_2_level
    service: light.turn_on
#Add the following line
  condition:
  - below: '20'
    condition: numeric_state
    entity_id: sensor.fibaro_system_fgms001_motion_sensor_luminance_2
  - after: '17:00:00'
    before: '23:00:00'
    condition: time
  action:
  - data:
      entity_id: switch.fibaro_system_fgs211_switch_3kw_switch
    service: switch.turn_on

You can’t have multiple condition and action blocks like that. You need two separate automations.