As long as the device shows up in an Amazon routine ( not a SmartThings routine) , you can use the following method. (The topic title is a clickable link)
You need one routine to turn it off and a separate routine to turn it on.
It’s awkward, but if you want to you can have even more routines for different dimming levels, etc.
There might be another way as well, it just depends on the exact model. See the following FAQ (this is a clickable link)