Publish MQTT messages and text on hassio

I’m looking to publish text and mqtt messages on the hassio dashboard so I can report on events.

Is some sensors are publishing an alarm, I want to display this on the screen so I can see from what sensor it came ant publish some additional text arround it to give the event some context.
ex : how the alarm could be triggerd
what actions can be taken to remove/solve the alarm

You could use an mqtt binary sensor that triggers a persistent notification.

this how I’m doing it now but without the flexibility to change the message itself based on the initial sensor.

Now I have indeed multiple sensor that trigger a central alarm binary sensor that triggers the notification message also but I want to change the message based on the message the sensor sends .
so ideal I would be able to pass a string from an mqtt automations script to the messaging script

A couple of example mqtt payloads and messages to be displayed would help.