Recieve MQTT message and transfer it to a sensor in HA

Hi,

I have a NodeRed flow where I am receiving the departure time for a ferry and I publish the time via MQTT to HA. The message topic is: Trafikverket/Malöleden and the payload is a string with just the time for the next departure of the ferry in the format 18:00:00

I´m trying to set this value in a sensor in HA but fail to do so because I do not know how to configure strings as value template.

Here is the MQTT topic…
image

And here is my example in HA:
#Malöleden kommande avgångar

  • platform: mqtt
    state_topic: ‘Trafikverket/Malöleden’
    name: Malöleden kommande avgångar
    unit_of_measurement: “date”
    value_template: “{{ string(value_json[0]) }}”

Can someone please help me how to get this value in to a sensor in HA.
Thanks in advance!!