Help with "every 15 minutes do..." with multiple cases for time range


#1

I’ve got a circadian lighting piston that relies on different chunks of time to operate correctly. They’re all set as “time only” variables. We’ll call them A, B, C, D.

I tried to set this up with a “timer” for “every 15 minutes do…”
and inside, I have the multiple cases. Condition was set as time($now) and the cases are range A to B, and range B to C, and range C to D. Each case has a different action but none of them are actually executing.

Is there something I’m doing wrong or is there a more elegant way to achieve what I’m looking for?

Pic is below. You can ignore everything that’s below the Case/Switch.


#2

Post a green snapshot, everyone likes looking at pictures :wink:


#3

Got it! Pic is uploaded.


#4

I ended up doing a nested ternary to choose which variable to use, then it’s just “every 15 minutes do” set variable to A.