bernikr / lovelace-notify-card

Send notifications directly from the dashboard
MIT License
45 stars 16 forks source link

support placeholders surrounded by other text #34

Closed CatboxParadox closed 2 weeks ago

CatboxParadox commented 2 weeks ago

I like the card, but I realized it only works if $MSG or $TITLE is the only content of the given data field, could you maybe consider supporting placeholders surrounded by other text?

With this change I was able to use a fixed URI prefix and then "abuse" the title input field as a way to select the notification icon.

P.S.: I'm not a JS developer so if you think the idea is good but the implementation isn't, you can reject this and do it better :)