That’s a simple Node-RED flow
[{"id":"c41dc4ca.354788","type":"tab","label":"Flow 8","disabled":false,"info":""},{"id":"4856ba76.e75f54","type":"server-state-changed","z":"c41dc4ca.354788","name":"","server":"ef392d83.86c5a","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.front_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"habool","haltifstate":"true","halt_if_type":"bool","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":190,"y":260,"wires":[["c9056a92.4604d8"],[]]},{"id":"c9056a92.4604d8","type":"ha-wait-until","z":"c41dc4ca.354788","name":"","server":"ef392d83.86c5a","outputs":2,"entityId":"light.kitchen_light","property":"state","comparator":"is","value":"on","valueType":"str","timeout":"30","timeoutUnits":"seconds","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":500,"y":300,"wires":[["6f7a08f5.fa6468"],[]]},{"id":"6f7a08f5.fa6468","type":"ha-wait-until","z":"c41dc4ca.354788","name":"","server":"ef392d83.86c5a","outputs":2,"entityId":"binary_sensor.front_door","property":"state","comparator":"is","value":"off","valueType":"str","timeout":"20","timeoutUnits":"seconds","entityLocation":"","entityLocationType":"none","checkCurrentState":false,"blockInputOverrides":true,"x":720,"y":340,"wires":[["bc22dc03.f5f23"],[]]},{"id":"bc22dc03.f5f23","type":"api-call-service","z":"c41dc4ca.354788","name":"","server":"ef392d83.86c5a","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.frontdoor_sensor","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1040,"y":360,"wires":[[]]},{"id":"ef392d83.86c5a","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]