Blocking clients Unifi Integration

I use a timer for our internet blocking, and a switch. It looks like this:

Is this the sort of thing you are looking for?

I have a post about how I did the basic switch here:

I have an automation that always turns this off at specific hours of the day, and you can manually turn it back on.

The timer I use is Simple Timer:

Details on Simple Timer are here:

Hopefully this helps somewhat.