#Value Template Help

1 messages · Page 1 of 1 (latest)

sacred coyote
#

I have a 1 liner that results to True under the Template editor but when testing in automation I get "CONDITION DID NOT PASS". What is the correct way to have the Value template render true when searching for a string ?
{{ "yes" | string is match(find='yes', ignorecase=False) }}

Thanks all

high helm
#

I got condition pass for that template

sacred coyote
#

In Automation ?

high helm
sacred coyote
#

very strange hmm

high helm
#

got extra quotes in there?

#

what's the yaml?

sacred coyote
#

Let me try it standalone instead of within a options block. Let me see if that changes things

#

yeah it passes for me as well when in the AND if section

#

Thanks for your help. "yes" is just dummy data I am really trying to search a chatgpt response. agent.response.speech.plain.speech

#

Maybe when I replaced the var with the dummy data something went wrong.