Hi
Does anyone have any ideas on how to implement a web call at the time a DHCP IP address is allocated?
For example, I might have a device configured on a static IP reservation so when it connects to the network it will always get this specific IP address.
I want to know when the device connects/disconnects by having a script or feature request a web URL, e.g. http://192.168.1.1/dhcp.php?ip=192.168. ... on=connect
For now the only way I can think is to use a script that runs periodically and checks of the device is active and calls a get request to the URL but it would be nicer for automation (IoT) purposes if this could be actioned in a cleaner way using a webhook or similar method that could easily be integrated into Home Assistant / Node-Red.
Thanks