Notification when a device goes unavailable

A lot of my devices are doing the “This device is unavailable at the moment” thing. Does anyone know of a SmartApp that will notify me when that happens so I can go reset the device and get it working again? ST support says they’ve received requests for this feature but it’s not in development. Has anyone figured out a way to do this?

Check out this smartapp. It may do what you want.