I’m using a template to show the state of a binary_sensor of device class of “presence”. However, it is currently showing on/off rather than home/away. Is there a way of getting the later in a template ?
Try this in your template
{% set state=states('your.binary.sensor') %}
{% if state=='off' %}
Home
{% elif state=='on' %}
Away
{% else %}
Home
{% endif %}
Show a Dev tools → state screenshot for this sensor.