The ESP should be able to output up to 40mA on it’s GPIO so it would be able to run ONE of those LED’s from each GPIO up to the max total output current which I believe is 1200mA.
Thank you for your advice gentlemen. I apologise, I should have mentioned I wanted to run 3 or 4 of them… individually controlled if that were possible.
I’d like to avoid a relay if possible because I dont have the space inside the light, so do you believe using a transistor or something like that might be an option?
From the data sheet the spec is 1.2A max from the chip and each pin can Source 40mA or Sink 28mA so 3 or 4 loads of 20mA should nor be an issue but it would be a good idea to use them in the Source mode.