Global variables and templates

I have a security flow built around a HA Alarm control panel. I have a number of sensors on Z-Wave and the flow takes the friendly_name attribute of the most recently triggered sensor and writes it to global.alarm_trigger. Using a context browser object I can see the global variable gets set.

Plan is when the alarm is triggered this kicks off the alarm state part of the flow which will send a pushover notification.

I have a template that is trying to pull the global.alarm_trigger value into the Pushover message:

{
“data”:{
“title”: “HomeAssistant: Security”,
“message”: “Alarm has been activated. Detected {{global.alarm_trigger}}.”
}
}

When this runs I get:

title: “HomeAssistant: Security”

message: “Alarm has been activated. Motion detected .”

I can’t seem to get the global.alarm_trigger to be added?

Make sure you tick on the render template option in the call service node.