Email Alert Template

I’m trying to get more descriptive with my email alerts. In particular the Wireless Sensor.
I can see in the web interface that there is a sensor_desc that tells me what part of the wireless sensor is in alert.
what variable do I need to use to pull that information into my alert template?
Here is the raw alert

#1: sensor_id => ‘5658’, sensor_descr => ‘Clients (na)’, sensor_oids => ‘[“.1.3.6.1.4.1.41112.1.6.1.2.1.8.3”,“.1.3.6.1.4.1.41112.1.6.1.2.1.8.4”]’, sysObjectID => ‘.1.3.6.1.4.1.8072.3.2.10’, sysDescr => ‘UAP-AC-Pro-Gen2 3.9.19.8123’

Here is my template

<div style="font-family:Helvetica;">
<h2>{if %state == 1}<span style="color:red;">%severity{else}<span style="color:green;">recovering{/if}</span></h2>
<b>Device:</b> <a href="http://mylibrenms.com/device/device=%hostname/">%sysName</a><br>
<b>Location:</b> %location<br>
<b>Uptime:</b> %uptime_long<br>
<b>Alert Duration:</b> %elapsed<br>
<b>State:</b> %state<br>
%title<br>
<br>
%description<br>
%features<br>
%purpose<br>
%notes<br>
%sensor_descr<br>

Thank you in advance,

You need to loop through the fault array, this is covered in the docs, give it a try.

Thanks laf,

on top of looping, I did not realize I needed to put %value.sensor_descr instead of just sensor_descr

so now I have this as the code

<div style="font-family:Helvetica;">
<h2>{if %state == 1}<span style="color:red;">%severity{else}<span style="color:green;">recovering{/if}</span></h2>
<b>Device:</b> <a href="http://mylibrenms.com/device/device=%hostname/">%sysName</a><br>
<b>Location:</b> %location<br>
<b>Uptime:</b> %uptime_long<br>
<b>Alert Duration:</b> %elapsed<br>
<b>State:</b> %state<br>
%title<br>
<br>
{foreach %faults}Sensor Description:%value.sensor_descr<br>
{/foreach

which gives the sensor description that I was looking for. Example below.

recovering
Device: 4thdunn
Location: Unknown
Uptime: 9h 19m 8s
Alert Duration: 54m 56s
State: 0
Device 192.168.255.58 recovered from Wireless Sensor over limit

Sensor Description:Clients (na)

Thanks again.