Displaying a defined variable on Lovelace

Options:

  1. Stuff the value in the appropriate typed input_* helper for your data then display that.

  2. If it’s text over 255 char. Then create a trigger text template sensor and store it there

I think trigger based template sensors are listed under template in the cookbook The Home Assistant Cookbook - Index

Either way then youll either use the appropriate card for the helper entity you create or something like the markdown card if you use a trigger based sensor