Hi folks,
I am getting my feed wet with homeautomation. Next step is presence detection to control different things with it.
If I am at home, do X. If my wife is, do Y etc.
The typical way used by the community is by pinging the mobile devices 24/7 from the HA-ControlCenter. A Raspberry Pi for example. But I don't like this approach at all. Noisy, error prone ... just nope.
Now I search for a method to get a list of wifi connected devices that I can parse on the router. My vision looks something like this:
My mobile joins the wifi, the router know about this and updates a plain text file with "IP, MAC, Clientname".
When I leave the wifi, it removes the entry from that file.
Everything else I can do by myself.
I found a file called "ipv6_client_list". That would be exactly what I need also for ipv4 clients. (Or a combined file would be ok too.)
I tried "/proc/net/arp" as a source - but since the arp table caches entrys for a while it's not an option either.
Do you guys have an idea? If there no way yet: \o/ Feature-Request!
Merry Christmas and thanks everybody!
x41
I am getting my feed wet with homeautomation. Next step is presence detection to control different things with it.
If I am at home, do X. If my wife is, do Y etc.
The typical way used by the community is by pinging the mobile devices 24/7 from the HA-ControlCenter. A Raspberry Pi for example. But I don't like this approach at all. Noisy, error prone ... just nope.
Now I search for a method to get a list of wifi connected devices that I can parse on the router. My vision looks something like this:
My mobile joins the wifi, the router know about this and updates a plain text file with "IP, MAC, Clientname".
When I leave the wifi, it removes the entry from that file.
Everything else I can do by myself.
I found a file called "ipv6_client_list". That would be exactly what I need also for ipv4 clients. (Or a combined file would be ok too.)
I tried "/proc/net/arp" as a source - but since the arp table caches entrys for a while it's not an option either.
Do you guys have an idea? If there no way yet: \o/ Feature-Request!
Merry Christmas and thanks everybody!
x41