How to poll a Vera Z-Wave Device and Notify if Offline?

I would like to poll a Vera device every 30 minutes to see if it’s still online and send an email notification if it’s offline. I found some luup code doing a search that is supposed to poll a device but I’m not sure how to send an email if the device doesn’t responded to the poll.

luup.call_action(“urn:micasaverde-com:serviceId:HaDevice1”,“Poll”,{},14)

Thank you

Has anyone been able to process the result from this command?

this would be good. there’s an old script that’s no longer available called ‘alert for drowsy devices’ or ADD or something. i never got it before the author quit the forum, but i think it was the same idea.