Disable Light Switch at Certain Time

TLDR; Is it possible to make a light switch not work between certain times?

We’re moving our kids into the same room to make room for the baby, however one likes to get up at 5am and play in his room for the next hour or so. The other stays in bed until 6:30. I don’t want our early riser to wake up the other one so I figured I could just disable the light switch (he’ll have a light under the top bunk to use), but is that possible?

what kind of a light switch are you referring to?

@finity Oh sorry, it’s a zwave GE light switch. Something like this I believe: https://www.amazon.com/GE-Repeater-Required-Works-SmartThings-14291/dp/B06VYCFXT4?th=1

I don’t know of any way off the top of my head. I don’t see anything in the services section to be able to do that either.

Maybe an automation that triggers the switch off as soon as it goes on between the hours when you don’t want it to be on?

It would flicker the light for second so it would be a little hacky but that’s the only thing I can think of.

Disregard, won’t work…