Most people will say WebCORE. It’s probably the most straightforward way, if you’re already using WebCORE.
If you don’t want to mess with that, here’s an approach using Smart Lighting and the scenes you’ve already created:
- Create two virtual switches I’ll call Red Switch and Green Switch.
- Create a new Smart Lighting automation that turns on Red and activates your Red scene. Set it to trigger automatically when Green Switch turns off. Create a complementary automation for Green. Set time limit for both so they stop at your chosen hour.
- Create a Smart Lighting automation using Power Allowance to turn off Red Switch after X minutes. Repeat for Green Switch.
- Create a Smart Lighting automation to turn Red Switch on at Y time.
Now at time Y, Red Switch will turn on. After X minutes, power allowance turns it off. This triggers activation of the Green scene and switch. After X minutes, power allowance turns off the Green switch, triggering the Red scene and switch.
My only concern with this approach would be that in my experience scenes seem to happen more slowly than direct actions. There might be some clunkiness / lag as you switch from red to green so you might find that another approach gives you smoother results.