First of all: Homey doesn’t know if sensors are offline or not, because it doesn’t maintain a permanent connection with them. The only thing you can look for is if a device hasn’t reported for X amount of time.
Have you run the Zigbee healthcheck script already?