Well, I can come up with an algorithm that makes use of a random number generating function to control lighting in the house. Using the SDK, I can run design and then run this program while the CM15a is hooked up to the computer. If possible, I would like to upload this to the Controller so that my computer doesn't have to be on. If that isn't possible, is there another approach?
Presuming you had the patience, if your design can be manually composed and downloaded via the AHP GUI interface, then the CM15A will be able to execute it. (However unless there's some repetitions, e.g., the same design repeats every week, you'll probably run out of EEPROM memory pretty quickly.) Note: The CM15A firmware has the capability of randomizing individual macro execution times +/- 30 minutes.
To my knowledge nobody has yet written a program to create a CM15A EEPROM memory image outside AHP. But having done so the image can _probably_ be downloaded to the CM15A EEPROM memory using a sequence of SDK commands. (I've never tried downloading an entire image but have successfully patched small sections of an already-downloaded image.)
if you want to see whats involved with creating the memory image, take a look at the following file after you've downloaded one with the AHP GUI interface.
c:\Documents and Settings\All Users\Application Data\Active Home Professional\ahpeeprom_w.txt
I posted a message about patching the EEPROM a few months ago, but it would take me a while to find it.