Visuaslize text on dashboard

Hello, according to a given input, is it possible to combine a text to be displayed in the dashboard?
For example, the heat pump returns me 1 for an error, and 0 for completely normal. I would like to show “error” or “normal”.
thanks in advance for the help.