I have similar needs in that I built an 8 head dosing unit, have code to calibrate and run it via Blynk, but now want to add indicating LED widgets for each of the 8 pumps. Everything else in the function is fitted into arrays and indexed accordingly, now just need to also index the LEDs (if possible).
Needless to say, BUMP!
Edit - My issue was resolved HERE. Just wanted to link that post to this for future researchers on this topic.