automation delay

8 years 11 months ago #1193 by dorroddorrod
hello guys!
how can i insert a delay to automation code?

Please Log in or Create an account to join the conversation.

8 years 11 months ago #1203 by EasyIoT
Replied by EasyIoT on topic automation delay

dorroddorrod wrote: hello guys!
how can i insert a delay to automation code?


Try:
System.Threading.Thread.Sleep(100);

time is in ms.

Please Log in or Create an account to join the conversation.

8 years 11 months ago #1210 by dorroddorrod
Replied by dorroddorrod on topic automation delay
thanks!
its working... :)

Please Log in or Create an account to join the conversation.

8 years 11 months ago #1212 by dorroddorrod
Replied by dorroddorrod on topic automation delay
i have another problem with the cron settings...
it doesnt work for me when i want to execute my automation every 5 min

0 0/5 * * * ?

someone know how to fix that?

Please Log in or Create an account to join the conversation.

8 years 11 months ago #1225 by EasyIoT
Replied by EasyIoT on topic automation delay

dorroddorrod wrote: i have another problem with the cron settings...
it doesnt work for me when i want to execute my automation every 5 min

0 0/5 * * * ?

someone know how to fix that?


Try 0 0/5 * * *.
Question mark in user interface is misleading - I will remove it in next release.

Please Log in or Create an account to join the conversation.

8 years 11 months ago #1233 by dorroddorrod
Replied by dorroddorrod on topic automation delay
still not working..
its change to 0 0 dont know why

Please Log in or Create an account to join the conversation.

Time to create page: 0.449 seconds

Forum latest

  • No posts to display.