How can I change device_tracker state name "not home"?

How can I change device tracker state name “not home” with another word on the group card?

You can use a template sensor for this.

Thx for reply. I’ve used it already before for another purpose. But I want to keep my gravatar, is it possible?

I know it is not properly but I’ve changed STATE_NOT_HOME = 'not_home' in > ./homeassistant/lib/python3.4/site-packages/homeassistant/const.py

I guess this will be possible when they implement localization? (Localization (L10n))

Yes sure, I voted now :blush:

This is how I did it:

sensors.yaml

  - platform: template
    sensors:
      murat:
        value_template: '{% if is_state("device_tracker.iphonemurat”, "home") %}Thuis{% else %}Niet thuis{% endif %}'
        friendly_name: 'Murat’

customize.yaml

  sensor.murat:
    entity_picture: https://mywebsite.com/ha/murat.png

groups.yaml

family:
  name: Who is home?
  entities:
     - sensor.murat
3 Likes

No native support for changing these device_tracker entities state text?