Icon coding
#101
Replies: 1 comment 1 reply
-
Can you post some examples that aren't working? I'm not doing anything at all special with the blueprints, I highlight the icon I want, paste into VS code, and the automation sends the desired character via MQTT. UTF-8 is the standard encoding for MQTT and is what the panel will expect. If you look at the page source, you'll find the codepoint used for each of the icons. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to set icons via my own MQTT application. I seem to have problems doing any form of copy/paste, I think because the various editors/debuggers I'm using are not very friendly to the encoding used for the icons. I do have my editor set for UTF-8 just in case. However, when I try to paste in an icon from the foreAwesome web page, some work, but most don't (nothing shows on a button when sent to the display. I use an "xstr" command to send to the display. I've copied this xstr command from one sent successfully by Home Assistant, so I'm pretty sure that otherwise the command syntax is correct.
I see that the "xstr" command is passed directly to the HMI with the icon coding. Since the icons are custom built into the HASP HMI SW, is there a way to explicitly list the coding it uses to look up the correct icon? If I knew the exact byte sequence it is looking for, I might have a way to reliably get this into the xstr string.
Beta Was this translation helpful? Give feedback.
All reactions