Is there any way to check state more often?

I’ve set up an automation that triggers when a device’s state goes from “unavailable” to “on”. However it seems to take 30-120s for HA to notice that the device went into “unavailable”. It seems quicker to see that a device is suddenly on. Is there any way I can tell HA to check more often whether or not a device is unavailable?