Stop sequence
Someone asked for a flow. A number of lights start turning on with a delay in between when an input boolean is turned on. If the boolean is turned off, the sequence stops. This might be a dirty solution but it seems to work
[{"id":"d64fde52.d0d33","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"c034c92c.8deeb8","type":"trigger-state","z":"d64fde52.d0d33","name":"On/off switch","server":"96ebf4f8.6d0e78","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"input_boolean.test_switch","entityidfiltertype":"exact","debugenabled":true,"constraints":[{"targetType":"this_entity","targetValue":"","propertyType":"current_state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"on","propertyValue":"new_state.state"}],"outputs":2,"customoutputs":[],"outputinitially":true,"state_type":"str","x":90,"y":100,"wires":[["3e75dbc3.e5aa64"],[]]},{"id":"3e75dbc3.e5aa64","type":"api-call-service","z":"d64fde52.d0d33","name":"","server":"96ebf4f8.6d0e78","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining_lamp","data":"","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":290,"y":100,"wires":[["11845af6.e23975"]]},{"id":"11845af6.e23975","type":"stoptimer","z":"d64fde52.d0d33","duration":"10","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":510,"y":100,"wires":[["ed955bec.0f9618"],[]]},{"id":"3f22933d.5742bc","type":"api-call-service","z":"d64fde52.d0d33","name":"","server":"96ebf4f8.6d0e78","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.on_off_plug_in_unit_54","data":"","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":830,"y":120,"wires":[[]]},{"id":"ed955bec.0f9618","type":"api-current-state","z":"d64fde52.d0d33","name":"Test for boolean on","server":"96ebf4f8.6d0e78","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.test_switch","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":670,"y":180,"wires":[["3f22933d.5742bc"],[]]},{"id":"96ebf4f8.6d0e78","type":"server","name":"Home Assistant","addon":true}]