There is, but currently not to an arbitrary icon and only by device handler and not specific devices. You can add a device type to the definition. For example:
Thank you so much! I did read about that before but didn’t get it to work. Now it is working for me. Maybe there was that one letter that was not meant to be there.
Anyways, thanks for your help and enjoy your day!
I think im attempting the same. I would like to have different icon options for my simulated alexa switches. I tried to update the code to what was posted but no luck. Maybe Im missunderstanding this post
Can you provide more details about your use case, please?
Are those devices using DTH?
Which icons are you trying to set?
Have you seen that for certain device types you can set different icons through the SmartThings app? You only need to select “edit” the device and you’ll see the “change icon” option.