Hi - I've heard mention of a "dictionary" - where do I find it? I'd like to know how to check to see if it is day or night within the script, such as if day do this, else do that so that I could free up that conditional within the trigger event. I'm also wondering what the easiest way would be to keep track of total time a given device is on in a 24 hr period - for example the fish light should only be run a total of 2 hrs in any given day, so once it has been run for 2 hrs (in increments as small as 10 min's) it should be disabled until the next night. Any ideas for an easy way to script that? This is what I have so far (activated by motion detector with condition of during nighttime)
if (on state of device "Andrews Fish Light" is false) then
turn on "Andrews Fish Light" for 10 * 60
else
remove delayed actions for device "Andrews Fish Light"
turn off "Andrews Fish Light" in 10 * 60
end if
Also, if I upgrade to the latest beta to take advantage of the latest verbs, what precautions should I take to make sure I could go back to an earlier version if needed? Thanks.
end tell