editordz wrote:I meant single, but come to think of it, multiple conditions would be nice, too.
-dan
If you only need to monitor a single device's state, you can do this with a combination of three trigger actions. (More complex, but no script is required):
1st trigger: When device "livingroom lights" turns off, then enable trigger action (#3 below)
2nd trigger: When device "livingroom lights" turns on, then disable trigger action (#3)
3rd trigger: The trigger and action you originally wanted to perform.
If you want more devices, a trigger that executes an embedded AppleScript is probably the way to go:
- Code: Select all
if ((brightness of (device "livingroom lights")) = 0) then
execute action group "Action Group Name Containing Actions You Want to Perform
end if
Hope this helps.