Part of automation will not be executed

Hello,
I have 2 automations set up, and these should trigger 2 actions by now: Depending on who´s leaving earlier (me or my girlfriend), all lights should be turned off and a camera should be activated.
This is my code:

- id: '42'
  alias: Leaving-home-weekday-01
  trigger:
  - entity_id: person.rebecca
    event: leave
    platform: zone
    zone: zone.home
  condition:
    condition: and
    conditions:
    - condition: state
      state: not_home
      entity_id: person.philipp
    - condition: time
      after: '05:30:00'
      before: '08:30:00'
    - condition: time
      weekday:
        - mon
        - tue
        - wed
        - thu
        - fri
  action:
  - service: light.turn_off
    entity_id: group.all_lights
  - service: switch.turn_on
    entity_id: switch.foscam_wohnen 

- id: '43'
  alias: Leaving-home-weekday-02
  trigger:
  - entity_id: person.philipp
    event: leave
    platform: zone
    zone: zone.home
  condition:
    condition: and
    conditions:
    - condition: state
      state: not_home
      entity_id: person.rebecca
    - condition: time
      after: '05:30:00'
      before: '08:30:00'
    - condition: time
      weekday:
        - mon
        - tue
        - wed
        - thu
        - fri
  action:
  - service: light.turn_off
    entity_id: group.all_lights
  - service: switch.turn_on
    entity_id: switch.foscam_wohnen

I tested it an hour ago, and the strange thing is that the camera turned on, but the lights havn´t turned off.
I think it´s no big deal to turn all lights off, but there seems to be a mistake in my automation?

image

Are there only lights in your group or are there switches as well?

If mixed use the homeassistant.turn_on service instead.

Thanks, I´ll give it a try and report back