No notification when adding two triggers

I have a script that works ok when i delete two lines in a part of this script that makes a variable notification.
I can use these two variables in other automations and there is does work.

          trigger_van: "{{trigger.from_state.state}}"
          trigger_naar: "{{trigger.to_state.state}}"                              

cant i use these two triggers within this automation, Does a inputboolean trigger has no from to

ps
I know that this automation can be build much shorter, but this case is more for understanding homeassistant…

this is my script

alias: visite
description: ""
trigger:
  - platform: state
    entity_id:
      - input_boolean.visite
    id: aanwezig
    to: "on"
  - platform: state
    entity_id:
      - input_boolean.visite
    id: afwezig
    to: "off"
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - aanwezig
              - afwezig
        sequence:
          - service: script.turn_on
            data:
              variables:
                keuze: "{{trigger.to_state.state}}"
                dagtype: "{{dagtype}}"
                actiontrigger: "{{trigger.entity_id}}"
                actionstate: "{{trigger.to_state.state}}"
            target:
              entity_id: script.visite
  - service: script.turn_on
    data:
      variables:
        bericht_titel: VISITE ({{trigger.id}})
        bericht_prg: visite (automation)
        bericht_id: 1
        bericht_logtype: mededeling
        bericht_inhoud:
          dagtype: "{{dagtype}}"
          trigger_id: "{{trigger.id}}"
          trigger_entity_id: "{{trigger.entity_id}}"
          trigger_van: "{{trigger.from_state.state}}"
          trigger_naar: "{{trigger.to_state.state}}"                              
    target:
      entity_id: script.default_bericht
    enabled: true
variables:
  dagtype: "{{ states('input_select.dagtypen') }}"
mode: single