Dashboard badge label at home

Is it possible to show not device tracker also with the label “at home” or “away” in the badges?

Currently my 2 cats are displayed as badge, but I don’t see any status:
image

The cats are a binary_sensor and if I click on it I see the correct state like “away” or “at home”:
image

and seems they have a “presence” device_class.

You need to create a “device_tracker” for the Cat and set its state dependently on that “binary_sensor”.

device_tracker:
  - platform: virtual
    devices:
      - name: virtual_tracker_cat
        peristent: False
        location: not_home

homeassistant:
  customize:
    device_tracker.virtual_tracker_cat:
      entity_picture: "/local/images/test/cat.jpg"

automation:
  - id: 'test_process_cat_presence'
    alias: 'test: Process Cat presence'
    trigger:
      - platform: state
        entity_id: binary_sensor.testing_cat_presence
        to:
    action:
      - if:
          - condition: template
            value_template: >-
              {{ trigger.to_state.state == 'on' }}
        then:
          - service: device_tracker.see
            data:
              dev_id: virtual_tracker_cat
              location_name: home
        else:
          - service: device_tracker.see
            data:
              dev_id: virtual_tracker_cat
              location_name: not_home
    mode: single

изображение

P.S. A cat (should say a “dog” first as a father of a french bulldog) does deserve a “person” entity with a picture, not just a binary sensor with an icon)))

2 Likes

Thanks will try this.

P.S.: And my next question would be indeed how I can add a picture to my cats :wink:

  1. Calm a cat.
  2. Take a picture.
  3. Copy an image into your HA server.
  4. Customize (see an example above).
  5. Enjoy.
1 Like

Thank you misunderstood me. I know how I can add a picture to a “person”. :wink:
But before your tip it was a binary sensor. So my question in the P.S. was only a theoretic question because the “person” tip solves also the picture question :wink:

Sorry for the confusion.

Any entity may be customized.

Btw, in my example a picture was added to device_tracker.
The device_tracker is supposed to be displayed inside a badge with a nice “Home” state.