How to detect device online/offline status more reliably in Home Assistant?

Hi everyone

I’m trying to improve how I detect whether my devices are online or offline in Home Assistant.

Right now I’m using basic integrations, but sometimes the status updates are delayed or not accurate (especially when devices disconnect from WiFi).

I want to achieve something more reliable like:

  • Instant detection when a device goes offline
  • Faster update when it comes back online
  • Reduce false “online” readings when device is actually disconnected

I’ve looked into ping and router-based tracking, but I’m not sure what the best practice is in Home Assistant for this.