I have this amazing code working to manage the dimming of lights over time. I would like to reuse this functionality to handle automatically dimming each of my lights. I could copy what I have many times and that would work but I'd rather abstract out this logic and use it for each of my lights.
I see that I can use data to represent the light being handled.
Is it possible to have multiple state machines running simultaneously without impacting each other?