I would like to share a little gem I have recently discovered on GitHub. As soon as I started developing my own ESPHome devices, I realized that my IPv4 home range was getting messy, and keeping up with the changes was becoming challenging. Sadly, Home Assistant doesn’t have a built-in way of managing this. However, I have found a solution: Pi.Alert. It has been my best new friend lately.
You can find Pi.Alert on GitHub at the following link:
Pi.Alert scans the devices connected to your WiFi/LAN and alerts you to the connection of unknown devices. It also provides warnings when an “always connected” device disconnects. Additionally, Pi.Alert offers the ability to check the availability of web services.
The setup process is well explained on the website, so I won’t repeat it here.
Pi.Alert provides a very basic API, and the author explains how to integrate it with Home Assistant. You can find instructions on how to do this in the following link:
Hello, implement what is described here in my system and it works correctly, but I have a question, would it be possible to have more detailed information on the new devices, directly on HA, or failing that, at least be able to have some information for when detects a new device make an automation, for a notice… THANK YOU!
I had a few people coming to my fork from this thread so just FYI there are 2 apps, leiweibau’s (linked in the first post) and mine, which I renamed to NetAlertX to avoid confusion. If interested my fork comes with more detailed device sync into home assistant via MQTT:
I like the GUI. I set up my subnets and I configured the ARP settings. On my network it quickly located the router and itself. Nothing else was found. I discovered that I needed to enable the ARP scan and then save the settings and it scanned. Still no other systems were found. Great GUI on the program, but I already know about my router and the Pi.Alert. Seems like a work in progress.
Update: I updated to NetAlertX and it seems about the same. I carefully configured my interface and the ARP. Looks like the issue is it doesn’t like running in a container despite being on the main LAN.
FWIW I ran both in a Proxmox container without issue. Decided to keep pialert. I’m not running any firewalls on Proxmox, however. ARP scan picks up everything in my single subnet.