#Need help with using Fields in Scripts.

1 messages · Page 1 of 1 (latest)

wispy mist
#

I'm using the thing to send notifications across all the devices around my house to make it easier to send out notifications when something happens.
But I get stale air as my notification.

#

YAML code being used.

#

What the fields look like

#

Result

dreamy zinc
#

you need extra quotes i think

wispy mist
#

Like this?

dreamy zinc
#

title: "'{{header}}'"

wispy mist
#

Oh, single quote

#

Now it just puts quotes there.

dreamy zinc
#

how does the yaml look now?

wispy mist
#

Says it's okay.

#

It was because it was parsing nothing in it.

#

Calling the script gave me the fields and stuff,

#

Very silly that it would allow that.

dreamy zinc
#

being able to pass in nothing is important for it to be able to do. if you want to do something different on a null entry you should manage that yourself

wispy mist
#

Yup, now it calls it right.

dreamy zinc
#

there we go

wispy mist
dreamy zinc
#

sorted anyway

brave mural
#

never heard of that

wispy mist
#

Anyways, I'll call it solved.