tutorials:eventgroups
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
tutorials:eventgroups [2017/12/11 19:24] – created James Sentman | tutorials:eventgroups [2017/12/12 20:45] – James Sentman | ||
---|---|---|---|
Line 13: | Line 13: | ||
< | < | ||
- | property:EventSuffix = “(HOLIDAY)” | + | property |
set eventList to all events | set eventList to all events | ||
repeat with thisEvent in eventList | repeat with thisEvent in eventList | ||
- | if thisEvent begins with EventSuffix | + | if thisEvent begins with EventPrefix |
unsuspend event thisEvent | unsuspend event thisEvent | ||
end if | end if | ||
Line 28: | Line 28: | ||
< | < | ||
- | property:EventSuffix = “(HOLIDAY)” | + | property |
set eventList to all events | set eventList to all events | ||
repeat with thisEvent in eventList | repeat with thisEvent in eventList | ||
- | if thisEvent begins with EventSuffix | + | if thisEvent begins with EventPrefix |
suspend event thisEvent | suspend event thisEvent | ||
end if | end if | ||
Line 41: | Line 41: | ||
You can now create new or edit the Holiday events with the normal Edit Event window and control them all with that pseudo unit. Add it to a web remote list, or even create another scheduled event that turns it on and off at specific dates or times. You can create as many event groups as you wish this way. | You can now create new or edit the Holiday events with the normal Edit Event window and control them all with that pseudo unit. Add it to a web remote list, or even create another scheduled event that turns it on and off at specific dates or times. You can create as many event groups as you wish this way. | ||
- | This has the additional value if giving you a pseudo you can check in other places in the code as well. If you have an (AWAY) pseudo then you can check for that in any other script and take different actions based on that. Perhaps you don’t care if there is motion in the front hall while you’re home but you would definitely want to get an [[tutorials: | + | This has the additional value of giving you a pseudo you can check in other places in the code as well. If you have an (AWAY) pseudo then you can check for that in any other script and take different actions based on that. Perhaps you don’t care if there is motion in the front hall while you’re home but you would definitely want to get an [[tutorials: |
You might want your MODE Away pseudo to be turned on when all your families [[tutorials: | You might want your MODE Away pseudo to be turned on when all your families [[tutorials: |
tutorials/eventgroups.txt · Last modified: 2023/02/13 14:52 by 127.0.0.1