Tracking the presence status of connected devices