Decodes/converts/evaluates a text string sent from TP action data.
TP sends all '' escape sequences with '\' so they no longer work automatically (\n, \t, \uNNNN). The Function trick with backticks resolves all that.
This also allows embedding interpolated values into a string! Eg. user can send: "2 + 2 = ${2+2}" which will run the calculation in brackets.
It even works with TP values embedded inside the {...} part, eg. "Half of a global TP Value = ${${value:dynamic_icon_value_2} / 2}"
Decodes/converts/evaluates a text string sent from TP action data. TP sends all '' escape sequences with '\' so they no longer work automatically (\n, \t, \uNNNN). The Function trick with backticks resolves all that. This also allows embedding interpolated values into a string! Eg. user can send: "2 + 2 = ${2+2}" which will run the calculation in brackets. It even works with TP values embedded inside the {...} part, eg. "Half of a global TP Value = ${${value:dynamic_icon_value_2} / 2}"