This object is in archive! 
How to create one rule to work one output 1 minute per hour
Answered
Hi all
Can you please help me to create a rule with this example :
When in motion dectect is On
Turn on one pump 1 minute
Turn off one pump .
and waiting 1 hour to make work again the pump
The problem is when the motion detect is detect person inside this hour the pump work again.
So i need help to "lock" the rule to work fine, only 1 time per hour and with mutiple motion detect inside this hour.
Regards.
No connection
Real-time notifications may not work
Hi
You should use puzzle Join to "lock" rule.
Hi
You should use puzzle Join to "lock" rule.
OK I think Dino misunderstood your question. You want that for 1h the pump is not triggered again by a motion. In that case do it like this:
If motion and variable pump !=2 (you have to create this variable before) then switch on pump and set variable pump to 2, wait 60 seconds, switch off pump , wait 3.600s and set variable pump to 1.
OK I think Dino misunderstood your question. You want that for 1h the pump is not triggered again by a motion. In that case do it like this:
If motion and variable pump !=2 (you have to create this variable before) then switch on pump and set variable pump to 2, wait 60 seconds, switch off pump , wait 3.600s and set variable pump to 1.
The variable Pump is set to 2 for one hour and prevents the rule from being restarted. Only after one hour it is set to 1 again and releases the pump again.
The variable Pump is set to 2 for one hour and prevents the rule from being restarted. Only after one hour it is set to 1 again and releases the pump again.
Hi Dino
I think this is a misunderstanding. "Join" does exactly the opposite of what Tiago wants. "Join" ensures that if the triggering event occurs again, the rule is aborted and restarted. This is very important if, for example, you use it to control the light.
I have also just created a test rule and it works exactly as expected.
Trigger
Join
Message 1
wait 60sec
Message 2
When I fired the trigger several times under 60sec, I always received message 1, but never message 2. Only when I waited 60 seconds, I received message 2. In Tiago's case, this would cause the trigger to trip the pump over and over again, and that's exactly what he doesn't want.
Hi Dino
I think this is a misunderstanding. "Join" does exactly the opposite of what Tiago wants. "Join" ensures that if the triggering event occurs again, the rule is aborted and restarted. This is very important if, for example, you use it to control the light.
I have also just created a test rule and it works exactly as expected.
Trigger
Join
Message 1
wait 60sec
Message 2
When I fired the trigger several times under 60sec, I always received message 1, but never message 2. Only when I waited 60 seconds, I received message 2. In Tiago's case, this would cause the trigger to trip the pump over and over again, and that's exactly what he doesn't want.
Hi
Here are explained Join puzzle among others:
https://community.zipato.com/topic/use-of-refresh-all-join-and-stop-puzzle-pieces_2
Join doesn't restart rule but blocks it from the triggering while executing.
Hi
Here are explained Join puzzle among others:
https://community.zipato.com/topic/use-of-refresh-all-join-and-stop-puzzle-pieces_2
Join doesn't restart rule but blocks it from the triggering while executing.
Hello Dino
I followed the link and found exactly what I wrote:
Hello Dino
I followed the link and found exactly what I wrote:
Replies have been locked on this page!