Smart Lighting Schedule Alternation: A Weekly Challenge

Hi everyone, I’m trying to figure out how to alternate a lighting schedule for my wife and me. It’s a bit of a puzzle, but I think I can work it out with some help from the community. Let me explain our situation:

We have a rotating gym schedule where we alternate days. Here’s how it works:

  • Week 1: I go to the gym on Monday, Wednesday, and Friday. My wife goes on Tuesday and Thursday.
  • Week 2: We switch—she goes on Monday, Wednesday, and Friday, while I go on Tuesday and Thursday.
  • Week 3: Back to the original schedule.
  • Week 4: Switch again.

The challenge is to automate our lighting schedule so that the lights turn on only on the days we’re going to the gym. For example:

  • Week 1: Lights on Monday, Wednesday, Friday (my gym days).
  • Week 2: Lights off Monday, Wednesday, Friday (her gym days), and on Tuesday, Thursday (my gym days).

I tried setting up a rule in RM, but it doesn’t account for the weekly alternation. I’m wondering if there’s a way to create a dynamic schedule that switches every week. Maybe using a combination of time-based triggers and state variables? I’m not sure, but I’m open to suggestions!

If anyone has tackled a similar scheduling problem, I’d love to hear how you approached it. Maybe there’s a clever way to use scenes or even integrate a calendar app. Let me know your thoughts!

Cheers,
[Your Name]