So I have spent the last week in finding and converting my AppleScript within Indigo. I had 50+ instances and haven't finished yet. Yes, very trying, but also somewhat fun to re-think several of my systems. I have gotten by with very little "hacks" as I would call them, but am having difficulty with the lack of python support for schedules. Particularly, in the ability to manipulate the "countdown delta" of the time date action. I have found a workaround in my "security walk" script that randomly turns on and off a set of lights while we are away. This involved time.sleep() calls with random numbers in an external python script. I don't like the fact that there is a script on the system waiting 45 minutes or more at times before it un-sleeps, but it's what I've got at the moment. Any concerns with that or alternate schools of thought?
The area I can't come up with anything at this point is in setting the delta for updating "time since" variables in my system. For example, my control pages show the last time each door sensor was triggered in my system, or the last time a light was toggled, or the last time a motion sensor was triggered, etc. If its been within 90 seconds, the control page variable is updated every couple of seconds. If it's been less than a few minutes, it updates every 10 seconds. More than 10 minutes, it updates every 60 seconds, etc. I do this my changing the countdown delta of a time date action at present. Anyone with ideas how to do the same thing with our python environment?