You’re right that ST does not have a scenes function and that routines is a sort of catch some for ST… It’s rather limited.
You should give rule machine a try
And get help with it here…