Cannot save config.yaml caused by value_template with multiple "

Hello,
i can successfully use in template testing area a string like:

{{ value.split("value=")[1].split('"')[1] }}

which return me a correct value.
When i set the same string

value_template: '{{ value.split("value=")[1].split('"')[1] }}'

in the config.yaml i got error cause by the second split with " " "
but i need to split exactly this character "
I already tried to move all to ’ and leave only the target character as " but nothing change, as yaml read " or ’ indistinctive. How can i pass correctly this string? Thanks.

Hi, I think this should work:

value_template: "{{ value.split('value=' )[1].split('\"')[1] }}"

you don’t need to escape a double quote inside a single quote fyi