I have a simple script which informs me via Telegram whenever I have new device connected via guest wifi.
global telegramMessage "$leaseActMAC connected as guest and received $leaseActIP address."
/system script run SendToTelegram
My guest DHCP lease is set to 6h and I get 2 messages per device connected - one when it gets new DHCP lease and second after 6 hours, when lease is purged. Can I somehow filter that to get only info about new leases and skip purging existing ones?
Second question is MAC to device name translation. Let's assume that I am assigning static leases to my guests - Is it possible to somehow replace MAC adress with device name which I type in static lease and display it in that message?