pure by accident (my daughters iPhone have names with hundreds of emoji…) I stumbled on this in a device_trackers name:
name: “Name\U0001F919\U0001F3FB❤️”
which shows i my frontend as:
made me want to try this for Lovelace and replace the o with a heart:
made by customizing a friendly_name for
weblink.lovelace:
friendly_name: '\U0001F3FB❤️'
its not possible to get it to show correctly so I made a screenshot:
apparently the | formats the heart? What is this, and why does it work? Its not an alt-code is it: https://www.alt-codes.net/heart_alt_code.php
seems to be originated here?
# -*- coding: UTF-8 -*-
"""
Data literal storing emoji names and unicode codes
"""
__all__ = ['EMOJI_UNICODE', 'UNICODE_EMOJI', 'EMOJI_ALIAS_UNICODE', 'UNICODE_EMOJI_ALIAS']
EMOJI_UNICODE = {
u':1st_place_medal:': u'\U0001F947',
u':2nd_place_medal:': u'\U0001F948',
u':3rd_place_medal:': u'\U0001F949',
u':AB_button_(blood_type):': u'\U0001F18E',
u':ATM_sign:': u'\U0001F3E7',
u':A_button_(blood_type):': u'\U0001F170',
u':Afghanistan:': u'\U0001F1E6\U0001F1EB',
u':Albania:': u'\U0001F1E6\U0001F1F1',
This file has been truncated. show original
which is kind of nice, though Id like to understand how it works in HA and rather have it not use a V after the heart
petro
(Petro)
December 4, 2018, 2:43pm
2
So does your daughter have an app that replaces text with emojis? That would be the first place I look.
no, they just enter emojis in just about everything…
aparently, if you do that in your phone’s name, the bluetooth tracker see that and shows it like posted in known_devices.
I simpt copied that bit in the L❤️velace link and it showed. Like here.