Tracker card (custom_updater) -Title icon

@ciotlosm @ludeeus

I am not able to change the icon In the title for the Tracker card. Would be nice to be able to do so.

This does not work:
title: mdi:update Update Custom code
or
icon: mdi:update

2019-03-02_10-52-35

It doesnā€™t work for any other cards either. If you change the name from Updates, it doesnā€™t show an icon either. If you check the py file custom_updater.py, you will see itā€™s using an ansi characterā€¦ you can find a different character, but like any other card, there is no iconā€¦

Hopefully the developers will implement the icon-functionality/tag.

If you want your GUI to be uniform for your HA setup, icons should be configurable as default for Lovelace cards.

image
You can most definitely change it. use the title option.

1 Like

Thanks for replying.

But I donā€™t get it. What do I write in the title string to get ā€œmdi:selected-iconā€ to be displayed as a part of the title?

oh. no that will not work, but copy any icon from https://gist.github.com/roachhd/1f029bd4b50b8a524f3c and paste it in the title and it should show.

image

VSo, trying this, which I now see works here in this post, but not in my Hassio. I have cleared my browsers cache.
Sighā€¦its hard to be a N00b, where I am doing wrong?

type: ā€˜custom:tracker-cardā€™
title: ā€˜:radioactive: Update Custom codeā€™

image

By the way, the Mini Graph gard looks like it inherits the sensor icon, so maybe possible to pick up a mdi:icon in other cards too?

Here is mine:

          - type: custom:tracker-card
            title: "\U0001F4E3 Custom Card Updates"

If you change the title/enter a title then it doesnā€™t use an icon. So I looked in the code for the js and saw that Ludeeus was using \U0001F4E3 as the icon so I added that to the title and it workd with my ā€˜custom titleā€™
image

I then did a google search for U0001F4E3 and saw itā€™s a unicode characterā€¦ so I think any unicode character will workā€¦ see a list here http://www.fileformat.info/info/unicode/block/miscellaneous_symbols_and_pictographs/list.htm

I mistakenly said ansi character in my first post.

Your radioactive is here https://www.compart.com/en/unicode/U+2622

Maybe try \U00002622ā€¦ hereā€¦ it works

FWIW, I copied an icon from that gist:


But Iā€™m using the GUI editor

Also pretty sure it will convert the emoji to unicode when it stores itā€¦

I could not find your radioactive emoji on that gistā€¦

and itā€™s not converting it on mineā€¦

1 Like

I still miss the standard HA icons to choose from, but got the icon working by writing the following:

title: ā€œ\U00002622 Update Custom codeā€

1 Like