(If the door is opened) or (If the door bell is pushed) Send a notification And ring the bell But only between 7:00 and 22:00 Except if the door bell has been rung recently Except if the PIR sensor tripped first (someone is leaving) Except if 1 of our Bluetooth devices has recently been spotted (we are coming home)