This object is in archive! 

I'm trying to create a rule using the time No progress!! Can someone help me please?

Willias Reis lemos shared this problem 7 years ago
Known

I'm trying to create a rule in my zipatile but I'm not making progress, rule I'm trying to create It's simple got a (Switch Z-Wave Fibaro FGS-211 ) I want when it reaches a time, gives one pulse every 15 minutes, I'm doing some tests, but so far I had no progress could anyone help me?

Replies (8)

photo
1

any tips on how to make this rule?

photo
2

Willias,


You have to remember rules are based on events. The rules you have set up in the images would only run when the relay changes its state from ON to OFF so unless you manually switch ON and then OFF the relay these rules will only run when the device reports back its state to the controller, which might be outside the time frame you want.


They way I would do it is;

1. Set up a rule using a scheduler for every 15 minutes (all day and everyday, if you want to) that turns ON either a virtual switch or virtual sensor, waits a few seconds, then turns it OFF. For explanation purposes we will call this virtual device "15minblinker".

2. Create a rule based on the ON state of this virtual device to turn ON and OFF the switch. Somethink like;

* WHEN 15minblinker IS ON

* IF TIME OF NOW IS BETWEEN XX;XX AND YY:YY

THEN turn ON switch

WAIT 5 SEC

TURN OFF SWITCH

photo
1

I made this rule the same way that said if you are missing some detail on alert, This rule does not work!

I'm trying to create a rule for when achieve certain time xx:xx turn switch wait a few seconds switch off repeat this cycle until to arrive yy:yy

photo
1

Willias,


It does not work since the WHEN puzzle is not configured properly, as explained before, rules work on "Events", the rule you attached would only run when you change the relay from status ON to OFF. You need to start the rule with a scheduler block or with the two rule setup I also already explained.

photo
1

This is one approach you can take...

photo
1

Thank you for your help

photo
photo
1

If you only want it to do it for 15 minutes then you can simply use the scheduler to fire off the rule, then you can use a repeat puzzle with the device state as toggle and a wait block for a couple of seconds. The amount of repeats * amount of seconds for wait should add up to 15 minutes.

photo
1

It could show me an example? I take much create this rule

photo
1

find it attached. the scheduler is set up to run every 5 hours every day. You need to insert an actuator to the action puzzne obviously.dc94e375b68fd260d8dabe5bfb388d51

photo
1

The idea of using the controller to run the rule and cool, in my case no use, because I want to turn on the switch at a certain time of the day and night, this module It will be installed in switch the bathroom when ON, Hot water circulates, when it reaches the scheduled time, the rule will send turn the switch after 15 minutes, send the switch off command this will be repeated until reach the desired time "xx:xx and yy:yy " , the night would be the same!!!

None of these two rules It worked.

photo
1

I think the problem with the first rule is that you are configuring the astro function for sunrise and also at 12:13, you cannot select both, it has to be one or the other.


Problem with second rule is that it will run the rule inmediately after the relay has been turned OFF.

photo
photo
1

ok, sorry but I really dont understand what you are trying to achieve. Correct me here if I am wrong

You want to turn on a switch automatically at a certain time. Once in the daytime, and again at night.

Then you want the switch to turn off 15 minutes later.

What I do not understand is why you want to turn the switch on and off again after 5 seconds.

Alberto is right, in the last pics you sent, the first rule will only run a sunset every day, and it will turn the switch on then 5 seconds later turn it off.

The second rule, will only trigger when the relay is changed state into the off position. So when the switch is turn from on to off, it will trigger this rule, then if the time is between 9:15 and 9:30 it will switch the binary switch on wait 5 seconds then off. But if the switch is already off, and the time is between 9:15 and 9:30, it will not run, as the trigger(the relay) is already off.

Please try and describe what you are trying to achieve a little more clearly and we can better post an example for you.

Leave a Comment
 
Attach a file