Tile Card to show Home or Away

I have created a help switch who is true or false for presence detection.

Now I want to show a tile with the text “HOME” or “AWAY” from the new helper switch.
If I add the tile I see only “Off” or “On” and the name of the helper.

How can I change the attribute name of the tile to “HOME” or “AWAY” depending on the new helper switch instead fixed “MODE”?

type: tile
entity: input_boolean.presence
name: MODE
show_entity_picture: false
vertical: false
tap_action:
  action: none
icon_tap_action:
  action: none

As far, as I know, home/away in Tile only works with person and device tracker entities.
You have to use template supporting cards like Mushroom or Custom Button Card (or Markdown, if you don’t need tap functions).

Alternatively, create a template sensor.

Ok thanks.

I did a similar thing a while back to have a guest presence toggle

Created an Input Boolean called input_boolean.guest to provide a switch, then created a binary sensor to treat that as a presence detector.

  - binary_sensor:
      - name: Guest at Home
        state: >
          {{ states('input_boolean.guest') }}
        device_class: presence

That’s enough to give Home/Away status in a Tile Card.

If you want to go further, you can take the sensor state and use it to drive a device_tracker.see service call to give a broader experience Device Tracker - Home Assistant (home-assistant.io)

I’ve since moved to using a Mushroom Template card, but it all depends how far you want to go…

1 Like

You can use a conditional card to show different button cards

1 Like

Thank you very much. This works as expected!
Great!