• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Advanced Techniques > 96. Block Units for Easier Scripting

Block Units for Easier Scripting

XTension’s ability to temporarily block commands for a unit provides an easy way to refine group handling.

One of the best things about being able to define groups of units [Hack #17] is that you can control multiple devices with a single command. For example, you might assign all your outside lights—front porch, back porch, patio, and sidewalk lights—to a group called Outdoor Lights. When you want all these lights to turn on, a single command does the trick:

Turnon "Outdoor Lights"

However, there might be times when you want to address most, but not all, of a group—for example, if the Outdoor Lightsgroup were to also include the Christmas Lights that you have on the Blue Spruce in the front yard. During the holidays, you’d want the tree to be lit, but the rest of the time the holiday lights are packed up for storage. Or, perhaps they’re still in place but you don’t want them to come on in June and broadcast to the neighborhood that you haven’t gotten around to taking them down.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint