Scene icon problem

Hi!
Beginner here…
I’m trying to add a scene, but get this message:

Message malformed: Icons should be specified in the form "prefix:name" for dictionary value @ data['states'][0]['icon']

I try to use the visual scene creator.

When entering an icon, you should do it like this: mdi:calendar where mdi: is the prefix and calendar is the name.

https://materialdesignicons.com/

Thanks!
Do I have to import the icons first?

If I want to use the icon chef-hat, what do I need to do then?

Nope, they are all automatically included in HA. :smiley:

chef-hat would then be named mdi:chef-hat. You just need to prefix all icons names with mdi:

1 Like

Great, thank you!

Thank you for sharing your knowledge.