Open mrMoe opened 2 years ago
The WLAN schedule support dates back to v5 of the controller so not surprising that they have introduced some new UI features and API types now, it probably needs to be updated to use that new API field you noticed. I'll see about poking around with this over the weekend and see what I can find.
Hi Paul. Thanks for your support! I can confirm the change set the schedule of the wlan and after a refresh of the page I find the schedule_with_duration
in the wlanconf
response of the webserver but the UI does not show the schedule. So it seems, that something is still missing.
Hmm ok let me investigate further, I'll reopen this for now.
Hi,
during importing my current config into terraform I played around with the WLAN schedule function since one of my networks has a schedule to be disabled in the night.
The enabling of the schedule in terraform was no problem
but it didn't activate in the UI. And if I add a schedule to the temp WLAN in the UnifiController then terraform does not recognize the resource has changed in any way.
Thus I removed the schedule from the temp WLAN but now I get
So it seems I can't remove the schedule anymore.
Another thing I noticed looking at the API requests that there are two different fields
schedule
andschedule_with_duration
. Theschedule
has the terraform values but does not work and theschedule_with_duration
has the values set in the Controller and work but are not available in terraform. It seems, there is a field and type missmatch in the library.As controller I use the docker container from
jacobalberty/unifi
in version7.1.66
.Hope you can help to sort this one out