Music MDI icon not showing

I can’t get custom icon to work for an MQTT sensor. I have a “last song playing” mqtt sensor that I want to have an icon from mdi. However, the icon does not appear. I don’t know what I’m missing.

Sensor section:

  - platform: mqtt
    name: Last Song Playing
    state_topic: "home/media/lastsong"

Customize section:

    - entity_id: sensor.last_song_playing
      icon: mdi:music

Group section:

  Music:
    - sensor.last_song_playing

If it makes a difference, the payload of the MQTT message is similar to this: “Crossway - Took It All Away” (without quotes).

hello try this

1 create a folder called WWW
after that search on google one image ,example song.png.
put that image inside the folder WWW

2 inside the customize put this above your swich/sensor/,
entity_picture: /local/song,png

Try quoting the mdi:music part;

    - entity_id: sensor.last_song_playing
      icon: "mdi:music"

Format is wrong. you should the following format in customize use:

sensor.last_song_playing:
  icon: mdi:music

@Rodolfo_Vieira I don’t want to use a local image. I want to use an MDI icon. I realize that may work, but it seems there is a bug, and I want to know whether there is or not. I expect this should work, and am not looking for a workaround, but a true solution to use an MDI icon.

@danichispa That didn’t do it. Thanks for trying.

@ronvl You are mistaken, but only because the syntax has changed since 0.37. See here: https://home-assistant.io/getting-started/customizing-devices/ (I’m not mixing formats btw…)

AHA! It’s a bug with mdi:music.

I have set a different icon, and it shows just fine. However, mdi:music doesn’t show up on any browser.

Does anyone know where to submit a bug to Home Assistant’s dev team?

Did you find a way to resolve this? I have the same issue with mdi:shower-head

That icon was only created 23 days ago. It may take another HA update for it to be included.

I’m having the same issue with the mdi:face-outline. Filing a bug report.

The face outline icon was only created 15 days ago. It will take some time for it to be included in HA updates. No need for a bug report just be patient.

Look for the green highlighted (new) icons:

http://dev.materialdesignicons.com/history

Hello!

Same issue here with mdi:fireplace

Is there any workaround for this?

- platform: template
  sensors:
    switch_kamin:
      friendly_name: "Kamin stanje"
      value_template: >-
        {{ is_state('switch.kamin', 'on') }}
      icon_template: >-
        {% if is_state("switch.kamin", "on") %}mdi:fireplace{% else %}mdi:fireplace-off{% endif %}

I also tried the MDI icon in the tabs directly and it’s the same. Cleared browser cache, tried on different computer - doesn’t work.

You can store the icon PNG file in your www folder and access the local copy

icon: /local/filename.png

Is there any way to temporarily tweak a file to use the mdi:xxx syntax (until the mdi is updated)?

No there isn’t.