Hi guys i'm writing a smart home extension for my Raspberry Pi home server. For this i want to know when anybody is at home by checking if a smartphone is connected to the local network.
Unfortunately pinging Android devices was in the best cases unreliable so far. It depends on the sleep state and the Nexus 5X is not responding to pings at all. I also don't to to fiddle around the the sleep settings since that will decrease the battery life.
My router says the devices are connected but i don't know how to relay this information. Is there any way i can know for sure any smartphone is connected to the WiFi with Python?