I thought you were trying to accomplish it just using an mqtt node for input. Here’s another possible solution using a trigger-state node which can be enabled/disabled.
[{"id":"aee83183.f96c1","type":"trigger-state","z":"5eb3594f.d294b8","name":"","entityid":"light.kitchen1,light.kitchen2","entityidfiltertype":"exact","debugenabled":false,"constraints":[],"constraintsmustmatch":"all","outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","x":288,"y":2112,"wires":[["6c9185fc.e1db0c","407505fc.03e79c"],[]]},{"id":"6c9185fc.e1db0c","type":"api-call-service","z":"5eb3594f.d294b8","name":"","service_domain":"light","service":"turn_{{payload}}","data":"{\"entity_id\":\"light.kitchen1,light.kitchen2\"}","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":590,"y":2112,"wires":[["619e14fa.3ab16c"]]},{"id":"21eaf81.ccd7008","type":"change","z":"5eb3594f.d294b8","name":"enabled","rules":[{"t":"set","p":"payload","pt":"msg","to":"enable","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":924,"y":2112,"wires":[["aee83183.f96c1"]]},{"id":"407505fc.03e79c","type":"change","z":"5eb3594f.d294b8","name":"disable","rules":[{"t":"set","p":"payload","pt":"msg","to":"disable","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":2064,"wires":[["aee83183.f96c1"]]},{"id":"619e14fa.3ab16c","type":"delay","z":"5eb3594f.d294b8","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":780,"y":2112,"wires":[["21eaf81.ccd7008"]]}]