Howto display plain text Lovelace

I’ve been doing some work on integrating my alarm panel into HA and used a solution through Custom_UI tiles to display plain text from the keypad. I’ve been searching for an alternative to use in Lovelace but cannot come up with a way to do just that …

Anyone have an idea howto solve it?

I think this is it

I’ve seen that one but it cannot update an mqtt state. The text is pushed to an mqtt topic.

Can you perhaps use an inpu_text and push the new text with input_text.set_value?