Add emoji to notification

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
peterbos
Posts: 93
Joined: Saturday 07 November 2020 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Add emoji to notification

Post by peterbos »

Hi,

I send my notifications to Whatsapp with Callmebot (http notifications). I can add emoji's to notifications when I add them to the devices notification page, like '%F0%9F%91%A8%E2%80%8D%F0%9F%9A%92%20CO-alarm%20OFF, which gives a fire fighter emoji and the text 'CO-alarm OFF. But question is: how do I do the same in a dzVents dz.notify command?

Code: Select all

statusCO = 'OFF'
dz.notify('Alarm', '%F0%9F%91%A8%E2%80%8D%F0%9F%9A%92%20CO-alarm%20' + statusCO)
shows the string in Whatsapp and not the emoji.

Peter
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest