If you are trying to turn on a module at sunset, you can use the scheduled event APP that's built in to HG. If you are trying to do something a little more complex, you might be able to use a wizard script (though I've never tried). If you want something with logic, I'd recommend using a more advanced scripting language (C#, Python, etc). There have been several threads that requested help on this approach, so you might find some help by locating one of them.