Basic Rules Issue

I am moving my automation from one system to Hubitat.
I have a hot water circulation pump that comes on at 6:30 AM and goes off at 12:00 PM. This works correctly for the current system.

I have a simple rule for the same function that is:

When Time of Day is 6:30 AM ...
Turn on CircPump
Wait until Time of Day is 12:00 PM, then ...
Turn off CircPump

Rule and pending actions can run ...
Only when mode is Guest, Home

To test the function, I manually turn on the CircPump and modify the rule to turn the pump off at, for example, 1:15 PM (current time is 12:45 PM).

The pump does not switch off. What am I missing about the rule?

Regards,

Milt

Have you tried changing the rule's start time and let the rule turn the pump on? And have your mode set correctly as well. I don't think the rule is active until that first "When Time of Day" trigger occurs and then the wait will be relevant.

1 Like

That appears to be correct. My observation is that if the first time is not encountered to activate the switch, the second time is not executed.

I don't believe this is proper behavior; it may be the design but I believe it should work at the second time even if the first is not encountered.

Yes, that is definitely the way it works, and I imagine it is by design. The trigger must happen before any actions are executed. The "wait until" is considered to be an action.
From documentation:

If you want the pump to turn off, regardless of how it was turned on then create 2 Basic rules. One to turn it on and one to turn it off.

2 Likes

That is the solution I finally determined. Thanks,

I did finally figure that out, the trigger must fire first. My next test is:

Allow first trigger to fire.
,,,
manually turn off device
...
manually turn on device
...
WAIT - will remainder of rule, turn device off later, still work.

That looks like something the Room Lighting app can do.
Set the rule to run only during modes Guest, Home.
Turn on at 0630
Turn off at 1200

I will give that a try, thank you.

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