Turn on lights for fixed time only?

Hello @ironglass,

Another approach could be installing your automation using the Rules API. Using them, you can migrate the automations smoothly.
Below you can find an example, the workflow is:

  1. IF the door is opened
  2. THEN turn ON the specified devices (which could be lights, smart plugs, and others)
  3. AFTER 10 minutes, turn off those devices.
{
    "name": "If the door is opened, turn lights on and after 10 min turn them off",
    "actions": [
        {
            "if":{
                "equals": {
                    "left": {
                        "device": {
                            "devices": [
                                "device-id-garageDoor"
                            ],
                            "component": "main",
                            "capability": "doorControl",
                            "attribute": "door"
                        }
                    },
                    "right": {
                        "string": "open"
                    }
                },
                "then":[
                    {
                        "command": {
                            "devices": [
                                "device-id-light1","device-id-light2",...
                            ],
                            "commands": [
                                {
                                    "component": "main",
                                    "capability": "switch",
                                    "command": "on"
                                }
                            ]
                        }
                    },
                    {
                        "sleep": {
                            "duration": {
                                "value": {
                                    "integer": 10
                                },
                                "unit": "Minute"
                            }
                        }
                    },
                    {
                        "command": {
                            "devices": [
                                "device-id-light1","device-id-light2",...
                            ],
                            "commands": [
                                {
                                    "component": "main",
                                    "capability": "switch",
                                    "command": "off"
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}

The instructions to install a Rule can be found at this thread. As specified there, you need to replace the device IDs with the corresponding values.

When you query the device list, you can visualize which capabilities are available for each one of them, and based on that, you can modify the conditions/commands of the rule according to your needs. For more information, you can visit:
https://smartthings.developer.samsung.com/docs/api-ref/st-api.html#operation/createRule

Let me know if you have any doubts.