Need advice on how to control outlet

Hi,

This is what I wish to do:

From 6:00 am to 10:00 pm, every 10 minutes, turn on an outlet for 3 minutes.

The numbers are subject to change based on testing.

Thanks much.

Frederick

You can do this with Rule Machine

One gap is that if the outlet is on at 10, the off will not happen. You may want to use a complimentary Basic Rule to turn it off at 10 if that's a hard stop.

2 Likes

I think as long as this option is turned off, once the rule starts it will run to completion even if the expression becomes false during the Delay.

image

Assuming the every 10 minutes goes on the 10s, it should run at exactly 10PM, and then would turn off at 10:03PM. If you want to avoid it running past 10PM then have the expression time range end at 9:57PM

2 Likes

Thanks to all.

That seems like what I need.

It doesn't matter if the outlet is still on at 10:00 pm, as long as a new cycle cannot start after 10:00 pm.

I will get it a try.

Frederick

It works just fine.

Thanks again.

Frederick

1 Like

I see you've already got this sorted out, but thought I'd share anyway. As with most things in Rule Machine, there's more than one right way...


This rigidly sets which minutes the rule runs, in case that ever becomes important. It would still use the same required expression.

This second one does not need a required expression...

And since you mentioned that you might be tinkering with the times, most time-based parameters are able to use variables. Helpful if you're using the same time in several different actions.

Not trying to confuse the issue, just pointing out other options. Depending on the situation, one may be preferable over another.

2 Likes

Thanks much.

The possible ability to use variables is something I will most certainly investigate.

Frederick

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.