Multiple time values in a variable


#1

1) Give a description of the problem
Is is possible to have multiple time values in a variable? I want to set a variable to trigger a switch to water my garden twice per day and then have it send a notification when this is done. I could probably do this with an “or” statement and a second variable, but I’m wondering if it is possible to have multiple times in a single variable the way that you can have multiple devices in a single variable.

here is the piston I’m working on. It currently only waters once per day, but I’d like to ultimately have it go off in the evening too.

thanks


#2

I’d like to bump this topic to create a timer statement along the lines of:

every day at <HH:mm, HH:mm and HH:mm>
do
whatever
end every

Instead like the poster above pointed out, it seems one is limited to doing something like this:

ifif

Perhaps I’m overlooking the obvious, yet my question is; is there a better way to do this? Thanks.


#3

I am working on exactly this. Did you find a better way?
// this was just answered here