I have created a new Listener , under my defaultDevice..My goal is if in the data , i see humidity greater or equal to 59, send an emaiil else send an sms.
Event Type I gave as "Event Data Received" later changed to "Data Received Team" but still am not able to see the message in my email..Listener code is as follows.
if context.data.hum >=58
// Send an email to firstname.lastname@example.org
def email = new Email ();
email.message="Humitdity is "+context.data.hum;
def sms = new Sms();
Pls let me know where am doing wrong...