Can't figure out how to have lights off after time

All, So I believe I figured out how to get motion to turn on my lights (switches). Now I cant figure out how to have them turn off after a certain amount of time.

Here is what I have.

[{“id”:“5350b793.faff98”,“type”:“trigger”,“z”:“e10a53ca.d6cb58”,“op1”:"",“op2”:"",“op1type”:“nul”,“op2type”:“num”,“duration”:“10”,“extend”:true,“units”:“s”,“reset”:"",“bytopic”:“all”,“name”:“10s delay”,“x”:160,“y”:420,“wires”:[[“ed73d87a.2c9a9”]]},{“id”:“ed73d87a.2c9a9”,“type”:“api-call-service”,“z”:“e10a53ca.d6cb58”,“name”:“OFF”,“server”:“dc687f53.d0afa”,“version”:1,“debugenabled”:true,“service_domain”:“homeassistant”,“service”:“turn_off”,“entityId”:“switch.laundryroom”,“data”:"",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:330,“y”:420,“wires”:[[“56eba67c.cc742”]]},{“id”:“7b949e5b.35cbe”,“type”:“debug”,“z”:“e10a53ca.d6cb58”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“payload”,“targetType”:“msg”,“x”:510,“y”:360,“wires”:[]},{“id”:“56eba67c.cc742”,“type”:“debug”,“z”:“e10a53ca.d6cb58”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:510,“y”:420,“wires”:[]},{“id”:“ac5e7b47.3560e”,“type”:“server-state-changed”,“z”:“e10a53ca.d6cb58”,“name”:“Laundry room motion”,“server”:“dc687f53.d0afa”,“version”:1,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:""},{“property”:“icon”,“value”:""}],“entityidfilter”:“sensor.aeon_labs_zw100_multisensor_6_motion”,“entityidfiltertype”:“exact”,“outputinitially”:false,“state_type”:“num”,“haltifstate”:“8”,“halt_if_type”:“num”,“halt_if_compare”:“is”,“outputs”:2,“output_only_on_state_change”:true,“x”:120,“y”:360,“wires”:[[“1a74ea88.d1fd35”],[“5350b793.faff98”]]},{“id”:“1a74ea88.d1fd35”,“type”:“api-call-service”,“z”:“e10a53ca.d6cb58”,“name”:“ON”,“server”:“dc687f53.d0afa”,“version”:1,“debugenabled”:false,“service_domain”:“homeassistant”,“service”:“turn_on”,“entityId”:“switch.laundryroom”,“data”:"",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:330,“y”:360,“wires”:[[“7b949e5b.35cbe”]]},{“id”:“dc687f53.d0afa”,“type”:“server”,“z”:"",“name”:“Home Assistant”,“addon”:true}]

I would appreciate any help. Thanks

https://zachowj.github.io/node-red-contrib-home-assistant-websocket/cookbook/motion-triggered-light.html