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.