SOLVED Sending a text to a ESPhome LCD

Hi,

i have a 2x16 LCD and a rfid-reader on ESPhome running, the default text “hello world” works, also if i use the HA developer-tools, but not in an automation.
Goal is to send different text when differnt tags are detected.

Can someone help me finding the error?

here my automation:

alias: Test
description: ''
trigger:
  - platform: tag
    tag_id: 85-92-BB-79
action:
  - service: input_text.set_value
    data:
      value: '  Hello Guest!     Welcome   '
    target:
      entity_id: rfid_lcd.esp_rc522_rfid
mode: single

the esphome-part:

text_sensor:
  - platform: homeassistant
    entity_id: rfid_lcd.esp_rc522_rfid
    name: "rfid lcd"
    id: "rfid_lcd"

display:
  - platform: lcd_gpio
    dimensions: 16x2
    data_pins:
      - 14
      - 12
      - 13
      - 15
    enable_pin: 02
    rs_pin: 01
    lambda: |-
      it.print("Hello World!");
      it.printf(id(rfid_lcd).state.c_str());

Solved!
i used the helper:

The preferred way to configure an input text is via the user interface at SettingsDevices & ServicesHelpers. Click the add button and then choose the Text option

and now it works!