This object is in archive! 

Has wait command a limit in seconds?

Gianit shared this problem 4 years ago
Solved

Hello,

I have a rule.

if I set wait 120 sec it works, if I set wait 54000 it doesn't.

Is there a time limit?

and in this case, how could I modify the rule in order to have it working?

Files: WAIT.jpg

Replies (5)

photo
1

Styrange but after 2 days now the rule works.

Solved alone.

Thankyou

photo
2

It probably needed to synchronize.

photo
1

Hello Gianit. I have also experienced issues with wait blocks in the past and sometimes it seemed like they were running in triple speed when doing a syncronization or just after.

So since two years back I never use a wait block longer than a 1 min.

Instead I use a sheduled timer rule to repeat itself every minute. And inside that rule I calculate many different thing UP like a counter or DOWN like a timer. Sometimes I use variables but I prefer to use virtual meters so that I can easily see the current value if needed to troble shoot.

Anyway, the values that are constantly updating UP or DOWN can easily be used to control lights or turn on the alarm after a few hours etc.

This solution has worked perfect for me for some years and no loooooong wait blocks messing up the processor speed.

// Henning :)

photo
1

Hi Henning,


can you show me an example about this "Timerrules" ?

photo
1

Hello Rico K. Yes no problem. It is really simple like this:

I use a virtual meter called "Timer meter" with many different values for different things:

/0453562068c5e1cbc2524d0c9389a6fc

Then I have a rule with a sheduler running every minute. (many other timers I have is moving only every 30min etc)

/bd4646dd9a6127cdba70ea9a76e828de

You can see that the rule above only step down the value if it is above 0.

And when it is 0 it turns the lights off.


And another rule turns the lights on when the motion sensor detects.

/ac3133bdc63c1b52967eb6df042ae141


It also sets the "ontime" to different values depending on the time of the day controlled by the last rule.

/21ece4b0453fb494fa185135fe6368c2


It might look very complexed but I use it for almost everything and have no problems.

Ask questions if you like!

/// Henning

photo
photo
1

thankyou.

I decided to limit wait at 3600sec no more and put it inside a repeat. now it always work

photo
1

Hi Henning,


can you help me to set up virtual meter to be used as timer. I couldn't find guide in this forum.


Thanks


Janne

Leave a Comment
 
Attach a file