I am trying to make a very simple automation to add stuff to my shopping list. The automation uses the matrix integration, and the idea is that i write a message into a special room, and items should be added to my shopping list. I have gotten the adding part working, but all my entries still have " ’ " characters encapsulating them. All other non letters seems to filter out fine, and it looks right in the developer tools. I am not sure what I am doing wrong at this point. Config below
It is the name and message part of the data template that is problematic for me. Please keep in mind that i would like that umlaut characters work, since my language has those. Any help would be immensly helpfull
Thanks! That seems to have solved it. So, I take it as that using the double quote to encapsulate the “find” and “replace” strings was incorrect use, and that i also did not properly escape the backslash in the expression?
You can use double-quote for the find and replace strings, but if you’re using double-quotes inside a string quoted with double-quotes, you need to escape them:
"f(abc=\"123\")"
It’s just easier to use single-quote inside a double-quoted string (like you did in message template):
"f(abc='123')"
And, yes, the backslash character is the escape character, so if you want a backslash you need to escape it: