You probably aren’t missing anything. Some Smart Lighting automations will need two Automations.
In this case the annoying thing is that selecting the ‘turn on’ action for switches presents an optional ‘auto turn-off’ action with a timer, but the ‘turn off’ option doesn’t have the corresponding ‘auto turn-on’ which would do the job for you. That just seems bizarre.
Milans options would not work for me as the same switch needs to switch off 3 times for 2 hours during a 24hr period, in Smartlighting I had 3 simple automations that accomplished it
It’s not a big issue to create 6 automations but we are used to this kind of thing, what happens when a novice tries to switch something off for a set duration, they will get confused by ‘if’ and ‘then’ and probably give up when it appears to be impossible or as Milan shows, wayyy too complex
As a side note, I’m glad it wasn’t me not seeing the obvious
I suppose you could actually reverse the logic and think of it as turning the switch on for a period of time with an auto turn-off. In which case it is three Automations.
If the switch is always off for two hours you could use the same automation to turn it on (if switch is off then turn off switch with a two hour delay). That makes it four Automations.