How to activate dynamically created UI switches

I put up a thread about my "Coffee Pot Timer" project that has a SonOff S20 with a coffee pot plugged into it. I have a dashboard button (the 'cup' that when you click it, it sends a message to the S20 to turn the pot on and starts a 20 minute count down timer that eil shut the plug off if I forget to (the reason I built the flow).

You might want to install it and examine it to learn what I did.