Multiple conditions in action

Hi,

I would like to have multiple conditions in an action, depending of for example what time it is. I’m a beginner, and obviously below is wrong method.

Can some expert help me, please? :blush:

  - condition: or
    conditions:
      - condition: state
        entity_id: group.personsinfamily
        state: not_home
  - service: scene.turn_on
    target:
      entity_id: scene.candles
    data:
      transition: 5
  - condition: or
    conditions:
      - condition: time
        after: input_datetime.morning
        before: input_datetime.night
  - service: automation.trigger
    target:
      entity_id: automation.kitchen_day
  - condition: or
    conditions:
      - condition: time
        after: input_datetime.night
        before: input_datetime.morning
  - service: automation.trigger
    target:
      entity_id: automation.kitchen_night
mode: single

https://www.home-assistant.io/docs/scripts#choose-a-group-of-actions

Replying myself with complete solution, in case someone interested.

- choose:
      - conditions:
          - condition: state
            entity_id: group.personsinfamily
            state: not_home
        sequence:
          - service: scene.turn_on
            target:
              entity_id: scene.candles
      - conditions:
          - condition: time
            after: input_datetime.morning
            before: input_datetime.night
        sequence:
          - service: automation.trigger
            target:
              entity_id: automation.kitchen_day
      - conditions:
          - condition: time
            after: input_datetime.night
            before: input_datetime.morning
        sequence:
          - service: automation.trigger
            target:
              entity_id: automation.kitchen_night
    default: []
mode: single