Adding a pause to a macro?

Nillaz's Avatar Topic Author
User User
  • Posts: 444
  • Thanks: 36

Adding a pause to a macro?

2 years 7 months ago
#692
Can anyone tell me the proper syntax to add a pause between commands in a macro? I couldn't find anything about this in the documentation and searching for "Pause" or "Delay" in the command list didn't return any results.

Thanks in advance!

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

bowlingbeeg's Avatar
User User
  • Posts: 248
  • Thanks: 33

Re: Adding a pause to a macro?

2 years 7 months ago
#693
Pause|5!

The parameter is in seconds. You can also specify fractions of a second like 1.5 seconds.
The following user(s) said Thank You: Fattykidd, Nillaz

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

Nillaz's Avatar Topic Author
User User
  • Posts: 444
  • Thanks: 36

Re: Adding a pause to a macro?

2 years 7 months ago
#698
Thanks I appreciate it!

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

Re: Adding a pause to a macro?

2 years 7 months ago
#703
Perfect!  Thanks./  I'll add that to my theatre shutdown macro to delay the lights turning off for a minute or so.
 

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

Fattykidd's Avatar
User User
  • Posts: 150
  • Thanks: 3

Re: Adding a pause to a macro?

2 years 7 months ago
#1111
Perfect!  Thanks./  I'll add that to my theatre shutdown macro to delay the lights turning off for a minute or so.




Hey Graydon,
Would you mind sharing more information on your theater shutdown macro? 
Thank you,
Ivor. 
 

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

Re: Adding a pause to a macro?

2 years 7 months ago
#1112
Sure.  It is pretty simple at this point but the important thing to me is that it can be expanded quite simply by adding commands to this macro.

This macro turns off the projector (AV|9) and then turns off the main equipment rack and the subwoofer amp.  Then it pauses for 60 seconds and then turns off the lights and starts up the fan and dehumidifier which are on Shelly Plugs

Here it is:

Macro|
// 144 is main rack!
// 146 is Subwoofer amp!
// 176 is Platform step!
// 249 is main column lights!
// 293 is Shellysw1 => fan!
// 294 is Shellysw2 => Dehumidifier!
AV|9~Power~off!
Lighting|144~Off!
Lighting|146~Off!

Pause|60!

Lighting|176~Off!
Lighting|249~Off!
Lighting|293~On!
Lighting|294~On!
//fini

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

Time to create page: 0.287 seconds