I have a simple TTS application that should respond with one of a few possible sentences after commanding the lights to turn on or off (trigger.event.data.state).
Unfortunately it currently reads literally "turning left curly bracket left curly bracket trigger dot event dot data dot state right curly bracket right curley bracket".
payload: '{{ ["ok", "turning \"{{ trigger.event.data.state }}\" "] | random }}'
I do need the outer ' ' quotes for home assistant. I also seem to need the " " quotes for the individual elements in the array.
How can I have a third level of quotes to get the trigger.event value in, so it reads "turning on" or "turning off" depending on the event?
I tried '' "" \" /", +, &, all sort of things to stitch that sentence together.
Any ideas?