I think you’re going to need the app, if only for the initial configuration. As far as I am aware there is no way to change mode or press duration from within home assistant so you will need to do that in the app. It saves it to the actual switchbot itself though so once you have it configured to your liking, i think you never need to use the app again. I exclusively use home assistant to control mine.