Templates for GPIO sensors

See the first post in the linked thread below for how to post your config and maintain formatting. It helps when trying to provide assistance.

platform: template
sensors:
  Alarm Status:
    value_template: '{% if is_state("binary_sensor.alarm", "on") %}Alarm On{% else %}Alarm Off{% endif %}'