What is it controlling/attached to?
I have 3 shelly 1 attached to roller door motors, they are set to turn off after 0.5 seconds, Button type Detached switch. Power on Default is set to Off. There is a lot in Shelly to be got right and it sounds like you may not have yours set to the appropriate button type
To “solve” it, you can counter it’s action by using the Device Capabilities App → Recieve Insights from 0 minutes ago.
It will show you the user/client/app that switches it on/off.
If that is the app itself, switch it back.
Im not sure i understand wat you mean by that.
But here is an example:
You can read this flow through the Templates in the DC App Settings → Templates.
(Press refresh to show, i just created the Template).
Might also be worth hour while going to Shelly facebook support pages, although I really don’t like that they use facebook as a support forum and ask there. They were able to help me figure out why my garage door was opening randomly