This object is in archive! 

RULES CREATOR: Commands syntax

Roberto Faggin shared this question 7 years ago
Need Answer

Hello guys,

does anyone know if there is a sort of guide to the command syntax for Rules Creator?


For example, which is the right value to input to define a specific day of the week, in the function shown in the attachment?

Replies (4)

photo
1

My rule to set the weekday condition is attached below (it tests whether the day is Sunday (1) or Saturday (7). And I've also attached a condition to test for the opposite - if the day is between Monday and Friday.

photo
1

i didn't try out every option, but i guess...

part

- year of now 2016, 2017, 2018...

- month of now 1-12 (jan.-dec.)

- day of month of now 1-31/30/28

- day of week of now 1-7 (su.-sa.)

- hour of now 1-24

- minute of now 1-60

- second of now 1-60

- week of month of now 1-4

- week of year of now 1-52

- day of year of now 1-365


for example blinds closing completely during the winter and close 88% during the summer...

photo
1

Dave, what triggers the Sub_setvars_weekday swith to on? Is is a schedule or something else?

photo
1

Attila,


I run this and many other rules from my "master scheduler" rule every 10, 15 or 30 minutes, just by flipping the switch, in this case "Sub_SetVars_Weekday". I could just as easily use another rule with a scheduler piece, but I don't find the Zipabox schedulers very reliable. It's also useful to be able to trigger the same rule from different places.

Leave a Comment
 
Attach a file