Would this cover it ?
[{"id":"40a7e6e8.75b928","type":"inject","z":"a8260bce.a28be8","name":"","topic":"","payload":"open","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":122,"y":384,"wires":[["e177207d.70fe98"]]},{"id":"3f85770b.4cb678","type":"inject","z":"a8260bce.a28be8","name":"","topic":"","payload":"closed","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":122,"y":432,"wires":[["e177207d.70fe98"]]},{"id":"8c51a823.3cbb58","type":"debug","z":"a8260bce.a28be8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":670,"y":528,"wires":[]},{"id":"851c13ae.8e9a08","type":"trigger","z":"a8260bce.a28be8","op1":"","op2":"light on","op1type":"nul","op2type":"str","duration":"10","extend":false,"units":"s","reset":"reset","bytopic":"all","name":"","x":478,"y":552,"wires":[["8c51a823.3cbb58","9e667440.917b38"]]},{"id":"e177207d.70fe98","type":"change","z":"a8260bce.a28be8","name":"door: state","rules":[{"t":"set","p":"door","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":286,"y":408,"wires":[["3674d2d7.4cfdbe"]]},{"id":"3674d2d7.4cfdbe","type":"switch","z":"a8260bce.a28be8","name":"if open","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"open","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":434,"y":408,"wires":[["799e4cd0.6fd684"]]},{"id":"799e4cd0.6fd684","type":"change","z":"a8260bce.a28be8","name":"reset","rules":[{"t":"set","p":"payload","pt":"msg","to":"reset","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":554,"y":408,"wires":[["851c13ae.8e9a08"]]},{"id":"ddc58661.985cd","type":"inject","z":"a8260bce.a28be8","name":"","topic":"","payload":"PIR","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":122,"y":552,"wires":[["b770d5c3.92ae58"]]},{"id":"b770d5c3.92ae58","type":"switch","z":"a8260bce.a28be8","name":"door closed?","property":"door","propertyType":"flow","rules":[{"t":"eq","v":"closed","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":286,"y":552,"wires":[["851c13ae.8e9a08"]]},{"id":"9e667440.917b38","type":"change","z":"a8260bce.a28be8","name":"","rules":[{"t":"delete","p":"door","pt":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":576,"wires":[[]]},{"id":"e21d7045.b39898","type":"comment","z":"a8260bce.a28be8","name":"delete flow var to ignore PIR","info":"","x":720,"y":624,"wires":[]}]