Check multiple calendars for an entry

Hello everyone, is there another way to check multiple calendars? I tried it like this, but it didn’t work. It works with just 1 calendar in it

service: calendar.get_events
data:
  duration:
    hours: 24
  start_date_time: "{{ today_at() + timedelta(days=1) }}"
target:
  entity_id:
    - calendar.anthony
    - calendar.andrew
response_variable: agenda
enabled: true
{{ agenda['calendar.anthony', 'calendar.andrew' ]['events']
  | selectattr('summary', 'contains', '@') 
  | list | count > 0 }}

"I would like to check several calendars for a ‘code symbol’ and trigger the automation only if there is an @ in the text. This would be the original YAML code.

alias: Anthony Kalender Benachrichtigung 18.00uhr mit dauerhafter Erinnerung
description: ""
trigger:
  - platform: time
    at: "18:00:00"
    id: Zeit
  - platform: webhook
    allowed_methods:
      - GET
    local_only: false
    id: webhook-anthony
    webhook_id: >-
      kalender-benachrichtigung-17-00uhr-morgen-mit-dauerhafter-erinnerung-ORQ5drI_-IEFGCPV0Ich6erF
condition: []
action:
  - if:
      - condition: trigger
        id:
          - Zeit
    then:
      - service: calendar.get_events
        data:
          duration:
            hours: 24
          start_date_time: "{{ today_at() + timedelta(days=1) }}"
        target:
          entity_id:
            - calendar.anthony
        response_variable: agenda
        enabled: true
      - condition: template
        value_template: |-
          {{ agenda['calendar.anthony']['events']
            | selectattr('summary', 'contains', '') 
            | list | count > 0 }}
      - delay:
          hours: 0
          minutes: 0
          seconds: 5
          milliseconds: 0
      - service: notify.whatsapp_alex
        data:
          title: Kalender
          message: Anthony hat eine Kalenderbestätigung für morgen erhalten
      - repeat:
          sequence:
            - if:
                - condition: zone
                  entity_id: person.anthony
                  zone: zone.home
              then:
                - service: notify.alexa_media_anthony_echo_dot
                  data:
                    data:
                      type: tts
                    title: Kalender
                    message: >-
                      Anthony, morgen hast du einen Kalendereintrag, bitte im
                      Kalender nachschauen und dort Bestätigen.
                - service: notify.whatsapp_anthony
                  data:
                    message: >-
                      Anthony, morgen hast du einen Kalendereintrag, bitte im
                      Kalender nachschauen und dort Bestätigen.
              enabled: true
            - delay:
                hours: 0
                minutes: 30
                seconds: 0
                milliseconds: 0
          until:
            - condition: or
              conditions:
                - condition: state
                  entity_id: input_boolean.kalenderereignis_morgen
                  state: "on"
                - condition: time
                  after: "21:45:00"
  - if:
      - condition: trigger
        id:
          - webhook-anthony
    then:
      - service: input_boolean.turn_on
        data: {}
        target:
          entity_id: input_boolean.kalenderereignis_morgen
      - service: notify.whatsapp_alex
        data:
          message: Anthony hat den Kalendereintrag bestätigt.
      - delay:
          hours: 0
          minutes: 35
          seconds: 0
          milliseconds: 0
      - service: input_boolean.turn_off
        data: {}
        target:
          entity_id: input_boolean.kalenderereignis_morgen
mode: parallel
max: 3


Does anyone have an idea?