I used it in my configuration too.
http://forum.universal-devices.com/viewtopic.php?p=10666#10666
Description
Version 2.6.6 - Relevant Wiki Link: Precedence and Execution Order
The True/False status of a Folder may be tested using a program.
Advantages
By testing the status of a Folder, it is easier to choose which programs within the Folder run when it becomes True.
How to use it
1. Select Program in the dropdown for an Action
2. Select a Folder (the selection list contains all Programs followed by all Folders)
Example:
Folder AWAY
Code:
Folder Conditions for 'AWAY'
Add conditions to limit when programs in this folder are allowed to run.
If
Status 'Away Button' is On
Then
Allow the programs in this folder to run.
Program inside Folder AWAY.
- This turns the bathroom light on randomly. You could add more of these programs in the folder for Kitchen, Bedrooms, etc.
Program inside Folder AWAY.
- This turns the bathroom light on randomly. You could add more of these programs in the folder for Kitchen, Bedrooms, etc.
Code:
If
Folder 'AWAY' is True
Then
Repeat Every 1 hour
Wait 15 minutes (Random)
Set 'Bathroom Light' On
Wait 10 minutes
Wait 2 minutes (Random)
Set 'Bathroom Light' Off
Else
- No Actions - (To add one, press 'Action')
Program inside Folder AWAY.
- This sends an e-mail notification if the Bathroom switch is pressed on while you are away. You could add more switches to this program e.g. Kitchen, Living Room etc.
Code:
If
Control 'Bathroom Switch' is switched On
Or Control 'Bathroom Switch' is switched Fast On
Or Control 'Bathroom Switch' is switched Fade Up
Or Control 'Bathroom Switch' is switched Bright
Then
Send Notification to All
Else
- No Actions - (To add one, press 'Action')
Program not inside Folder AWAY.
- This is used to ensure all the lights randomly turned on will be turned off when the AWAY Folder becomes False, and all programs in it are stopped.
Code:
If
Folder 'AWAY' is False
Then
Set 'Bathroom Light' Off
Else
- No Actions - (To add one, press 'Action')
_________________
Chris Jahn
Universal Devices Inc.
http://www.universal-devices.com
No comments:
Post a Comment