Do you see any error in the logger (Monitoring->Logs->Script) ?
What would do is to add a logger.warn("Executed"); statement in the code just to figure out if the service is running and it is not the Mail Server that is holding the message from being sent (if you haven't done it yet)
Thanks Ewerton. That narrowed it down a lot.
I added a couple logger statements, and it turns out the me.ThingManager.smsAddress is coming back undefined. Any suggestions on how to pull the sms or email for a user defined as a property of each Thing? I can get it to work for a hardcoded email or sms address (or hard coded user) but that's not scalable to multiple users.
I think you could use the GetPropertyValues from the User Object once you retrieve the user name. Maybe it is not the elegant way to do it, but I did it and it did the trick:
var userProperties = Users[me.user].GetPropertyValues();
Where me.user is a variable of the type USERNAME that I used to select an user.
Not sure if this is your exact use case tough.
Actually you don't even need the Get Property Values call. Just make it an indirect reference: