If a device is not connected or is offline, we could create a trigger based on:
  • device has been offline for a given amount of time (say 5 min)
  • device goes from online to offline