Automation using script within

I am trying to use a script in the following but it doesnt work any advice appreciated.

Thanks

Maybe I haven’t been clear about what I’m trying to do. The above produces an image with a clickable link that is based on a script. Is it possible to do this (use a script) if so what am I doing wrong?

Thanks

You cannot embed a script in one action.
I’d suggest to call_service -> script.157…
Then call_service -> notify

You could also have the script notify you of course. A script is just a bunch of actions basically.

Great thank you I did realise that.
I am trying to get a notification that a gate is left open could I therefore use the notify script first and then the call_service script after?
Thanks for advice.