Apple Home cannot natively toggle a switch with a single standard button assignment, as it only lets you select explicit "turn on" or "turn off" actions
oh if you use a door sensor, you can't get it to remind you left open x amount of minutes
No, the native Apple Home app cannot do this by default. Apple Home only sends instant notifications the exact moment a door opens or closes. It lacks a built-in "open for X minutes" notification trigger. [1, 2, 3]