Show the correct attribute names for an entity

I have this entity

device_tracker.aristos_vasiliou

and this entity has the following attributes, as shown in lovelace.

1

As you can see the “source” attribute shows the value “GPS”.

So I use this code in a card to show that atribute

type: entities
entities:
  - device_tracker.aristos_vasiliou
  - entity: device_tracker.aristos_vasiliou
    name: Source
    type: attribute
    attribute: source
  - entity: device_tracker.aristos_vasiliou
    name: Battery Level
    type: attribute
    attribute: battery_level

But it shows up like this

2

The “battery_level” attribute works fine, but the “source” attribute doesn’t.

My guess is that the “source” attribute is actually named something else.

How can I see the correct attribute names for this entity?

In Developer Tools under States:

1 Like

Yeah the frontend translates a lot of things to “pretty” names. The only way to see the actual backend names and values is to follow Ryan’s advice.

thank you!

1 Like