How can i make automations with transition while the device doesnt support it?

Morning. On the road but didn’t want to not reply. My setup worked fine previously, but apparently something over updates stopped working. I use a new script recommended by @123 and it has been flawlessly and is more versatile than these previous ones.