Binary sensor to trinary sensor

Now, I know that there’s no such thing as a ‘trinary’ sensor, however, that is what I’d like to achieve and am looking for some suggestions as to the best way.

I have two binary sensors exposed to HA that indicate if a water pipe is blocked or burst and as s a result, in the HA front end, this shows up as two entities.

What I would like to see in the front end is one entity that shows the state as Blocked or Burst or Clear (trinary!).

Is this best done in HA and if so, how, or can it be achieved in ESPHome?

I’m just looking for a pointer as to the best way forward.

TIA

Use a “select” sensor type, which is basically the extension of a binary sensor to an arbitrary number of pre-defined values, and a direct equivalent to the same “select” type in HA.

Perfect!

Thank you for taking the time. I appreciate it.