Yaml and unicode glyphs

Hi,

I’d like to use UTF8 glyphes in my automations, mainly to make my notifications a bit more appealing. For instance:

:incoming_envelope: You have 1 unread mail !”

The envelope glyph is described here: https://www.utf8icons.com/character/128232/incoming-envelope

As for now, if I build my automation using unicode glyphs, HomeAssistant disagrees:

“2019-06-06 14:31:31 ERROR (MainThread) [homeassistant.components.automation] unacceptable character #x1f4e8: special characters are not allowed
in “/config/automations/notifications/emails.yaml”, position 313”

I hope it’s something that could be supported and not a limitation of yaml parser, because despite being purely cosmetic, I still support the added value of these icons :slight_smile:

Woops, never mind, it actually works, but not as I thought.

I initially dirtily copied/pasted the icon (:incoming_envelope:) whereas I should have used the hex code using this syntax: \U0001F4E8.

Now it works.