@obaldius Awesome, thanks it is working perfectly now!! Thanks for you assistance. I made it so that when the light is turned on manually the flow starts again, tested and working great
[{"id":"e043b635ab019e4c","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"a071ec60fdc42f68","type":"server-state-changed","z":"e043b635ab019e4c","name":"Light to off?","server":"2879a640.7a9e7a","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.patio_lights_socket_1","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"off","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":130,"y":140,"wires":[["d44f57ac59f053c8"],["33bd6ca7eb1c6534"]]},{"id":"d44f57ac59f053c8","type":"api-current-state","z":"e043b635ab019e4c","name":"PIR off for 5 min?","server":"2879a640.7a9e7a","version":3,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.zone_dining_room_open","state_type":"str","blockInputOverrides":true,"outputProperties":[],"for":"10","forType":"num","forUnits":"seconds","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":370,"y":140,"wires":[[],["0fecb96854c68d93"]]},{"id":"fbad6e45c195bfcf","type":"trigger-state","z":"e043b635ab019e4c","name":"PIR","server":"2879a640.7a9e7a","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"binary_sensor.zone_dining_room_open","entityidfiltertype":"exact","debugenabled":false,"constraints":[{"targetType":"this_entity","targetValue":"","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is_not","comparatorValueDatatype":"prevEntity","comparatorValue":"state"}],"inputs":1,"outputs":4,"customoutputs":[{"messageType":"default","messageValue":"","messageValueType":"json","comparatorPropertyType":"current_state","comparatorPropertyValue":"new_state.state","comparatorType":"is","comparatorValue":"on","comparatorValueDataType":"str"},{"messageType":"default","messageValue":"","messageValueType":"json","comparatorPropertyType":"current_state","comparatorPropertyValue":"new_state.state","comparatorType":"is","comparatorValue":"off","comparatorValueDataType":"str"}],"outputinitially":false,"state_type":"str","enableInput":true,"x":550,"y":240,"wires":[[],[],["edc49ffb40c52069","cb1cb8838671199a"],["cb1cb8838671199a"]]},{"id":"cb1cb8838671199a","type":"trigger","z":"e043b635ab019e4c","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"10","extend":false,"overrideDelay":false,"units":"s","reset":"on","bytopic":"all","topic":"topic","outputs":1,"x":770,"y":280,"wires":[["4991534be6b8c200"]]},{"id":"edc49ffb40c52069","type":"time-range-switch","z":"e043b635ab019e4c","name":"Time Range","lat":"","lon":"","startTime":"17:00","endTime":"22:30","startOffset":0,"endOffset":0,"x":770,"y":200,"wires":[["778bd10f480103e2"],[]]},{"id":"0fecb96854c68d93","type":"change","z":"e043b635ab019e4c","name":"dis","rules":[{"t":"set","p":"payload","pt":"msg","to":"disable","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":220,"wires":[["fbad6e45c195bfcf"]]},{"id":"33bd6ca7eb1c6534","type":"change","z":"e043b635ab019e4c","name":"enable","rules":[{"t":"set","p":"payload","pt":"msg","to":"enable","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":260,"wires":[["fbad6e45c195bfcf"]]},{"id":"1d5dcc85a06c0f85","type":"inject","z":"e043b635ab019e4c","name":"Every day at 22:31","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"31 22 * * *","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":340,"wires":[["33bd6ca7eb1c6534"]]},{"id":"97f4b5f2e9d97256","type":"comment","z":"e043b635ab019e4c","name":"Patio Lights","info":"","x":130,"y":60,"wires":[]},{"id":"22ecf2b2610483e5","type":"comment","z":"e043b635ab019e4c","name":"Manual operation","info":"","x":140,"y":100,"wires":[]},{"id":"42db5ab1b3653eb5","type":"comment","z":"e043b635ab019e4c","name":"Restore automatic operation","info":"","x":180,"y":300,"wires":[]},{"id":"778bd10f480103e2","type":"api-call-service","z":"e043b635ab019e4c","name":"Light Switch On","server":"2879a640.7a9e7a","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.patio_lights_socket_1"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1040,"y":200,"wires":[[]]},{"id":"4991534be6b8c200","type":"api-call-service","z":"e043b635ab019e4c","name":"Light Switch Off","server":"2879a640.7a9e7a","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.patio_lights_socket_1"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1040,"y":280,"wires":[[]]},{"id":"2879a640.7a9e7a","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]
Thanks again for your help!