How can I change the presence state display texts "Home", "Away" and "Unknown"?

I am setting up HA for my elderly mother who lives alone but has family members regularly staying at weekends. I want to track those guests. I have set up presence detection, but the dashboard shows them as “Home”. “Away” or “Uknown”. I want to change these texts because the only person who is at home is my mother, “Away” implies they should be here, and “Unknown” makes it look like the person rather than the location is not known. I will be using zones defined for each person such that “Home” would mean they are at their home not at my mother’s home.

How can I change the presence display texts for everybody, e.g. “Home” to somehing like “Visiting” or “Present” or “Here”; “Away” to somehing like “Not visiting” or “Not present” or “Not here”; and “Unknown” to “Location unknown” or just blank?

There are some solutions to your problem. The first would be to create a template-type sensor translating the state of the person to the text you want, see: Template - Home Assistant

The other solution I thought of would be to translate the text directly on your dashboard. For example, suppose the entity of the person Maria is device_tracker.s22_ultra. Create an entry in your dashboard using templates:

- type: markdown
  title: Dashboard
  content: |
    {% if is_state('device_tracker.s22_ultra', 'home') %}
    <ha-alert alert-type="success">**Maria** is visiting mom.</ha-alert>
    {% else if is_state('device_tracker.s22_ultra', 'away') %}
    <ha-alert alert-type="success">**Maria** is not present.</ha-alert>
    {% else %}
    <ha-alert alert-type="error">**Maria** location unknown.</ha-alert>
    {% endif %}

Instead of a markdown, you can also use a custom-card on your dashboard, see: GitHub - custom-cards/button-card: ❇️ Lovelace button-card for home assistant

1 Like

Thanks. I need to get my head around templates, but will give it a go.