MISEV
(Niels)
1
Hi All,
I’m not able to retrieve the icon of the new proximity integration for templating purpose.
For example, if i creating an tile card with the direction of travel entity the icon seems fine.
![image](https://community-assets.home-assistant.io/original/4X/c/1/4/c14b70d5e0aefd27310cd700041ff6be9d9b0ed5.png)
But when I’ll try to retrieve the icon with the developer tools the result is None.
{{ state_attr('sensor.home_niels_direction_of_trave', 'icon') }}
What i’m doing wrong here?
WallyR
(Wally)
2
look it up in the developer tools under state
MISEV
(Niels)
3
Ah, i see there is no icon attribute there. Interesting that the card has an icon. This works differently then other entities… ![:thinking: :thinking:](https://community.home-assistant.io/images/emoji/twitter/thinking.png?v=12)
WallyR
(Wally)
4
It looks like a “mdi:map-marker-radius-outline” according to Material Design Icons
MISEV
(Niels)
5
It is changing depending on the state.
![image](https://community-assets.home-assistant.io/original/4X/7/c/7/7c798cf6e6d485ad35cd38fcd411a26ba55cb575.png)
WallyR
(Wally)
6
ohh, not sure how to extract them then, but the other icon seems to be of the “sign-direction” group on the homepage I linked to earlier.
1 Like