Checking if someone is connected to my wifi

Hi, I’m trying to make an automation that if no one is connected to my home wifi - something will happen, is it possible to detect that with any HA integration?