Download the firmware .bin files from:
Upgrade the device firmware from the device Properties window.
https://help.ui.com/hc/en-us/articles/204910064-UniFi-Upgrade-the-Firmware-of-a-UniFi-Device