Multiple Timers in same piston


#1

I’m wondering if it is possible to have 2 timers function in the same piston, or if I simply need to create 2 separate pistons…

What I would like is something like this:

If “Virtual Switch is not on”

Everyday at 7:00 PM
but only April, May, September, October

do stuff

If “Virtual Switch is not on”

Everyday at 8:00 PM
but only June, July, August

do stuff

I cannot locate the timer for the second part of the piston, and I’m wondering if it even work.

Is it possible to have an “or” in the timer? Something like:

Every day at 7:00 PM in April, May, September, October
or
Everyday at 8:00 PM in June, July, August


#2

Two timers should work, first one executes, then next one gets scheduled.


#3

It’s working!

Thanks


#4

also see:


#5

There is a lot to take in in this @E_Sch
I’ll give it a few more reads. That said, is this going to run and schedule the second timer or stop after the first one is false?


#6

You likely want the time is between as the first.

Note you relying on subscribing to conditions in this. You are trying to make the time is a trigger, hence why I suggest to make it first as it needs to be refreshed…

Having explicit triggers may be better, there is an article on trigger aggregation.