Here's my code, can't believe how easy that was.
This code is what runs if forget to set the house before candle lighting (I usually set it in the pantry with a keypad before I leave for shul, but sometimes I'm in a rush and my wife is still getting the meal ready and doesn't want to have to think about any of this stuff).
My long term goal is to have this completely automated with another set of switches in my basement office with default times. Alan and I had a lot of back and forth to get the driver working and found out that my time zone wasn't set properly, so I wasn't able to use this driver with all of this autumn's holidays. The next batch is Passover. The goal would be for the system to automatically enter to Sabbath mode and be able to handle any of our multiple day events. The challenge is to make sure the system doesn't "leave" the Sabbath mode early if another holiday is coming right after the one you are in. The other challenge is to be able to set different time events for each of the possible days (day 1, 2 or 3). I've already have variables for holidays where odd things happens (Sukkhot - outdoor lights going on and off- Shavuot to handle the all nighter on the first evening). When I get this all ironed out I'll write up and post a white paper. Many of the guys who right the code aren't actually using/living with it, so my experiences should help a non-observant person create a system for someone who is. Many people but not aware of what can be done with the various technologies that are out there that can make the keeping of the holidays and Sabbath easier.
Thanks again for the help.