A rule that triggers once a device was not updated within a given interval is quite easy.
When value of device not updated for 30 minutes then log "device is lost"
But what to do if you would detect that the device comes back after this failure?
Well, my solution is a second rule with zero time like in the title of the thread
When value of device not updated for 0 minutes then log minutes then log "device is back"