I'd like rule #2 to override rule #4. is this possible?
example. wemo turns on in the morning, but when everyone goes to work, it shuts off. When you return home, it turns the switch back on. At sunset, the switch turns back off, but will not cycle again should someone leave the house after sunset and come back, only a sunrise will turn the switch back on after sunset.