End auto-unlock state of smartlock 2.0 when flat is entered through 2nd door

Is there a possibility to (temporarily) deactivate the auto-unlock of the smartlock via webapi, bridgeapi or even a iOS shortcut?

The reason is that especially in summer I often enter the flat through the garden-door. When I approach the smartlock from within the apartment, the smartlock unlocks „unnecessarily“. I have a door sensor at the garden door and would use it to deactivate the smartlock auto-unlock.

If you have other ideas how to trigger deactivation of the auto-unlock that could work please let me know.