WebCoRE timers - multiple hours

Hi guys,

I've developed a piston sometime ago that fires multiple times a day using multiple "on every day at exact hour" and it bugs me.

Is there a way to set a timer for multiple hours, something like this:

on every day at [hourA, hourB, hourC]

Meaning, for a set (list) of hours instead of a single one?

Thanks in advance.

Have you tried messing with something like this?
Create a time event give it a list this way maybe.
image

I think what @dnickel suggested is this is the way to go.

To expand on that, for your use case:

To get an "is any of" option for hour, it must be a string. So, use an expression to evaluate $hour24 as a string, and check if it is any of a list of string hours.

Note: The timer becomes every hour instead of every day, and then you can choose the minute of those hours for it to run.

image

1 Like

Hi guys,

It's awesome ... elegant and it works.

Thanks for helping me to handle my OCD ... the code is clean now!

I love this community - always ready to help.

1 Like