Classic app RIP

The easiest way is to set up a virtual switch activated by the phone presence

Viewable presence in the new app - Apps & Clients / SmartThings (Samsung Connect) - SmartThings Community