Is there an easier way than creating 5 folder/programs for the following scenario? SW1 controls a porch light and FL1, FL2 control two different sets of floodlights. I want the following to happen:
1. Daytime(Sunrise to Sunset) -> if SW1 turned on -> wait 1 min and turn off (turned on accidentally).
2. Sunset to 11:00PM -> if SW1 turned on -> turn on porch light, flood1 and flood2 -> wait 20 min -> turn off porch, flood1 and flood2.
3. 11:31PM to Sunrise next -> if SW1 turned on -> turn on porch, flood1 and flood2 -> wait 20 min -> turn off ONLY porch
4. Sunset to 11:30 -> if SW1 turned off -> turn off porch and floods
5. 11:31 to Sunrise next -> if SW1 turned off -> turn off porch only.
Thanks in advance