Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107449

Help With Manipulating Text Variable inside automation

$
0
0

Hello,

I must be missing some stupid syntax and I cant figure out what. Any help is really appreciated.

I`m doing Google AI response to a picture, and it returns a variable with things like ““text”:” inside the output. I want to manipulated right in the automaton with a template, but I cant figure out how to use a variable inside the template. Basically something really simple like:

{{{{DCImage}}) | replace(“text”, “”) }} (DCImage being the variable)

There is couple of things wrong with the response that need to be fixed. like the {
“text”:

Here is a sample response:

{
“text”: “The image shows a house’s front porch on a snowy day. There’s a brick walkway, steps, a cushioned outdoor chair, some plants, and a shovel leaning against the house. A car is visible parked down the street.”
}

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 107449

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>