#ARP mac address -> IP tracking

1 messages · Page 1 of 1 (latest)

true heron
#

What is the best way to track if device is in network? In my case I want to know if MAC address has IP 192.168.1.* or other (VPN) to determine if I am in home or not.

I want to use integration / template / script / YAML configuration or whatever, but it needs to be simple. If I need to do some crazy stuff to make it work I will not do it.

cloud wedge
#

a device that "phones in" via VPN will use a different MAC address than if it connects via LAN (similarly it'll use a different one connecting via wifi vs ethernet) so you can't really use a MAC as a 1-to-1 identifier for a device

cloud wedge
#

If the device is an android/ios device, you could just install the HA companion app btw

true heron
#

I want to save energy and be 100% sure device is outside home vs didn't send update for some reason while is outside home

#

nothing give better confidence, than ping in LAN

#

especially because iphone ask from time to time if keep HA keep location requesting and someone can click "no" by incident

#

etc.

#

yeah router could do it, but I want something as simple as ping

#

I will probably use static IPs for mobile devices then if pinging with ARP by mac address is not easy

true heron
#

ok I have finally tried UniFi router to track presence. Router make changes immediately, but I am waiting in HA and waiting, and waiting and it still didn't notice phone is not connected.

#

after 5 minutes

#

a little too long