How to check a device still online in the ZigBee network

Maybe you can do something with HomeyScript: