If you are bypassing the AT&T Gateway using an XGSPON SFP stick (WAS-110, Azurespeed, ODI, etc.) running 8311 firmware, you likely encounter a total internet drop exactly every 14 days.
This solution uses UniFi Alarm Manager to force a renewal the moment an outage is detected. It doesn't just "fire and forget"—it reads the UDM logs to verify that the ISP actually sent an ACK (Acknowledgment).