Actually do you have any good ideas for those door sensors? I was planning to have one at my main door to trigger my living room lights to switch on, and to also trigger when I leave the home, but I cannot come up with a good routine.
Are you leaving and entering your house at different times? For me, I leave the house on weekdays at about the same time (go school/work), so a combination of time and door sensor is enough. If you leave/enter at different times, then I can think of adding a motion sensor near your door. If door open but no motion detected, then you are entering. If door open and there is motion, then you are leaving. It might not work all the time, so you will need to experiment a bit.
Will walk past the sensors and open door too. 