Notification when a device is OFFLINE?

For zigbee, here’s a script for that from Geurt