AirTag "integration" (user friendly + device tracker)

I tried to do it but without success. I have here the part your are missing:

alias: Airtag Meta Input Text
description: ""
trigger:
  - platform: state
    entity_id:
      - input_text.airtag1
      - input_text.airtag2
condition: []
action:
  - metadata: {}
    data:
      value: >-
        {{ states('input_text.airtag1') | replace("Identifica un oggetto
        trovato", "") | replace("Ce l'hai tu", "") | replace("Ultimo
        rilevamento","") | replace("Ce l'hai tu", "") | replace("Persone", "")|
        replace("Persone", "") | replace("Dispositivi", "") | replace("Oggetti",
        "") | replace("Condiviso con Irene", "") }} {{
        states('input_text.airtag2') | replace("Identifica un oggetto trovato",
        "") | replace("Ce l'hai tu", "") | replace("Ultimo rilevamento","") |
        replace("Ce l'hai tu", "") | replace("Persone", "")| replace("Persone",
        "") | replace("Dispositivi", "") | replace("Oggetti", "") |
        replace("Condiviso con Irene", "")}}
    target:
      entity_id: input_text.airtag
    action: input_text.set_value
  - delay:
      hours: 0
      minutes: 1
      seconds: 0
      milliseconds: 0
  - metadata: {}
    data: {}
    action: rest.reload
mode: single

Please notice that text like “Identifica…” is the text in my local language that i want to replace with “”. With this tricki merge the 2 input_text coming from the two shortcuts in the regular input_text.airtag shorter than 255 used by the automations.