Binary switch state feedback

Hi all

I’m using the gpio pins as sensors for various things. Some are buttons, some are magnetic sensors.

I’m wondering if there is a way in the front end to change the feedback from off and on to something custom. Like open and closed, pressed and ready etc.

I’ve seen templating somewhere but I’m hoping to be helped a little.

Thank you

This might help… https://home-assistant.io/components/sensor.template/#renaming-sensor-output