In the Unifi Controller there is the option of (de)activating Wi-Fi networks time-controlled. What is not possible, is to switch individual access points on and off time-controlled. A quick search on the web revealed that this can be done via the API of the Unifi Controller:

1. Finding out the ID of the Unifi device

This is where the developer tools in the browser come in handy. Once opened, you can see all the network requests that the page makes in the “Network” tab. If you now change a setting of an access point (under “Unifi Devices”), you will see a request in the following format:

https://IP:8443/api/s/default/rest/device/XXXXXXXXXXXXXXXXXXXXXXXX

Eine HTTP Anfrage des Unifi Controllers

The 24-digit ID at the end of the URL is the ID of the device you just edited.

2. Script to activate and deactivate

I use the following bash script to activate the AP:

The script can run on any server, e.g. a RaspberryPi (which also runs my Unifi Controller) and be automated via cronjob.

In lines 3, 5, 7 and 9, the values must be adjusted accordingly. To deactivate the AP, the “false” in line 15 must be changed to a “true”.

Source: https://community.ui.com/questions/DISABLE-ENABLE-your-AP-with-time-scheduler-Turn-off-radio-transmitter/3c32439b-a731-4de9-9130-d82d68f409c0